[英]Get storage account access keys from Azure Resource Manager to make storage calls authentication failed
After getting access token, i run this below command but i got authentication error shown in fig attached. 获取访问令牌后,我在下面的命令中运行此命令,但出现了如图所示的身份验证错误。
$keysResponse = Invoke-WebRequest -Uri https://management.azure.com/subscriptions/SUBSCRIPTION-ID/resourceGroups/RESOURCE-GROUP/providers/Microsoft.Storage/storageAccounts/STORAGE-ACCOUNT/listKeys/?api-version=2016-12-01
-Method POST -Headers @{Authorization="Bearer $ARMToken"}
this means you do not have enough permissions to perform that action. 这意味着您没有足够的权限执行该操作。 ask your administrator to grant you permissions (easiest way - assign contributor role on the storage account).
请管理员授予您权限(最简单的方法-在存储帐户上分配贡献者角色)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.