az hpc-cache blob-storage-target
Note
此参考是 Azure CLI(版本 2.3.0 或更高版本) 的 hpc 缓存 扩展的一部分。 该扩展会在首次运行 az hpc-cache blob-storage-target 命令时自动安装。 了解更多关于扩展的信息。
用于创建 hpc 缓存 Blob 存储目标的命令。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az hpc-cache blob-storage-target add |
创建或更新 Blob 存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。 |
Extension | GA |
| az hpc-cache blob-storage-target update |
创建或更新 Blob 存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。 |
Extension | GA |
az hpc-cache blob-storage-target add
创建或更新 Blob 存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。
az hpc-cache blob-storage-target add --cache-name
--container-name
--name
--resource-group
--storage-account
--virtual-namespace-path
示例
StorageTargets_CreateOrUpdate
az hpc-cache blob-storage-target add --resource-group "scgroup" --cache-name "sc1" --name "st1" --storage-account "/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Storage/storageAccounts/{acount_name}" --container-name "cn" --virtual-namespace-path "/test"
必需参数
缓存的名称。
目标存储容器的名称。
存储目标的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
目标存储帐户的资源 ID 或名称。
在面向客户端的虚拟文件系统中为此存储目标创建的路径。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 hpc-cache blob-storage-target update
创建或更新 Blob 存储目标。 可以随时允许此作,但如果缓存关闭或运行不正常,则存储目标的实际创建/修改可能会延迟,直到缓存再次正常运行。
az hpc-cache blob-storage-target update --cache-name
--name
--resource-group
[--container-name]
[--storage-account]
[--virtual-namespace-path]
必需参数
缓存的名称。
存储目标的名称。
资源组的名称。 可以使用 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.
目标存储容器的名称。
目标存储帐户的资源 ID 或名称。
在面向客户端的虚拟文件系统中为此存储目标创建的路径。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |