1

Azure rm 模块不显示任何从应用配置中获取密钥的相关命令。

4

2 回答 2

2

如果要使用 AzureRM 模块列出 Azure App 配置的访问密钥,我们可以使用Invoke-AzureRmResourceAction带有 action的命令listkeys

例如

Connect-AzureRmAccount


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

$keys | ConvertTo-Json

在此处输入图像描述

于 2020-10-07T02:55:49.873 回答
1

我使用以下。

Get-AzAppConfigurationStoreKey
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

参考文档:https ://docs.microsoft.com/en-us/powershell/module/az.appconfiguration/get-azappconfigurationstorekey?view=azps-4.7.0

于 2020-10-01T16:00:31.290 回答