我想检索经典存储帐户的访问密钥。我在网上找到了这个
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys?api-version=2016-12-01
但这不适用于经典存储帐户。当我将 Microsoft.Storage 替换为 Microsoft.ClassicStorage 时,它会引发以下错误
{
"error": {
"code": "InvalidRequestUri",
"message": "The request uri is invalid. The requested path '/subscriptions/{subscriptionID}/resourceGroups/{myresourcegroup}/providers/Microsoft.ClassicStorage/storageAccounts/{myStorageAccount}/listKeys' is not found."
}
}
注意:我正在使用未委托的应用程序权限。