# 仓库验证异常：[my_azure_repo] 验证失败：blob容器[my-container]不存在

- **ID:** `elasticsearch/repository-azure-invalid-container`
- **领域:** elasticsearch
- **类别:** config_error
- **验证级别:** ai_generated
- **修复率:** 95%

## 根因

快照仓库设置中指定的Azure Blob存储容器不存在或存储账户名称错误。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 7.17.10 | active | — | — |
| 8.10.0 | active | — | — |
| 8.13.2 | active | — | — |

## 解决方案

1. ```
   使用Azure CLI创建Blob容器：az storage container create --name my-container --account-name myaccount，然后重新注册仓库：PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "my-container", "account": "myaccount" } }
   ```
2. ```
   验证容器是否存在并更正仓库设置：GET _snapshot/my_azure_repo，然后用PUT _snapshot/my_azure_repo { "type": "azure", "settings": { "container": "correct-container" } }更新
   ```

## 无效尝试

- **** — The container must already exist in Azure Blob Storage; Elasticsearch does not create containers automatically (95% 失败率)
- **** — The authentication may succeed but the container still does not exist, causing the same verification failure (85% 失败率)
