Search code examples
azureazure-resource-managersecret-keyazure-app-configuration

How to get Azure App configuration access keys using RM module in power shell


Azure rm module doesn't show any related commands to get keys from app configuration.


Solution

  • If you want to list access key of Azure App configuration with the AzureRM module, we can use the command Invoke-AzureRmResourceAction with action listkeys.

    For example

    Connect-AzureRmAccount
    
    
    $keys=Invoke-AzureRmResourceAction -Action listKeys `
            -ResourceType "Microsoft.AppConfiguration/configurationStores" `
            -ResourceName "<>" `
            -ResourceGroupName "<>" -ApiVersion "2019-10-01" -Force 
    
    $keys | ConvertTo-Json
    

    enter image description here