az webapp config storage-account
管理 Web 应用的 Azure 存储帐户配置。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az webapp config storage-account add |
将 Azure 存储帐户配置添加到 Web 应用。 |
Core | GA |
az webapp config storage-account delete |
删除 Web 应用的 Azure 存储帐户配置。 |
Core | GA |
az webapp config storage-account list |
获取 Web 应用的 Azure 存储帐户配置。 |
Core | GA |
az webapp config storage-account update |
更新 Web 应用上的现有 Azure 存储帐户配置。 |
Core | GA |
az webapp config storage-account add
将 Azure 存储帐户配置添加到 Web 应用。
请注意,存储帐户访问密钥现在在结果中进行了修订。 请使用 az webapp config storage-account list
命令查看密钥。
az webapp config storage-account add --access-key
--account-name
--custom-id
--share-name --sn
--storage-type {AzureBlob, AzureFiles}
[--ids]
[--mount-path]
[--name]
[--resource-group]
[--slot]
[--slot-setting]
[--subscription]
示例
在名为 MyStorageAccount 的存储帐户中添加与名为 MyShare 的 Azure 文件存储文件共享的连接。
az webapp config storage-account add -g MyResourceGroup -n MyUniqueApp \
--custom-id CustomId \
--storage-type AzureFiles \
--account-name MyStorageAccount \
--share-name MyShare \
--access-key MyAccessKey \
--mount-path /path/to/mount
必需参数
存储帐户访问密钥。
存储帐户名称。
在 Web 应用中配置的共享的名称。
存储帐户中给定的文件共享的名称。
Storage type.
属性 | 值 |
---|---|
接受的值: | AzureBlob, AzureFiles |
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用用于读写数据的路径,例如 :/share1 或 /share2。
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
使用槽设置,可以决定将 BYOS 配置粘滞到槽,这意味着当交换该槽时,存储帐户将保留在该槽中。
属性 | 值 |
---|---|
默认值: | False |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config storage-account delete
删除 Web 应用的 Azure 存储帐户配置。
请注意,存储帐户访问密钥现在在结果中进行了修订。 请使用 az webapp config storage-account list
命令查看密钥。
az webapp config storage-account delete --custom-id
[--ids]
[--name]
[--resource-group]
[--slot]
[--subscription]
示例
删除 Web 应用的 Azure 存储帐户配置。
az webapp config storage-account delete --custom-id CustomId --name MyWebApp --resource-group MyResourceGroup
必需参数
在 Web 应用中配置的共享的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
槽的名称。 如果未指定,则默认为生产槽。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config storage-account list
获取 Web 应用的 Azure 存储帐户配置。
az webapp config storage-account list --name
--resource-group
[--slot]
示例
获取 Web 应用的 Azure 存储帐户配置。
az webapp config storage-account list --name MyWebApp --resource-group MyResourceGroup
必需参数
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
槽的名称。 如果未指定,则默认为生产槽。
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |
az webapp config storage-account update
更新 Web 应用上的现有 Azure 存储帐户配置。
请注意,存储帐户访问密钥现在在结果中进行了修订。 请使用 az webapp config storage-account list
命令查看密钥。
az webapp config storage-account update --custom-id
[--access-key]
[--account-name]
[--ids]
[--mount-path]
[--name]
[--resource-group]
[--share-name --sn]
[--slot]
[--slot-setting]
[--storage-type {AzureBlob, AzureFiles}]
[--subscription]
示例
使用 ID MyId 更新连接到 Azure 文件存储文件共享的装载路径。
az webapp config storage-account update -g MyResourceGroup -n MyUniqueApp \
--custom-id CustomId \
--mount-path /path/to/new/mount
更新 Web 应用上的现有 Azure 存储帐户配置。
az webapp config storage-account update --access-key MyAccessKey --account-name MyAccount --custom-id CustomId --mount-path /path/to/new/mount --name MyUniqueApp --resource-group MyResourceGroup --share-name MyShare --storage-type AzureFiles
必需参数
在 Web 应用中配置的共享的名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
存储帐户访问密钥。
存储帐户名称。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
Web 应用用于读写数据的路径,例如 :/share1 或 /share2。
Web 应用的名称。 如果未指定,则会随机生成名称。 可以使用 < a0/a0> 配置默认值 az configure --defaults web=<name>
。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
存储帐户中给定的文件共享的名称。
槽的名称。 如果未指定,则默认为生产槽。
使用槽设置,可以决定将 BYOS 配置粘滞到槽,这意味着当交换该槽时,存储帐户将保留在该槽中。
属性 | 值 |
---|---|
默认值: | False |
Storage type.
属性 | 值 |
---|---|
接受的值: | AzureBlob, AzureFiles |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
属性 | 值 |
---|---|
Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
属性 | 值 |
---|---|
默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
属性 | 值 |
---|---|
默认值: | False |
Output format.
属性 | 值 |
---|---|
默认值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
属性 | 值 |
---|---|
默认值: | False |