az netappfiles cache
管理缓存资源。
管理Azure NetApp 文件(ANF)缓存资源。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az netappfiles cache create |
在容量池中创建指定的缓存。 |
Core | GA |
| az netappfiles cache delete |
删除指定的缓存。 |
Core | GA |
| az netappfiles cache list |
列出容量池中的所有缓存。 |
Core | GA |
| az netappfiles cache list-peering-passphrase |
此操作将列出群集对等互连命令、群集对等互连通行短语和 vserver 对等互连命令。 |
Core | GA |
| az netappfiles cache pool-change |
将缓存移动到另一个容量池。 |
Core | GA |
| az netappfiles cache reset-smb-password |
重置缓存的 SMB 密码。 |
Core | GA |
| az netappfiles cache show |
获取指定缓存的详细信息。 |
Core | GA |
| az netappfiles cache update |
更新容量池中的指定缓存。 |
Core | GA |
| az netappfiles cache wait |
将 CLI 置于等待状态,直到满足条件。 |
Core | GA |
az netappfiles cache create
在容量池中创建指定的缓存。
az netappfiles cache create --account-name
--cache-name --name
--cache-subnet-id --cache-subnet-resource-id
--encryption-key-source {Microsoft.KeyVault, Microsoft.NetApp}
--file-path
--peer-addresses
--peer-cluster-name
--peer-volume-name
--peer-vserver-name
--peering-subnet-id --peering-subnet-resource-id
--pool-name
--resource-group
--size
[--acquire-policy-token]
[--change-reference]
[--cifs-change-notifications --cifs-change-notify {Disabled, Enabled}]
[--export-policy-rules --rules]
[--global-file-locking {Disabled, Enabled}]
[--kerberos {Disabled, Enabled}]
[--key-vault-private-endpoint-resource-id --kv-private-endpoint-id]
[--ldap {Disabled, Enabled}]
[--ldap-server-type {ActiveDirectory, OpenLDAP}]
[--location]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--protocol-types]
[--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
[--smb-encryption {Disabled, Enabled}]
[--smb-non-browsable {Disabled, Enabled}]
[--tags]
[--throughput-mibps]
[--write-back {Disabled, Enabled}]
[--zones]
示例
Caches_CreateOrUpdate
az netappfiles cache create --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache1 --location eastus --file-path cache-west-us2-01 --size 107374182400 --ldap Enabled --ldap-server-type OpenLDAP --cache-subnet-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/cacheVnet/subnets/cacheSubnet1 --peering-subnet-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/icLifVnet/subnets/peeringSubnet1 --encryption-key-source Microsoft.NetApp --origin-cluster-information "{peer-cluster-name:cluster1,peer-addresses:[192.0.2.10,192.0.2.11],peer-vserver-name:vserver1,peer-volume-name:originvol1}"
必需参数
NetApp 帐户的名称。
缓存资源的名称。
将用于分配数据 IP 的委派缓存子网的 Azure 资源 URI。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
用于加密缓存中数据的密钥源。 如果 NetApp 帐户具有 encryption.keySource = “Microsoft.KeyVault”,则适用。 可能的值(不区分大小写)是:“Microsoft。NetApp,Microsoft。KeyVault'。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Microsoft.KeyVault, Microsoft.NetApp |
缓存的文件路径。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
ONTAP 集群间 LIF IP 地址。 每个群集节点需要一个 IP 地址,支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | OriginClusterInformation Arguments |
托管源卷的外部集群的ONTAP集群名称。 必须与集群名称完全一致。
| 属性 | 值 |
|---|---|
| 参数组: | OriginClusterInformation Arguments |
与此缓存关联的外部源卷名称。
| 属性 | 值 |
|---|---|
| 参数组: | OriginClusterInformation Arguments |
托管源卷的 SVM 的外部 Vserver (SVM) 名称。
| 属性 | 值 |
|---|---|
| 参数组: | OriginClusterInformation Arguments |
将用于 ANF 群集间接口 IP 地址的委派子网的 Azure 资源 URI。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
容量池的名称。
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
文件系统允许的最大存储配额(以字节为单位)。 有效值在 50GiB 到 1PiB 的范围内。 以字节表示为 1GiB 的倍数的值。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
指示是否为缓存启用 CIFS 更改通知的标志。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
导出策略规则支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | ExportPolicy Arguments |
指示是否为缓存启用全局文件锁的标志。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
描述缓存是否启用了 Kerberos。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
KeyVault 的专用终结点的资源 ID。 它必须与卷位于同一 VNET 中。 仅当 encryptionKeySource = 'Microsoft.KeyVault' 时才适用。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
指定是否为 Flexcache 卷启用 LDAP。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
指定 flexcache 卷的 LDAP 服务器类型。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | ActiveDirectory, OpenLDAP |
未指定资源所在的地理位置,将使用资源组的位置。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
支持的协议类型集,包括 NFSv3、NFSv4 和 SMB 协议支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
为 SMB 共享启用基于访问的枚举共享属性。 仅适用于 SMB/DualProtocol 卷。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
为正在进行的 smb3 数据启用加密。 仅适用于 SMB/DualProtocol 缓存。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
为 SMB 共享启用不可浏览的属性。 仅适用于 SMB/DualProtocol 卷。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
MiB/s 中可由此缓存卷实现的最大吞吐量,并且仅接受为手动 qosType 缓存的输入。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
指示是否为缓存启用写回的标志。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
可用性区域。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 netappfiles cache delete
删除指定的缓存。
az netappfiles cache delete [--account-name]
[--acquire-policy-token]
[--cache-name --name]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pool-name]
[--resource-group]
[--subscription]
[--yes]
示例
Caches_Delete
az netappfiles cache delete --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache1
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不请求确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache list
列出容量池中的所有缓存。
az netappfiles cache list --account-name
--pool-name
--resource-group
[--max-items]
[--next-token]
示例
Caches_List
az netappfiles cache list --resource-group myRG --account-name account1 --pool-name pool1
必需参数
NetApp 帐户的名称。
容量池的名称。
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 netappfiles cache list-peering-passphrase
此操作将列出群集对等互连命令、群集对等互连通行短语和 vserver 对等互连命令。
az netappfiles cache list-peering-passphrase [--account-name]
[--acquire-policy-token]
[--cache-name]
[--change-reference]
[--ids]
[--pool-name]
[--resource-group]
[--subscription]
示例
Caches_ListPeeringPassphrases
az netappfiles cache list-peering-passphrase --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache-1
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache pool-change
将缓存移动到另一个容量池。
az netappfiles cache pool-change --new-pool-resource-id
[--account-name]
[--acquire-policy-token]
[--cache-name]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pool-name]
[--resource-group]
[--subscription]
示例
Caches_PoolChange
az netappfiles cache pool-change --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache1 --new-pool-resource-id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/netAppAccounts/account1/capacityPools/pool2
必需参数
要移动到的池的资源 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache reset-smb-password
重置缓存的 SMB 密码。
az netappfiles cache reset-smb-password [--account-name]
[--acquire-policy-token]
[--cache-name]
[--change-reference]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pool-name]
[--resource-group]
[--subscription]
示例
Caches_ResetSmbPassword
az netappfiles cache reset-smb-password --resource-group myResourceGroup --account-name account1 --pool-name pool1 --cache-name cache1
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache show
获取指定缓存的详细信息。
az netappfiles cache show [--account-name]
[--cache-name --name]
[--ids]
[--pool-name]
[--resource-group]
[--subscription]
示例
Caches_Get
az netappfiles cache show --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache1
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache update
更新容量池中的指定缓存。
az netappfiles cache update [--account-name]
[--acquire-policy-token]
[--add]
[--cache-name --name]
[--change-reference]
[--cifs-change-notifications --cifs-change-notify {Disabled, Enabled}]
[--export-policy-rules --rules]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--key-vault-private-endpoint-resource-id --kv-private-endpoint-id]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pool-name]
[--protocol-types]
[--remove]
[--resource-group]
[--set]
[--size]
[--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
[--smb-encryption {Disabled, Enabled}]
[--smb-non-browsable {Disabled, Enabled}]
[--subscription]
[--tags]
[--throughput-mibps]
[--write-back {Disabled, Enabled}]
示例
Caches_CreateOrUpdate
az netappfiles cache update --resource-group myRG --account-name account1 --pool-name pool1 --cache-name cache1 --size 107374182400
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
指示是否为缓存启用 CIFS 更改通知的标志。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
导出策略规则支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | ExportPolicy Arguments |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
KeyVault 的专用终结点的资源 ID。 它必须与卷位于同一 VNET 中。 仅当 encryptionKeySource = 'Microsoft.KeyVault' 时才适用。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
支持的协议类型集,包括 NFSv3、NFSv4 和 SMB 协议支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
文件系统允许的最大存储配额(以字节为单位)。 有效值在 50GiB 到 1PiB 的范围内。 以字节表示为 1GiB 的倍数的值。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
为 SMB 共享启用基于访问的枚举共享属性。 仅适用于 SMB/DualProtocol 卷。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
为正在进行的 smb3 数据启用加密。 仅适用于 SMB/DualProtocol 缓存。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
为 SMB 共享启用不可浏览的属性。 仅适用于 SMB/DualProtocol 卷。
| 属性 | 值 |
|---|---|
| 参数组: | SmbSettings Arguments |
| 接受的值: | Disabled, Enabled |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Body Arguments |
MiB/s 中可由此缓存卷实现的最大吞吐量,并且仅接受为手动 qosType 缓存的输入。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
指示是否为缓存启用写回的标志。
| 属性 | 值 |
|---|---|
| 参数组: | Properties Arguments |
| 接受的值: | Disabled, Enabled |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az netappfiles cache wait
将 CLI 置于等待状态,直到满足条件。
az netappfiles cache wait [--account-name]
[--acquire-policy-token]
[--cache-name --name]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--pool-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
NetApp 帐户的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
缓存资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
容量池的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
只显示错误,取消显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |