Created
July 7, 2022 08:59
-
-
Save brettmillerb/7a364d764e1f6c0e8917ece1c03d89bb to your computer and use it in GitHub Desktop.
Stackoverflow Pipelines Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- task: AzureCLI@2 | |
displayName: Check Azure Functions Deployed | |
env: | |
RESOURCE_GROUP: $(ResourceGroup) | |
FUNCTION_NAME: $(FunctionName) | |
inputs: | |
azureSubscription: Microsoft Azure Subscription | |
scriptType: bash | |
scriptLocation: inlineScript | |
inlineScript: | | |
CURRENT_SUBSCRIPTION=$(az account show --query id -o tsv) | |
URI = 'https://management.azure.com/subscriptions/$CURRENT_SUBSCRIPTION/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.Web/sites/$FUNCTION_NAME/functions?api-version=2015-08-01' | |
az rest -u $URI --method get | jq '.value[].name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment