Instantly share code, notes, and snippets.

Embed
What would you like to do?
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