问题描述
Azure rm模块未显示任何有关从应用程序配置中获取密钥的命令。
解决方法
如果要使用AzureRM模块列出Azure App配置的访问密钥,我们可以将命令Invoke-AzureRmResourceAction
与操作listkeys
一起使用。
例如
Connect-AzureRmAccount
$keys=Invoke-AzureRmResourceAction -Action listKeys `
-ResourceType "Microsoft.AppConfiguration/configurationStores" `
-ResourceName "<>" `
-ResourceGroupName "<>" -ApiVersion "2019-10-01" -Force
$keys | ConvertTo-Json
,
我使用以下内容。
Get-AzAppConfigurationStoreKey
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]