Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Last active January 4, 2018 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/85379f6fc4a93a0879baf317d54ffb89 to your computer and use it in GitHub Desktop.
Save justinyoo/85379f6fc4a93a0879baf317d54ffb89 to your computer and use it in GitHub Desktop.
List of Access Keys from Output Values after ARM Template Deployment
$apiVersion = `
((Get-AzureRmResourceProvider `
-ProviderNamespace "Microsoft.Web").ResourceTypes `
| Where-Object { $_.ResourceTypeName -eq "sites" }).ApiVersions[0]
Invoke-AzureRmResourceAction `
-ApiVersion $apiVersion `
-ResourceGroupName "RESOURCE_GROUP_NAME" `
-ResourceType "Microsoft.Web/sites/functions" `
-ResourceName "FUNCTION_APP_NAME/FUNCTION_NAME" `
-Action listsecrets `
-Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment