az containerapp env storage
Note
此命令组具有在 Azure CLI 和至少一个扩展中定义的命令。 安装每个扩展,使其受益于其扩展功能。 了解更多关于扩展的信息。
用于管理容器应用环境的存储的命令。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az containerapp env storage list |
列出环境的存储。 |
Core | GA |
| az containerapp env storage list (containerapp 扩展) |
列出环境的存储。 |
Extension | GA |
| az containerapp env storage remove |
从环境中删除存储。 |
Core | GA |
| az containerapp env storage remove (containerapp 扩展) |
从环境中删除存储。 |
Extension | GA |
| az containerapp env storage set |
创建或更新存储。 |
Core | GA |
| az containerapp env storage set (containerapp 扩展) |
创建或更新存储。 |
Extension | GA |
| az containerapp env storage show |
显示存储的详细信息。 |
Core | GA |
| az containerapp env storage show (containerapp 扩展) |
显示存储的详细信息。 |
Extension | GA |
az containerapp env storage list
列出环境的存储。
az containerapp env storage list --name
--resource-group
示例
列出环境的存储。
az containerapp env storage list -g MyResourceGroup -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage list (containerapp 扩展)
列出环境的存储。
az containerapp env storage list --name
--resource-group
示例
列出环境的存储。
az containerapp env storage list -g MyResourceGroup -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage remove
从环境中删除存储。
az containerapp env storage remove --name
--resource-group
--storage-name
[--yes]
示例
从容器应用环境中删除存储。
az containerapp env storage remove -g MyResourceGroup --storage-name MyStorageName -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage remove (containerapp 扩展)
从环境中删除存储。
az containerapp env storage remove --name
--resource-group
--storage-name
[--yes]
示例
从容器应用环境中删除存储。
az containerapp env storage remove -g MyResourceGroup --storage-name MyStorageName -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage set
创建或更新存储。
az containerapp env storage set --access-mode {ReadOnly, ReadWrite}
--account-name --azure-file-account-name
--azure-file-account-key --storage-account-key
--azure-file-share-name --file-share
--name
--resource-group
--storage-name
[--no-wait]
示例
创建存储。
az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --access-mode ReadOnly --azure-file-account-key MyAccountKey --azure-file-account-name MyAccountName --azure-file-share-name MyShareName
必需参数
AzureFile 存储的访问模式。
| 属性 | 值 |
|---|---|
| 接受的值: | ReadOnly, ReadWrite |
AzureFile 存储帐户的名称。
AzureFile 存储帐户的密钥。
AzureFile 存储上的共享的名称。
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage set (containerapp 扩展)
创建或更新存储。
az containerapp env storage set --name
--resource-group
--storage-name
[--access-mode {ReadOnly, ReadWrite}]
[--account-name --azure-file-account-name]
[--azure-file-account-key --storage-account-key]
[--azure-file-share-name --file-share]
[--no-wait]
[--server]
[--storage-type {AzureFile, NfsAzureFile}]
示例
创建 Azure 文件存储。
az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --access-mode ReadOnly --azure-file-account-key MyAccountKey --azure-file-account-name MyAccountName --azure-file-share-name MyShareName
创建 nfs azure 文件存储。
az containerapp env storage set -g MyResourceGroup -n MyEnv --storage-name MyStorageName --storage-type NfsAzureFile --access-mode ReadOnly --server MyNfsServer.file.core.windows.net --file-share /MyNfsServer/MyShareName
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
AzureFile 或 nfs AzureFile 存储的访问模式。
| 属性 | 值 |
|---|---|
| 接受的值: | ReadOnly, ReadWrite |
AzureFile 存储帐户的名称。
AzureFile 存储帐户的密钥。
AzureFile 或 nfs AzureFile 存储上的共享的名称。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
NfsAzureFile 存储帐户的服务器。
存储的类型。 假定为 AzureFile(如果未指定)。
| 属性 | 值 |
|---|---|
| 接受的值: | AzureFile, NfsAzureFile |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage show
显示存储的详细信息。
az containerapp env storage show --name
--resource-group
--storage-name
示例
显示存储的详细信息。
az containerapp env storage show -g MyResourceGroup --storage-name MyStorageName -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az containerapp env storage show (containerapp 扩展)
显示存储的详细信息。
az containerapp env storage show --name
--resource-group
--storage-name
示例
显示存储的详细信息。
az containerapp env storage show -g MyResourceGroup --storage-name MyStorageName -n MyEnvironment
必需参数
容器应用环境的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |