Skip to content

Instantly share code, notes, and snippets.

@georgeOsdDev
Created December 6, 2021 07:01
Show Gist options
  • Save georgeOsdDev/cd0822d9070fcd67181bf54f7b0568bf to your computer and use it in GitHub Desktop.
Save georgeOsdDev/cd0822d9070fcd67181bf54f7b0568bf to your computer and use it in GitHub Desktop.
Get storage account used by function
# 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