【发布时间】:2020-12-14 12:35:44
【问题描述】:
任务是删除 blob 存储,然后上传构建的 Jekyll 站点。 输出
Error Code: [1]
Error: Azure login failed
Script failed with error: Get Token request returned http error: 401 and server response: {"error":"invalid_client","error_description":"AADSTS7000222: The provided client secret keys are expired. Visit the Azure Portal to create new keys for your app, or consider using certificate credentials for added security:
...
...
,"error_uri":"https://login.microsoftonline.com/error?code=7000222"
可能要克服的问题是 Azure Devops 中的帐户作为 Azure 订阅存在。用于 blob 存储的实际订阅与此不同,但 Devops 登录确实可以访问它。但现在 Devops Azure 订阅已过期,但我仍然可以使用该帐户登录 Azure(Azure Devops 仍然可以使用它)。
我已尝试重新生成存储密钥。我已尝试将密钥添加到删除和上传存储命令:
az storage blob delete-batch --source $(containerName) --account-name $(storageAccount) --output table
az storage blob upload-batch --source _site --destination $(containerName) --account-name $(storageAccount) --output table --no-progress
【问题讨论】:
-
我注意到我有点走错了方向。存储密钥与客户端密钥不同。事情还没有解决。当我去更新它们时,它们似乎属于该帐户(我可以使用它登录 Azure)有一个过期的订阅,所以它不允许我更新机密
标签: azure-storage azure-cli azure-static-website-hosting