我需要删除预订的存储帐户中的所有身份验证密钥。您知道是否可以删除它吗?我正在Powershell中寻找一个cmdlet来执行此操作,但是找不到它。
我能够检索“存储帐户”列表并检查是否存在验证密钥集,但是无法将其删除。我试图将它们设置为null,但是没有用
$colStorageaccounts = Get-AzureRMStorageaccount
for ($objstorageaccount in $colStorageaccounts)
{
$objaccountKey = Get-AzureRMStorageaccountKey -ResourceGroupName $objstorageaccount.ResourceGroupName -accountName $objstorageaccount.Id
if ($objaccountKey -ne $null)
{
here i should set the code for remove it
}
}