Created
December 6, 2021 07:01
-
-
Save georgeOsdDev/cd0822d9070fcd67181bf54f7b0568bf to your computer and use it in GitHub Desktop.
Get storage account used by function
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
# export myRG=<resource group> | |
# export myFunctionApp=<function app> | |
az functionapp config appsettings list -g $myRG -n $myFunctionApp --query "[?name == 'AzureWebJobsStorage'].value" -o tsv | awk -F ';' '{for(i = 1; i <= NF; i++){printf $i "\n"}}' | grep AccountName | awk -F '=' '{print $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment