Mah*_*mar 2 blob blobstorage azure-storage-blobs azure-devops azure-storage-account
错误:指定的资源名称包含无效字符。错误代码:无效资源名称
2019-10-31T10:28:17.4678189Z <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidResourceName</Code><Message>The specifed resource name contains invalid characters.
2019-10-31T10:28:17.4678695Z 请求 ID:
2019-10-31T10:28:17.4679207Z Time:2019-10-31T10:28:17.4598301Z</Message></Error>
我正在尝试使用 azure DevOps 将我的静态网站部署到 azure 中的 blob 存储,但出现此错误。在我的管道中,我使用 grunt build 进行构建,并将其存档到 zip,然后发布到 azure 管道,然后在发布中,我正在提取文件,并尝试使用 azure CLI 任务上传这些文件。
我正在使用以下命令
az storage blob upload-batch --account-name something --account-key something --destination ‘$web’ --source ./
我的容器名称是 $web
Chr*_*oll 30
允许的字符为小写 az 0-9 和单个、中缀、连字符
[a-z0-9\-]
Run Code Online (Sandbox Code Playgroud)
小智 10
我通过删除容器名称周围的撇号解决了这个问题:
az storage blob upload-batch --account-name something --account-key something --destination $web --source ./
| 归档时间: |
|
| 查看次数: |
9027 次 |
| 最近记录: |