az netappfiles cache

管理快取資源。

管理 Azure NetApp Files (ANF) Cache Resources.

命令

名稱 Description 類型 狀態
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}"

必要參數

--account-name -a

NetApp 帳戶的名稱。

--cache-name --name -n

快取資源的名稱。

--cache-subnet-id --cache-subnet-resource-id

委派快取子網路的 Azure 資源 URI,可用來配置資料 IP。

屬性 值
參數群組: Properties Arguments
--encryption-key-source

用來加密快取中資料的金鑰來源。 如果NetApp帳戶具有encryption.keySource = 'Microsoft.KeyVault'、則適用。 可能的值(不區分大小寫)有:'Microsoft.NetApp,Microsoft。KeyVault。

屬性 值
參數群組: Properties Arguments
接受的值: Microsoft.KeyVault, Microsoft.NetApp
--file-path

快取的檔案路徑。

屬性 值
參數群組: Properties Arguments
--peer-addresses

ONTAP 叢集間 LIF IP 位址。 每個叢集節點需有一個 IP 位址 支援簡寫語法、json-file 及 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: OriginClusterInformation Arguments
--peer-cluster-name

ONTAP 叢集名稱是承載原始磁碟區的外部叢集名稱。 必須完全符合叢集名稱。

屬性 值
參數群組: OriginClusterInformation Arguments
--peer-volume-name

與此快取相關的外部來源卷名稱。

屬性 值
參數群組: OriginClusterInformation Arguments
--peer-vserver-name

外部 Vserver (SVM) 是承載原始磁碟區的 SVM 名稱。

屬性 值
參數群組: OriginClusterInformation Arguments
--peering-subnet-id --peering-subnet-resource-id

將用於 ANF 叢集間介面 IP 位址之委派子網路的 Azure 資源 URI。

屬性 值
參數群組: Properties Arguments
--pool-name -p

容量集區的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

--size

檔案系統允許的儲存配額上限 (以位元組為單位)。 有效值的範圍為 50GiB 到 1PiB。 以位元組表示的值,表示為 1GiB 的倍數。

屬性 值
參數群組: Properties Arguments

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--cifs-change-notifications --cifs-change-notify

指示是否為快取啟用CIFS變更通知的旗標。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--export-policy-rules --rules

匯出原則規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: ExportPolicy Arguments
--global-file-locking

指示是否已啟用快取全域檔案鎖定的旗標。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--kerberos

描述快取是否已啟用 Kerberos。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--key-vault-private-endpoint-resource-id --kv-private-endpoint-id

KeyVault 私人端點的資源標識碼。 它必須位於與磁碟區相同的 VNET 中。 只有在 encryptionKeySource = 'Microsoft.KeyVault' 時才適用。

屬性 值
參數群組: Properties Arguments
--ldap

指定是否為flexcache卷啟用LDAP。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--ldap-server-type

指定flexcache磁碟區的LDAP伺服器型別。

屬性 值
參數群組: Properties Arguments
接受的值: ActiveDirectory, OpenLDAP
--location -l

未指定資源所在的地理位置,將會使用資源群組的位置。

屬性 值
參數群組: Body Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--protocol-types

支援的協定類型集合,包括 NFSv3、NFSv4 及 SMB 協定,支援簡寫語法、json 檔案及 yaml 檔案。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Properties Arguments
--smb-access-based-enumeration --smb-access-enumeration

啟用 SMB 共用的存取型列舉共用屬性。 僅適用於 SMB/DualProtocol 磁碟區。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--smb-encryption

啟用進行中 smb3 資料的加密。 僅適用於 SMB/DualProtocol 快取。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--smb-non-browsable

啟用 SMB 共用的不可瀏覽屬性。 僅適用於 SMB/DualProtocol 磁碟區。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--tags

資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Body Arguments
--throughput-mibps

此快取卷可達成的最大吞吐量(MiB/s),且僅作為手動 qosType 快取的輸入。

屬性 值
參數群組: Properties Arguments
--write-back

指示是否已啟用快取回寫的旗標。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--zones

可用性區域。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Body Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--cache-name --name -n

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
--yes -y

不提示確認。

屬性 值
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

必要參數

--account-name -a

NetApp 帳戶的名稱。

--pool-name -p

容量集區的名稱。

--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--max-items

命令輸出中要傳回的項目總數。 如果可用的專案總數超過指定的值,則會在命令的輸出中提供令牌。 若要繼續分頁,請在後續命令的 --next-token 自變數中提供令牌值。

屬性 值
參數群組: Pagination Arguments
--next-token

標記,指定要開始分頁的位置。 這是先前截斷回應中的令牌值。

屬性 值
參數群組: Pagination Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--cache-name -c

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

必要參數

--new-pool-resource-id

要移動磁碟區之集區的資源標識碼。

屬性 值
參數群組: Body Arguments

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--cache-name -c

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--cache-name -c

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--cache-name --name -n

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--add

藉由指定路徑和索引鍵值組,將物件加入物件清單。 範例:--add property.listProperty <key=value, string or JSON string>。

屬性 值
參數群組: Generic Update Arguments
--cache-name --name -n

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--cifs-change-notifications --cifs-change-notify

指示是否為快取啟用CIFS變更通知的旗標。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--export-policy-rules --rules

匯出原則規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: ExportPolicy Arguments
--force-string

使用 'set' 或 'add' 時,請保留字串常值,而不是嘗試轉換成 JSON。

屬性 值
參數群組: Generic Update Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--key-vault-private-endpoint-resource-id --kv-private-endpoint-id

KeyVault 私人端點的資源標識碼。 它必須位於與磁碟區相同的 VNET 中。 只有在 encryptionKeySource = 'Microsoft.KeyVault' 時才適用。

屬性 值
參數群組: Properties Arguments
--no-wait

請勿等候長時間執行的作業完成。

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--protocol-types

支援的協定類型集合,包括 NFSv3、NFSv4 及 SMB 協定,支援簡寫語法、json 檔案及 yaml 檔案。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Properties Arguments
--remove

從清單中移除屬性或專案。 範例: --remove property.list <indexToRemove> 或 --remove propertyToRemove。

屬性 值
參數群組: Generic Update Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--set

指定要設定的屬性路徑和值,以更新物件。 範例:--set property1.property2=<value>。

屬性 值
參數群組: Generic Update Arguments
--size

檔案系統允許的儲存配額上限 (以位元組為單位)。 有效值的範圍為 50GiB 到 1PiB。 以位元組表示的值,表示為 1GiB 的倍數。

屬性 值
參數群組: Properties Arguments
--smb-access-based-enumeration --smb-access-enumeration

啟用 SMB 共用的存取型列舉共用屬性。 僅適用於 SMB/DualProtocol 磁碟區。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--smb-encryption

啟用進行中 smb3 資料的加密。 僅適用於 SMB/DualProtocol 快取。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--smb-non-browsable

啟用 SMB 共用的不可瀏覽屬性。 僅適用於 SMB/DualProtocol 磁碟區。

屬性 值
參數群組: SmbSettings Arguments
接受的值: Disabled, Enabled
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
--tags

資源標籤。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性 值
參數群組: Body Arguments
--throughput-mibps

此快取卷可達成的最大吞吐量(MiB/s),且僅作為手動 qosType 快取的輸入。

屬性 值
參數群組: Properties Arguments
--write-back

指示是否已啟用快取回寫的旗標。

屬性 值
參數群組: Properties Arguments
接受的值: Disabled, Enabled
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --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]

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--account-name -a

NetApp 帳戶的名稱。

屬性 值
參數群組: Resource Id Arguments
--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--cache-name --name -n

快取資源的名稱。

屬性 值
參數群組: Resource Id Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
--created

請等候在 'Succeeded' 使用 'provisioningState' 建立。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--custom

等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

屬性 值
參數群組: Wait Condition Arguments
--deleted

等到刪除為止。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--exists

等候資源存在。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
--ids

一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。

屬性 值
參數群組: Resource Id Arguments
--interval

輪詢間隔以秒為單位。

屬性 值
參數群組: Wait Condition Arguments
預設值: 30
--pool-name -p

容量集區的名稱。

屬性 值
參數群組: Resource Id Arguments
--resource-group -g

資源群組的名稱。 您可以使用 az configure --defaults group=<name> 來設定預設群組。

屬性 值
參數群組: Resource Id Arguments
--subscription

訂用帳戶的名稱或識別碼。 您可以使用 az account set -s NAME_OR_ID 設定預設訂用帳戶。

屬性 值
參數群組: Resource Id Arguments
--timeout

以秒為單位的等候上限。

屬性 值
參數群組: Wait Condition Arguments
預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

屬性 值
參數群組: Wait Condition Arguments
預設值: False
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False