共用方式為


az netappfiles volume

Note

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益於其擴充功能。 深入了解擴充功能。

管理 Azure NetApp Files (ANF) 磁碟區資源。

產生的 Azure NetApp Files (ANF) 磁碟區建立更新刪除作業。

命令

名稱 Description 類型 狀態
az netappfiles volume break-file-locks

中斷磁碟區上的所有檔案鎖定。

Core GA
az netappfiles volume create

建立或更新磁碟區。

Core GA
az netappfiles volume create (netappfiles-preview 擴充功能)

建立或更新磁碟區。

Extension Preview
az netappfiles volume delete

刪除指定的磁碟區。

Core GA
az netappfiles volume delete (netappfiles-preview 擴充功能)

刪除指定的磁碟區。

Extension Preview
az netappfiles volume export-policy

管理 Azure NetApp Files (ANF) 磁碟區導出原則。

Core GA
az netappfiles volume export-policy add

將新規則新增至磁碟區的導出原則。

Core GA
az netappfiles volume export-policy list

列出磁碟區的匯出原則規則。

Core GA
az netappfiles volume export-policy remove

依規則索引從磁碟區的導出原則中移除規則。 執行子群組清單命令即可取得目前的規則。

Core GA
az netappfiles volume export-policy show

顯示磁碟區的匯出原則規則。

Core GA
az netappfiles volume export-policy update

更新磁碟區的匯出原則規則。

Core GA
az netappfiles volume export-policy wait

將 CLI 置於等候狀態,直到符合條件為止。

Core GA
az netappfiles volume finalize-relocation

完成磁碟區重新配置並清除舊磁碟區。

Core GA
az netappfiles volume get-groupid-list-for-ldapuser

傳回特定LDAP使用者的群組標識碼清單。

Core GA
az netappfiles volume latest-backup-status

取得磁碟區的最新備份狀態。

核心和擴充功能 GA
az netappfiles volume latest-backup-status current

取得目前磁碟區的最新備份狀態。

核心和擴充功能 GA
az netappfiles volume latest-backup-status current show

取得磁碟區備份的最新狀態。

Core GA
az netappfiles volume latest-backup-status current show (netappfiles-preview 擴充功能)

取得磁碟區備份的最新狀態。

Extension Preview
az netappfiles volume latest-restore-status

取得磁碟區的最新備份狀態。

Core GA
az netappfiles volume latest-restore-status current

取得磁碟區的最新還原狀態。

Core GA
az netappfiles volume latest-restore-status current show

取得磁碟區還原的最新狀態。

Core GA
az netappfiles volume list

列出容量集區內的所有磁碟區。

Core GA
az netappfiles volume list (netappfiles-preview 擴充功能)

列出容量集區內的所有磁碟區。

Extension Preview
az netappfiles volume list-quota-report

傳回磁碟區配額的報告。

Extension Preview
az netappfiles volume migrate-backup

將磁碟區下的備份移轉至備份保存庫。

Core GA
az netappfiles volume migrate-backup (netappfiles-preview 擴充功能)

將磁碟區下的備份移轉至備份保存庫。

Extension Preview
az netappfiles volume pool-change

將磁碟區移至另一個集區。

Core GA
az netappfiles volume populate-availability-zone

此作業會填入磁碟區的可用性區域資訊。

Core GA
az netappfiles volume quota-rule

管理 Azure NetApp Files (ANF) 磁碟區配額規則資源。

Core GA
az netappfiles volume quota-rule create

在指定的磁碟區內建立指定的配額規則。

Core GA
az netappfiles volume quota-rule delete

刪除配額規則。

Core GA
az netappfiles volume quota-rule list

列出與磁碟區相關聯的所有配額規則。

Core GA
az netappfiles volume quota-rule show

取得指定配額規則的詳細數據。

Core GA
az netappfiles volume quota-rule update

更新指定磁碟區內的指定配額規則。

Core GA
az netappfiles volume quota-rule wait

將 CLI 置於等候狀態,直到符合條件為止。

Core GA
az netappfiles volume relocate

將磁碟區重新放置到新的戳記。

Core GA
az netappfiles volume replication

管理 Azure NetApp Files (ANF) 磁碟區複寫。

Core GA
az netappfiles volume replication approve

授權來源磁碟區複寫。

Core GA
az netappfiles volume replication authorize-external-replication

啟動 SVM 對等互連,並傳回在外部 ONTAP 上執行的命令以接受它。 一旦 SVM 已對等互連,就會建立 SnapMirror。

Core GA
az netappfiles volume replication finalize-external-replication

如果沒有任何其他移轉作用中,釋放複寫並中斷外部叢集對等互連,以完成外部磁碟區的移轉。

Core GA
az netappfiles volume replication list

列出指定磁碟區的所有複寫。

Core GA
az netappfiles volume replication peer-external-cluster

開始將此移轉磁碟區的外部叢集對等互連。

Core GA
az netappfiles volume replication perform-replication-transfer

在具有 volumeType 移轉的磁碟區上執行臨機作復寫傳輸。

Core GA
az netappfiles volume replication populate-availability-zone

此作業會填入磁碟區的可用性區域資訊。

Core GA
az netappfiles volume replication re-initialize

Re-Initializes 目的地磁碟區上的復寫連線。

Core GA
az netappfiles volume replication reestablish

在具有一般臨機作或原則型快照集的 2 個磁碟區之間重新建立先前刪除的複寫。

Core GA
az netappfiles volume replication remove

刪除目的地磁碟區上的復寫連線,並將發行傳送至來源複寫。

Core GA
az netappfiles volume replication resume

重新同步目的地磁碟區上的連線。 如果作業是在來源磁碟區上執行,則會反向重新同步連線,並從目的地同步至來源。

Core GA
az netappfiles volume replication status

取得複寫的狀態。

Core GA
az netappfiles volume replication suspend

暫停/中斷目的地磁碟區上的復寫連線。

Core GA
az netappfiles volume reset-cifs-pw

從磁碟區重設 cifs 密碼。

Core GA
az netappfiles volume revert

將磁碟區還原為本文中指定的快照集。

Core GA
az netappfiles volume revert-relocation

還原磁碟區重新配置程式、清除新的磁碟區,並開始使用先前現有的磁碟區。

Core GA
az netappfiles volume show

取得指定磁碟區的詳細數據。

Core GA
az netappfiles volume show (netappfiles-preview 擴充功能)

取得指定磁碟區的詳細數據。

Extension Preview
az netappfiles volume splitclonefromparent

將複製磁碟區轉換成獨立磁碟區的分割作業。

Core GA
az netappfiles volume splitclonefromparent (netappfiles-preview 擴充功能)

將複製磁碟區轉換成獨立磁碟區的分割作業。

Extension Preview
az netappfiles volume update

更新容量集區內的指定磁碟區。

Core GA
az netappfiles volume update (netappfiles-preview 擴充功能)

更新容量集區內的指定磁碟區。

Extension Preview
az netappfiles volume wait

將 CLI 置於等候狀態,直到符合條件為止。

Core GA
az netappfiles volume wait (netappfiles-preview 擴充功能)

將 CLI 置於等候狀態,直到符合條件為止。

Extension GA

az netappfiles volume break-file-locks

中斷磁碟區上的所有檔案鎖定。

az netappfiles volume break-file-locks [--account-name]
                                       [--client-ip]
                                       [--confirm --confirm-running-disruptive-operation {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--ids]
                                       [--name --volume-name]
                                       [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                       [--pool-name]
                                       [--resource-group]
                                       [--subscription]
                                       [--yes]

範例

中斷磁碟區上的所有檔案鎖定

az netappfiles volume break-file-locks -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--client-ip

若要清除特定用戶端磁碟區上的檔案鎖定。

屬性
參數群組: Body Arguments
--confirm --confirm-running-disruptive-operation

中斷檔案鎖定可能是應用程式的干擾性作業,因為如果想要處理,磁碟區上的鎖定將會中斷,設定為 true。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume create

建立或更新磁碟區。

在容量集區內建立指定的磁碟區。

az netappfiles volume create --account-name
                             --creation-token --file-path
                             --name --volume-name
                             --pool-name
                             --resource-group
                             [--accept-grow-capacity-pool-for-short-term-clone-split --grow-pool-clone-split {Accepted, Declined}]
                             [--allowed-clients]
                             [--avs-data-store {Disabled, Enabled}]
                             [--backup-id]
                             [--backup-policy-id]
                             [--backup-vault-id]
                             [--ca-retrieval-policy --cool-access-retrieval-policy {Default, Never, OnRead}]
                             [--ca-tiering-policy --cool-access-tiering-policy {Auto, SnapshotOnly}]
                             [--capacity-pool-resource-id --pool-resource-id]
                             [--chown-mode {Restricted, Unrestricted}]
                             [--cifs {0, 1, f, false, n, no, t, true, y, yes}]
                             [--cool-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--coolness-period]
                             [--default-group-quota --default-group-quota-in-ki-bs]
                             [--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--default-user-quota --default-user-quota-in-ki-bs]
                             [--delete-base-snapshot {0, 1, f, false, n, no, t, true, y, yes}]
                             [--enable-subvolumes {Disabled, Enabled}]
                             [--encryption-key-source {Microsoft.KeyVault, Microsoft.NetApp}]
                             [--export-policy-rules --rules]
                             [--external-host-name]
                             [--external-server-name]
                             [--external-volume-name]
                             [--has-root-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--is-large-volume {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5i-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5i-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5p-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5p-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--key-vault-private-endpoint-resource-id --kv-private-endpoint-id]
                             [--ldap-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--location]
                             [--network-features {Basic, Standard}]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--placement-rules]
                             [--policy-enforced {0, 1, f, false, n, no, t, true, y, yes}]
                             [--ppg --proximity-placement-group]
                             [--protocol-types]
                             [--relocation-requested {0, 1, f, false, n, no, t, true, y, yes}]
                             [--remote-volume-id --remote-volume-resource-id]
                             [--remote-volume-region]
                             [--replication-schedule {_10minutely, daily, hourly}]
                             [--rule-index]
                             [--security-style {ntfs, unix}]
                             [--service-level {Flexible, Premium, Standard, StandardZRS, Ultra}]
                             [--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
                             [--smb-ca --smb-continuously-available --smb-continuously-avl {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-encryption {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-non-browsable {Disabled, Enabled}]
                             [--snapshot-dir-visible --snapshot-directory-visible {0, 1, f, false, n, no, t, true, y, yes}]
                             [--snapshot-id]
                             [--snapshot-policy-id]
                             [--subnet --subnet-id]
                             [--tags]
                             [--throughput-mibps]
                             [--unix-permissions]
                             [--unix-read-only {0, 1, f, false, n, no, t, true, y, yes}]
                             [--unix-read-write {0, 1, f, false, n, no, t, true, y, yes}]
                             [--usage-threshold]
                             [--vnet]
                             [--volume-spec-name]
                             [--volume-type]
                             [--zones]

範例

建立 ANF 磁碟區

az netappfiles volume create -g group --account-name aname --pool-name pname --volume-name vname -l location --service-level "Premium" --usage-threshold 100 --creation-token "unique-token" --protocol-types NFSv3 --vnet myvnet --subnet-id "/subscriptions/mysubsid/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/default" --rules '[{"allowed_clients":"0.0.0.0/0","rule_index":"1","unix_read_only":"true","unix_read_write":"false","cifs":"false","nfsv3":"true","nfsv41":"false"}]'

建立已指定區域 (可用性區域) 的 ANF 磁碟區

az netappfiles volume create -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname -l westus2 --service-level premium --usage-threshold 100 --file-path "unique-file-path" --vnet myvnet --subnet mysubnet --protocol-types NFSv3 --zones zone1

使用 CMK 加密建立 ANF 磁碟區

az netappfiles volume create -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname -l westus2 --service-level premium --usage-threshold 100 --file-path "unique-file-path" --vnet myvnet --subnet mysubnet --protocol-types NFSv3 --network-features Standard --protocol-types NFSv4.1 --rule-index 1 --allowed-clients '10.7.0.0/24' --kerberos-enabled false --encryption-key-source  Microsoft.KeyVault --kv-private-endpoint-id myPrivateEndpointId

必要參數

--account-name -a

NetApp 帳戶的名稱。

--creation-token --file-path

磁碟區的唯一檔案路徑。 建立掛接目標時使用。

屬性
參數群組: Properties Arguments
--name --volume-name -n -v

磁碟區的名稱。

--pool-name -p

容量集區的名稱。

--resource-group -g

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

選擇性參數

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

--accept-grow-capacity-pool-for-short-term-clone-split --grow-pool-clone-split

當自動分割短期複製磁碟區時,如果父集區沒有足夠的空間來容納分割之後的磁碟區,它會自動重設大小,這會導致計費增加。 若要接受容量集區大小自動成長並建立短期複製磁碟區,請將 屬性設定為已接受。

屬性
參數群組: Properties Arguments
接受的值: Accepted, Declined
--allowed-clients

用戶端輸入規格以逗號分隔字串,其中包含IPv4CIDR、IPv4 主機名和主機名。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
--avs-data-store

指定磁碟區是否已啟用 Azure VMware 解決方案 (AVS) 資料存放區用途。

屬性
參數群組: Properties Arguments
預設值: Disabled
接受的值: Disabled, Enabled
--backup-id

用來識別備份的資源標識碼。

屬性
參數群組: Properties Arguments
--backup-policy-id

備份原則資源標識碼。

屬性
參數群組: Backup Arguments
--backup-vault-id

備份保存庫資源標識碼。

屬性
參數群組: Backup Arguments
--ca-retrieval-policy --cool-access-retrieval-policy

CoolAccessRetrievalPolicy 會根據已啟用非經常性存取的磁碟區讀取模式,決定從非經常性存取層到標準記憶體的數據擷取行為。 此欄位的可能值為:預設值 - 資料會從非經常性存取層提取到隨機讀取的標準記憶體。 此原則是預設值。 OnRead - 所有用戶端驅動數據讀取都會從非經常性存取層提取到循序和隨機讀取的標準記憶體。 永不 - 不會從非經常性存取層提取任何用戶端驅動數據到標準記憶體。

屬性
參數群組: Properties Arguments
接受的值: Default, Never, OnRead
--ca-tiering-policy --cool-access-tiering-policy

CoolAccessTieringPolicy 會決定哪些冷數據區塊會移至非經常性存取層。 此欄位的可能值為:自動 - 將快照集復本和作用中文件系統中的冷用戶數據區塊移至非經常性存取層層。 此原則是預設值。 SnapshotOnly - 將與作用中文件系統沒有關聯的磁碟區快照集用戶數據區塊移至非經常性存取層。

屬性
參數群組: Properties Arguments
接受的值: Auto, SnapshotOnly
--capacity-pool-resource-id --pool-resource-id

集區資源標識碼,用於透過磁碟區群組建立磁碟區。

屬性
參數群組: Properties Arguments
--chown-mode

此參數會指定誰有權變更檔案的擁有權。 受限制 - 只有根使用者可以變更檔案的擁有權。 不受限制 - 非根使用者可以變更其擁有的檔案擁有權。 可能的值包括 - 受限制、不受限制。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: Restricted, Unrestricted
--cifs

允許 CIFS 通訊協定。 僅針對 CIFS 類型磁碟區啟用。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--cool-access

指定是否為磁碟區啟用非經常性存取(階層處理)。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--coolness-period

指定用戶端不會存取資料的天數。

屬性
參數群組: Properties Arguments
--default-group-quota --default-group-quota-in-ki-bs

KiB 中磁碟區的預設群組配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
預設值: 0
--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled

指定磁碟區是否啟用預設配額。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--default-user-quota --default-user-quota-in-ki-bs

KiBs 中磁碟區的預設使用者配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
預設值: 0
--delete-base-snapshot

如果已啟用 (true),則磁碟區建立的快照集會在磁碟區建立作業完成之後自動刪除。 預設為 False。

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

指出磁碟區上是否啟用子捲作業的旗標。

屬性
參數群組: Properties Arguments
預設值: Disabled
接受的值: Disabled, Enabled
--encryption-key-source

用來加密磁碟區中數據的金鑰來源。 如果 NetApp 帳戶具有 encryption.keySource = 'Microsoft.KeyVault',則適用。 可能的值為:『Microsoft.NetApp,Microsoft.KeyVault』。

屬性
參數群組: CMK Encryption Arguments
預設值: Microsoft.NetApp
接受的值: Microsoft.KeyVault, Microsoft.NetApp
--export-policy-rules --rules

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

屬性
參數群組: ExportPolicy Arguments
--external-host-name

ONTAP 主機的路徑。

屬性
參數群組: RemotePath Arguments
--external-server-name

ONTAP 主機上的伺服器名稱。

屬性
參數群組: RemotePath Arguments
--external-volume-name

伺服器上的磁碟區名稱。

屬性
參數群組: RemotePath Arguments
--has-root-access

具有磁碟區的根存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--is-large-volume

指定磁碟區是大型磁碟區還是一般磁碟區。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos-enabled

描述磁碟區是否為 KerberosEnabled。 與 Swagger 版本 2020-05-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-r

Kerberos5 只讀存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-rw

Kerberos5 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-r

Kerberos5i Readonly 存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-rw

Kerberos5i 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-r

Kerberos5p 唯讀存取。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-rw

Kerberos5p 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--key-vault-private-endpoint-resource-id --kv-private-endpoint-id

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

屬性
參數群組: CMK Encryption Arguments
--ldap-enabled

指定指定的NFS磁碟區是否啟用LDAP。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--location -l

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

屬性
參數群組: Body Arguments
--network-features

可供磁碟區使用的基本網路或標準功能。

屬性
參數群組: Properties Arguments
預設值: Basic
接受的值: Basic, Standard
--no-wait

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

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

特定磁碟區的應用程式特定放置規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--policy-enforced

強制執行原則。

屬性
參數群組: Backup Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--ppg --proximity-placement-group

與磁碟區相關聯的鄰近放置群組。

屬性
參數群組: Properties Arguments
--protocol-types

一組通訊協定類型、預設的 NFSv3、SMB 通訊協定的 CIFS 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--relocation-requested

已要求重新配置此磁碟區。

屬性
參數群組: VolumeRelocation Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--remote-volume-id --remote-volume-resource-id

遠端磁碟區的資源標識碼。

屬性
參數群組: Replication Arguments
--remote-volume-region

磁碟區復寫另一端的遠端區域。

屬性
參數群組: Replication Arguments
--replication-schedule

Schedule.

屬性
參數群組: Replication Arguments
接受的值: _10minutely, daily, hourly
--rule-index

訂單索引。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
--security-style

磁碟區的安全性樣式預設為 ntfs,預設為雙重通訊協定或 CIFS 通訊協定。

屬性
參數群組: Properties Arguments
預設值: unix
接受的值: ntfs, unix
--service-level

ServiceLevel.

屬性
參數群組: Properties Arguments
預設值: Premium
接受的值: Flexible, Premium, Standard, StandardZRS, Ultra
--smb-access-based-enumeration --smb-access-enumeration

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--smb-ca --smb-continuously-available --smb-continuously-avl

為smb磁碟區啟用持續可用的共享屬性。 僅適用於SMB磁碟區。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-encryption

啟用內部 smb3 資料的加密。 僅適用於SMB/DualProtocol磁碟區。 與 Swagger 版本 2020-08-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-non-browsable

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--snapshot-dir-visible --snapshot-directory-visible

如果啟用 (true), 磁碟區將包含唯讀快照集目錄,可提供每個磁碟區快照集的存取權(預設值為 true)。

屬性
參數群組: Properties Arguments
預設值: True
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--snapshot-id

用來識別快照集的資源標識碼。

屬性
參數群組: Properties Arguments
--snapshot-policy-id

快照集原則 ResourceId。

屬性
參數群組: Snapshot Arguments
--subnet --subnet-id

委派子網的 Azure 資源 URI。 必須具有委派Microsoft.NetApp/volumes。

屬性
參數群組: Properties Arguments
預設值: default
--tags

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

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

MiB/s 中可透過此磁碟區達到的最大輸送量,這隻會接受為手動 qosType 磁碟區的輸入。

屬性
參數群組: Properties Arguments
--unix-permissions

以八進位 4 位數格式接受的 NFS 磁碟區 UNIX 許可權。 第一個數字會選取設定的使用者標識元(4)、設定群組標識碼 (2) 和黏性 (1) 屬性。 第二位數會選取檔案擁有者的許可權:讀取 (4)、寫入 (2) 和執行 (1)。 第三個會選取相同群組中其他用戶的許可權。 群組中其他使用者的第四個。 0755 - 提供擁有者讀取/寫入/執行許可權給群組和其他使用者。

屬性
參數群組: Properties Arguments
--unix-read-only

唯讀存取權。 存在以提供回溯相容性,請改用 --export-policy-rules (--rules)。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--unix-read-write

讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--usage-threshold

GiB 中文件系統允許的記憶體配額上限。

屬性
參數群組: Properties Arguments
預設值: 100
--vnet

vnet 的名稱或資源標識碼。 如果您想要在其他資源群組中使用 vnet,請提供資源識別碼,而不是 vnet 的名稱。

屬性
參數群組: Properties Arguments
--volume-spec-name

磁碟區規格名稱是磁碟區群組中特定磁碟區的應用程式特定指定或標識元,例如數據、記錄。

屬性
參數群組: Properties Arguments
--volume-type

此磁碟區的類型為何。 針對跨區域復寫中的目的地磁碟區,請將類型設定為 DataProtection。

屬性
參數群組: Properties Arguments
--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 volume create (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立或更新磁碟區。

在容量集區內建立指定的磁碟區。

az netappfiles volume create --account-name
                             --creation-token --file-path
                             --name --volume-name
                             --pool-name
                             --resource-group
                             --vnet
                             [--accept-grow-capacity-pool-for-short-term-clone-split --grow-pool-clone-split {Accepted, Declined}]
                             [--allowed-clients]
                             [--avs-data-store {Disabled, Enabled}]
                             [--backup-id]
                             [--backup-policy-id]
                             [--backup-vault-id]
                             [--ca-retrieval-policy --cool-access-retrieval-policy {Default, Never, OnRead}]
                             [--capacity-pool-resource-id --pool-resource-id]
                             [--chown-mode {Restricted, Unrestricted}]
                             [--cifs {0, 1, f, false, n, no, t, true, y, yes}]
                             [--cool-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--coolness-period]
                             [--default-group-quota --default-group-quota-in-ki-bs]
                             [--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--default-user-quota --default-user-quota-in-ki-bs]
                             [--delete-base-snapshot {0, 1, f, false, n, no, t, true, y, yes}]
                             [--enable-subvolumes {Disabled, Enabled}]
                             [--encryption-key-source {Microsoft.KeyVault, Microsoft.NetApp}]
                             [--endpoint-type {dst, src}]
                             [--export-policy-rules --rules]
                             [--has-root-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--is-large-volume {0, 1, f, false, n, no, t, true, y, yes}]
                             [--is-restoring {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5i-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5i-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5p-r {0, 1, f, false, n, no, t, true, y, yes}]
                             [--kerberos5p-rw {0, 1, f, false, n, no, t, true, y, yes}]
                             [--key-vault-private-endpoint-resource-id --kv-private-endpoint-id]
                             [--language {ar, ar.utf-8, c, c.utf-8, cs, cs.utf-8, da, da.utf-8, de, de.utf-8, en, en-us, en-us.utf-8, en.utf-8, es, es.utf-8, fi, fi.utf-8, fr, fr.utf-8, he, he.utf-8, hr, hr.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ja-jp.pck.utf-8, ja-v1, ja-v1.utf-8, ja.utf-8, ko, ko.utf-8, nl, nl.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, ro, ro.utf-8, ru, ru.utf-8, sk, sk.utf-8, sl, sl.utf-8, sv, sv.utf-8, tr, tr.utf-8, utf8mb4, zh, zh-tw, zh-tw.big5, zh-tw.big5.utf-8, zh-tw.utf-8, zh.gbk, zh.gbk.utf-8, zh.utf-8}]
                             [--ldap-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--location]
                             [--network-features {Basic, Standard}]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--placement-rules]
                             [--policy-enforced {0, 1, f, false, n, no, t, true, y, yes}]
                             [--ppg --proximity-placement-group]
                             [--protocol-types]
                             [--relocation-requested {0, 1, f, false, n, no, t, true, y, yes}]
                             [--remote-path]
                             [--remote-volume-id --remote-volume-resource-id]
                             [--remote-volume-region]
                             [--replication-schedule {_10minutely, daily, hourly}]
                             [--rule-index]
                             [--security-style {ntfs, unix}]
                             [--service-level {Premium, Standard, StandardZRS, Ultra}]
                             [--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
                             [--smb-ca --smb-continuously-available --smb-continuously-avl {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-encryption {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-non-browsable {Disabled, Enabled}]
                             [--snapshot-dir-visible --snapshot-directory-visible {0, 1, f, false, n, no, t, true, y, yes}]
                             [--snapshot-id]
                             [--snapshot-policy-id]
                             [--subnet --subnet-id]
                             [--tags]
                             [--throughput-mibps]
                             [--unix-permissions]
                             [--unix-read-only {0, 1, f, false, n, no, t, true, y, yes}]
                             [--unix-read-write {0, 1, f, false, n, no, t, true, y, yes}]
                             [--usage-threshold]
                             [--volume-spec-name]
                             [--volume-type]
                             [--zones]

範例

建立 ANF 磁碟區

az netappfiles volume create -g group --account-name aname --pool-name pname --volume-name vname -l location --service-level "Premium" --usage-threshold 100 --creation-token "unique-token" --protocol-types NFSv3 --vnet myvnet --subnet-id "/subscriptions/mysubsid/resourceGroups/myrg/providers/Microsoft.Network/virtualNetworks/myvnet/subnets/default" --rules '[{"allowed_clients":"0.0.0.0/0","rule_index":"1","unix_read_only":"true","unix_read_write":"false","cifs":"false","nfsv3":"true","nfsv41":"false"}]'

建立已指定區域 (可用性區域) 的 ANF 磁碟區

az netappfiles volume create -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname -l westus2 --service-level premium --usage-threshold 100 --file-path "unique-file-path" --vnet myvnet --subnet mysubnet --protocol-types NFSv3 --zones zone1

使用 CMK 加密建立 ANF 磁碟區

az netappfiles volume create -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname -l westus2 --service-level premium --usage-threshold 100 --file-path "unique-file-path" --vnet myvnet --subnet mysubnet --protocol-types NFSv3 --network-features Standard --protocol-types NFSv4.1 --rule-index 1 --allowed-clients '10.7.0.0/24' --kerberos-enabled false --encryption-key-source  Microsoft.KeyVault --kv-private-endpoint-id myPrivateEndpointId

必要參數

--account-name -a

NetApp 帳戶的名稱。

--creation-token --file-path

磁碟區的唯一檔案路徑。 建立掛接目標時使用。

屬性
參數群組: Properties Arguments
--name --volume-name -n -v

磁碟區的名稱。

--pool-name -p

容量集區的名稱。

--resource-group -g

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

--vnet

vnet 的名稱或資源標識碼。 如果您想要在其他資源群組或訂用帳戶中使用 vnet,請提供資源識別碼,而不是 vnet 的名稱。

屬性
參數群組: Properties Arguments

選擇性參數

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

--accept-grow-capacity-pool-for-short-term-clone-split --grow-pool-clone-split

當自動分割短期複製磁碟區時,如果父集區沒有足夠的空間來容納分割之後的磁碟區,它會自動重設大小,這會導致計費增加。 若要接受容量集區大小自動成長並建立短期複製磁碟區,請將 屬性設定為已接受。

屬性
參數群組: Properties Arguments
接受的值: Accepted, Declined
--allowed-clients

用戶端輸入規格以逗號分隔字串,其中包含IPv4CIDR、IPv4 主機名和主機名。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
--avs-data-store

指定磁碟區是否已啟用 Azure VMware 解決方案 (AVS) 資料存放區用途。

屬性
參數群組: Properties Arguments
預設值: Disabled
接受的值: Disabled, Enabled
--backup-id

用來識別備份的資源標識碼。

屬性
參數群組: Properties Arguments
--backup-policy-id

備份原則資源標識碼。

屬性
參數群組: Backup Arguments
--backup-vault-id

備份保存庫資源標識碼。

屬性
參數群組: Backup Arguments
--ca-retrieval-policy --cool-access-retrieval-policy

CoolAccessRetrievalPolicy 會根據已啟用非經常性存取的磁碟區讀取模式,決定從非經常性存取層到標準記憶體的數據擷取行為。 此欄位的可能值為:預設值 - 資料會從非經常性存取層提取到隨機讀取的標準記憶體。 此原則是預設值。 OnRead - 所有用戶端驅動數據讀取都會從非經常性存取層提取到循序和隨機讀取的標準記憶體。 永不 - 不會從非經常性存取層提取任何用戶端驅動數據到標準記憶體。

屬性
參數群組: Properties Arguments
接受的值: Default, Never, OnRead
--capacity-pool-resource-id --pool-resource-id

集區資源標識碼,用於透過磁碟區群組建立磁碟區。

屬性
參數群組: Properties Arguments
--chown-mode

此參數會指定誰有權變更檔案的擁有權。 受限制 - 只有根使用者可以變更檔案的擁有權。 不受限制 - 非根使用者可以變更其擁有的檔案擁有權。 可能的值包括 - 受限制、不受限制。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: Restricted, Unrestricted
--cifs

允許 CIFS 通訊協定。 僅針對 CIFS 類型磁碟區啟用。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--cool-access

指定是否為磁碟區啟用非經常性存取(階層處理)。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--coolness-period

指定用戶端不會存取資料的天數。

屬性
參數群組: Properties Arguments
--default-group-quota --default-group-quota-in-ki-bs

KiB 中磁碟區的預設群組配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
預設值: 0
--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled

指定磁碟區是否啟用預設配額。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--default-user-quota --default-user-quota-in-ki-bs

KiBs 中磁碟區的預設使用者配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
預設值: 0
--delete-base-snapshot

如果已啟用 (true),則磁碟區建立的快照集會在磁碟區建立作業完成之後自動刪除。 預設為 False。

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

指出磁碟區上是否啟用子捲作業的旗標。

屬性
參數群組: Properties Arguments
預設值: Disabled
接受的值: Disabled, Enabled
--encryption-key-source

用來加密磁碟區中數據的金鑰來源。 如果 NetApp 帳戶具有 encryption.keySource = 'Microsoft.KeyVault',則適用。 可能的值為:『Microsoft.NetApp,Microsoft.KeyVault』。

屬性
參數群組: CMK Encryption Arguments
預設值: Microsoft.NetApp
接受的值: Microsoft.KeyVault, Microsoft.NetApp
--endpoint-type

指出本機磁碟區是否為磁碟區復寫的來源或目的地。

屬性
參數群組: Replication Arguments
接受的值: dst, src
--export-policy-rules --rules

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

屬性
參數群組: ExportPolicy Arguments
--has-root-access

具有磁碟區的根存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--is-large-volume

指定磁碟區是大型磁碟區還是一般磁碟區。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--is-restoring

Restoring.

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

描述磁碟區是否為 KerberosEnabled。 與 Swagger 版本 2020-05-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-r

Kerberos5 只讀存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5-rw

Kerberos5 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-r

Kerberos5i Readonly 存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5i-rw

Kerberos5i 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-r

Kerberos5p 唯讀存取。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--kerberos5p-rw

Kerberos5p 讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--key-vault-private-endpoint-resource-id --kv-private-endpoint-id

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

屬性
參數群組: CMK Encryption Arguments
--language

Language.

屬性
參數群組: Properties Arguments
接受的值: ar, ar.utf-8, c, c.utf-8, cs, cs.utf-8, da, da.utf-8, de, de.utf-8, en, en-us, en-us.utf-8, en.utf-8, es, es.utf-8, fi, fi.utf-8, fr, fr.utf-8, he, he.utf-8, hr, hr.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ja-jp.pck.utf-8, ja-v1, ja-v1.utf-8, ja.utf-8, ko, ko.utf-8, nl, nl.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, ro, ro.utf-8, ru, ru.utf-8, sk, sk.utf-8, sl, sl.utf-8, sv, sv.utf-8, tr, tr.utf-8, utf8mb4, zh, zh-tw, zh-tw.big5, zh-tw.big5.utf-8, zh-tw.utf-8, zh.gbk, zh.gbk.utf-8, zh.utf-8
--ldap-enabled

指定指定的NFS磁碟區是否啟用LDAP。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--location -l

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

屬性
參數群組: Body Arguments
--network-features

可供磁碟區使用的基本網路或標準功能。

屬性
參數群組: Properties Arguments
預設值: Basic
接受的值: Basic, Standard
--no-wait

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

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

特定磁碟區的應用程式特定放置規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--policy-enforced

強制執行原則。

屬性
參數群組: Backup Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--ppg --proximity-placement-group

與磁碟區相關聯的鄰近放置群組。

屬性
參數群組: Properties Arguments
--protocol-types

一組通訊協定類型、預設的 NFSv3、SMB 通訊協定的 CIFS 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--relocation-requested

已要求重新配置此磁碟區。

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

要移轉至 ANF 之磁碟區的完整路徑。 移轉磁碟區需要支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Replication Arguments
--remote-volume-id --remote-volume-resource-id

遠端磁碟區的資源標識碼。

屬性
參數群組: Replication Arguments
--remote-volume-region

磁碟區復寫另一端的遠端區域。

屬性
參數群組: Replication Arguments
--replication-schedule

Schedule.

屬性
參數群組: Replication Arguments
接受的值: _10minutely, daily, hourly
--rule-index

訂單索引。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
--security-style

磁碟區的安全性樣式預設為 ntfs,預設為雙重通訊協定或 CIFS 通訊協定。

屬性
參數群組: Properties Arguments
預設值: unix
接受的值: ntfs, unix
--service-level

ServiceLevel.

屬性
參數群組: Properties Arguments
預設值: Premium
接受的值: Premium, Standard, StandardZRS, Ultra
--smb-access-based-enumeration --smb-access-enumeration

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--smb-ca --smb-continuously-available --smb-continuously-avl

為smb磁碟區啟用持續可用的共享屬性。 僅適用於SMB磁碟區。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-encryption

啟用內部 smb3 資料的加密。 僅適用於SMB/DualProtocol磁碟區。 與 Swagger 版本 2020-08-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
預設值: False
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-non-browsable

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--snapshot-dir-visible --snapshot-directory-visible

如果啟用 (true), 磁碟區將包含唯讀快照集目錄,可提供每個磁碟區快照集的存取權(預設值為 true)。

屬性
參數群組: Properties Arguments
預設值: True
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--snapshot-id

用來識別快照集的資源標識碼。

屬性
參數群組: Properties Arguments
--snapshot-policy-id

快照集原則 ResourceId。

屬性
參數群組: Snapshot Arguments
--subnet --subnet-id

委派子網的 Azure 資源 URI。 必須具有委派Microsoft.NetApp/volumes。

屬性
參數群組: Properties Arguments
預設值: default
--tags

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

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

MiB/s 中可透過此磁碟區達到的最大輸送量,這隻會接受為手動 qosType 磁碟區的輸入。

屬性
參數群組: Properties Arguments
--unix-permissions

以八進位 4 位數格式接受的 NFS 磁碟區 UNIX 許可權。 第一個數字會選取設定的使用者標識元(4)、設定群組標識碼 (2) 和黏性 (1) 屬性。 第二位數會選取檔案擁有者的許可權:讀取 (4)、寫入 (2) 和執行 (1)。 第三個會選取相同群組中其他用戶的許可權。 群組中其他使用者的第四個。 0755 - 提供擁有者讀取/寫入/執行許可權給群組和其他使用者。

屬性
參數群組: Properties Arguments
--unix-read-only

唯讀存取權。 存在以提供回溯相容性,請改用 --export-policy-rules (--rules)。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--unix-read-write

讀取和寫入存取權。 存在以提供回溯相容性,請改用 --export-policy-rules --rules。

屬性
參數群組: ExportPolicy backwards compatibility Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--usage-threshold

GiB 中文件系統允許的記憶體配額上限。

屬性
參數群組: Properties Arguments
預設值: 100
--volume-spec-name

磁碟區規格名稱是磁碟區群組中特定磁碟區的應用程式特定指定或標識元,例如數據、記錄。

屬性
參數群組: Properties Arguments
--volume-type

此磁碟區的類型為何。 針對跨區域復寫中的目的地磁碟區,請將類型設定為 DataProtection。 若要建立複製磁碟區,請將類型設定為ShortTermClone。

屬性
參數群組: Properties Arguments
--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 volume delete

刪除指定的磁碟區。

az netappfiles volume delete [--account-name]
                             [--force --force-delete {0, 1, f, false, n, no, t, true, y, yes}]
                             [--ids]
                             [--name --volume-name]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--pool-name]
                             [--resource-group]
                             [--subscription]
                             [--yes]

範例

刪除 ANF 磁碟區

az netappfiles volume delete -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--force --force-delete

強制刪除磁碟區的選項。 將會清除連線到特定磁碟區的資源。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume delete (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除指定的磁碟區。

az netappfiles volume delete [--account-name]
                             [--force --force-delete {0, 1, f, false, n, no, t, true, y, yes}]
                             [--ids]
                             [--name --volume-name]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--pool-name]
                             [--resource-group]
                             [--subscription]
                             [--yes]

範例

刪除 ANF 磁碟區

az netappfiles volume delete -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--force --force-delete

強制刪除磁碟區的選項。 將會清除連線到特定磁碟區的資源。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume finalize-relocation

完成磁碟區重新配置並清除舊磁碟區。

az netappfiles volume finalize-relocation [--account-name]
                                          [--ids]
                                          [--name --volume-name]
                                          [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                          [--pool-name]
                                          [--resource-group]
                                          [--subscription]

範例

完成磁碟區重新配置並清除舊磁碟區

az netappfiles volume finalize-relocation -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume get-groupid-list-for-ldapuser

傳回特定LDAP使用者的群組標識碼清單。

az netappfiles volume get-groupid-list-for-ldapuser --username
                                                    [--account-name]
                                                    [--ids]
                                                    [--name --volume-name]
                                                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                    [--pool-name]
                                                    [--resource-group]
                                                    [--subscription]

範例

取得LDAP使用者 myuser 的群組標識碼清單

az netappfiles volume get-groupid-list-for-ldapuser -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --username myuser

必要參數

--username

需要用戶名稱,才能擷取使用者所屬的群組。

屬性
參數群組: Body Arguments

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume list

列出容量集區內的所有磁碟區。

az netappfiles volume list --account-name
                           --pool-name
                           --resource-group
                           [--max-items]
                           [--next-token]

範例

列出 ANF 磁碟區的所有子卷

az netappfiles subvolume list -g mygroup --account-name myaccountname  --pool-name mypoolname --volume-name myvolumename

必要參數

--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 volume list (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出容量集區內的所有磁碟區。

az netappfiles volume list --account-name
                           --pool-name
                           --resource-group
                           [--max-items]
                           [--next-token]

範例

列出 ANF 磁碟區的所有子卷

az netappfiles subvolume list -g mygroup --account-name myaccountname  --pool-name mypoolname --volume-name myvolumename

必要參數

--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 volume list-quota-report

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

傳回磁碟區配額的報告。

az netappfiles volume list-quota-report [--account-name]
                                        [--ids]
                                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                        [--pool-name]
                                        [--resource-group]
                                        [--subscription]
                                        [--volume-name]

範例

ListQuotaReport

az netappfiles volume list-quota-report --resource-group myRG --account-name account1 --pool-name pool1 --volume-name volume1

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--volume-name -v

磁碟區的名稱。

屬性
參數群組: 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 volume migrate-backup

將磁碟區下的備份移轉至備份保存庫。

az netappfiles volume migrate-backup --backup-vault-id
                                     [--account-name]
                                     [--ids]
                                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                     [--pool-name]
                                     [--resource-group]
                                     [--subscription]
                                     [--volume-name]

必要參數

--backup-vault-id

備份保存庫的 ResourceId。

屬性
參數群組: Body Arguments

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--volume-name -v

磁碟區的名稱。

屬性
參數群組: 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 volume migrate-backup (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將磁碟區下的備份移轉至備份保存庫。

az netappfiles volume migrate-backup --backup-vault-id
                                     [--account-name]
                                     [--ids]
                                     [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                     [--pool-name]
                                     [--resource-group]
                                     [--subscription]
                                     [--volume-name]

必要參數

--backup-vault-id

備份保存庫的 ResourceId。

屬性
參數群組: Body Arguments

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--volume-name -v

磁碟區的名稱。

屬性
參數群組: 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 volume pool-change

將磁碟區移至另一個集區。

az netappfiles volume pool-change --new-pool-resource-id
                                  [--account-name]
                                  [--ids]
                                  [--name --volume-name]
                                  [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                  [--pool-name]
                                  [--resource-group]
                                  [--subscription]

範例

這會變更磁碟區 myvolname 的集區,從 mypoolname 變更為標識符為 mynewresourceid 的集區

az netappfiles volume pool-change -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --new-pool-resource-id mynewresourceid

必要參數

--new-pool-resource-id -d

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

屬性
參數群組: Body Arguments

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume populate-availability-zone

此作業會填入磁碟區的可用性區域資訊。

az netappfiles volume populate-availability-zone [--account-name]
                                                 [--ids]
                                                 [--name --volume-name]
                                                 [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                                 [--pool-name]
                                                 [--resource-group]
                                                 [--subscription]

範例

此作業將會填入磁碟區 myvolname 的可用性區域資訊

az netappfiles volume populate-availability-zone -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume relocate

將磁碟區重新放置到新的戳記。

az netappfiles volume relocate [--account-name]
                               [--creation-token]
                               [--ids]
                               [--name --volume-name]
                               [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                               [--pool-name]
                               [--resource-group]
                               [--subscription]

範例

將磁碟區重新放置到新的戳記

az netappfiles volume relocate -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--creation-token

控制裝入點名稱之磁碟區的新建立令牌。

屬性
參數群組: Body Arguments
--ids

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume reset-cifs-pw

從磁碟區重設 cifs 密碼。

az netappfiles volume reset-cifs-pw [--account-name]
                                    [--ids]
                                    [--name --volume-name]
                                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                    [--pool-name]
                                    [--resource-group]
                                    [--subscription]

範例

重設磁碟區的 CIFS 密碼

az netappfiles volume reset-cifs-pw -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume revert

將磁碟區還原為本文中指定的快照集。

az netappfiles volume revert [--account-name]
                             [--ids]
                             [--name --volume-name]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--pool-name]
                             [--resource-group]
                             [--snapshot-id]
                             [--subscription]

範例

將磁碟區還原為其其中一個快照集

az netappfiles volume revert -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --snapshot-id 9760acf5-4638-11e7-9bdb-020073ca3333

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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
--snapshot-id -s

快照集的資源標識碼。

屬性
參數群組: Body 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 volume revert-relocation

還原磁碟區重新配置程式、清除新的磁碟區,並開始使用先前現有的磁碟區。

az netappfiles volume revert-relocation [--account-name]
                                        [--ids]
                                        [--name --volume-name]
                                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                        [--pool-name]
                                        [--resource-group]
                                        [--subscription]
                                        [--yes]

範例

還原磁碟區重新配置程式、清除新的磁碟區,並使用先前現有的磁碟區開始

az netappfiles volume revert-relocation -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume show

取得指定磁碟區的詳細數據。

az netappfiles volume show [--account-name]
                           [--ids]
                           [--name --volume-name]
                           [--pool-name]
                           [--resource-group]
                           [--subscription]

範例

傳回指定 ANF 磁碟區的屬性

az netappfiles volume show -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume show (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得指定磁碟區的詳細數據。

az netappfiles volume show [--account-name]
                           [--ids]
                           [--name --volume-name]
                           [--pool-name]
                           [--resource-group]
                           [--subscription]

範例

傳回指定 ANF 磁碟區的屬性

az netappfiles volume show -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

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

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

屬性
參數群組: Resource Id Arguments
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume splitclonefromparent

將複製磁碟區轉換成獨立磁碟區的分割作業。

az netappfiles volume splitclonefromparent [--account-name]
                                           [--ids]
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--pool-name]
                                           [--resource-group]
                                           [--subscription]
                                           [--volume-name]

範例

Volumes_SplitClone

az netappfiles volume splitclonefromparent --resource-group myRG --account-name account1 --pool-name pool1 --volume-name volume1

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume splitclonefromparent (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將複製磁碟區轉換成獨立磁碟區的分割作業。

az netappfiles volume splitclonefromparent [--account-name]
                                           [--ids]
                                           [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                                           [--pool-name]
                                           [--resource-group]
                                           [--subscription]
                                           [--volume-name]

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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 volume update

更新容量集區內的指定磁碟區。

az netappfiles volume update [--account-name]
                             [--add]
                             [--backup-policy-id]
                             [--backup-vault-id]
                             [--ca-retrieval-policy --cool-access-retrieval-policy {Default, Never, OnRead}]
                             [--ca-tiering-policy --cool-access-tiering-policy {Auto, SnapshotOnly}]
                             [--capacity-pool-resource-id --pool-resource-id]
                             [--cool-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--coolness-period]
                             [--default-group-quota --default-group-quota-in-ki-bs]
                             [--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--default-user-quota --default-user-quota-in-ki-bs]
                             [--delete-base-snapshot {0, 1, f, false, n, no, t, true, y, yes}]
                             [--enable-subvolumes {Disabled, Enabled}]
                             [--encryption-key-source {Microsoft.KeyVault, Microsoft.NetApp}]
                             [--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]
                             [--name --volume-name]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--placement-rules]
                             [--policy-enforced {0, 1, f, false, n, no, t, true, y, yes}]
                             [--pool-name]
                             [--ppg --proximity-placement-group]
                             [--protocol-types]
                             [--relocation-requested {0, 1, f, false, n, no, t, true, y, yes}]
                             [--remote-volume-id]
                             [--remote-volume-region]
                             [--remote-volume-resource-id]
                             [--remove]
                             [--replication-schedule {_10minutely, daily, hourly}]
                             [--resource-group]
                             [--service-level {Flexible, Premium, Standard, StandardZRS, Ultra}]
                             [--set]
                             [--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
                             [--smb-ca --smb-continuously-available --smb-continuously-avl {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-encryption {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-non-browsable {Disabled, Enabled}]
                             [--snapshot-dir-visible --snapshot-directory-visible {0, 1, f, false, n, no, t, true, y, yes}]
                             [--snapshot-policy-id]
                             [--subnet --subnet-id]
                             [--subscription]
                             [--tags]
                             [--throughput-mibps]
                             [--unix-permissions]
                             [--usage-threshold]
                             [--vnet]
                             [--volume-spec-name]

範例

更新 ANF 磁碟區

az netappfiles volume update -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --service-level ultra --usage-threshold 100 --tags mytag=specialvol

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--add

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

屬性
參數群組: Generic Update Arguments
--backup-policy-id

備份原則資源標識碼。

屬性
參數群組: Backup Arguments
--backup-vault-id

備份保存庫資源標識碼。

屬性
參數群組: Backup Arguments
--ca-retrieval-policy --cool-access-retrieval-policy

CoolAccessRetrievalPolicy 會根據已啟用非經常性存取的磁碟區讀取模式,決定從非經常性存取層到標準記憶體的數據擷取行為。 此欄位的可能值為:預設值 - 資料會從非經常性存取層提取到隨機讀取的標準記憶體。 此原則是預設值。 OnRead - 所有用戶端驅動數據讀取都會從非經常性存取層提取到循序和隨機讀取的標準記憶體。 永不 - 不會從非經常性存取層提取任何用戶端驅動數據到標準記憶體。

屬性
參數群組: Properties Arguments
接受的值: Default, Never, OnRead
--ca-tiering-policy --cool-access-tiering-policy

CoolAccessTieringPolicy 會決定哪些冷數據區塊會移至非經常性存取層。 此欄位的可能值為:自動 - 將快照集復本和作用中文件系統中的冷用戶數據區塊移至非經常性存取層層。 此原則是預設值。 SnapshotOnly - 將與作用中文件系統沒有關聯的磁碟區快照集用戶數據區塊移至非經常性存取層。

屬性
參數群組: Properties Arguments
接受的值: Auto, SnapshotOnly
--capacity-pool-resource-id --pool-resource-id

集區資源標識碼,用於透過磁碟區群組建立磁碟區。

屬性
參數群組: Properties Arguments
--cool-access

指定是否為磁碟區啟用非經常性存取(階層處理)。

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

指定用戶端不會存取資料的天數。

屬性
參數群組: Properties Arguments
--default-group-quota --default-group-quota-in-ki-bs

KiB 中磁碟區的預設群組配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled

指定磁碟區是否啟用預設配額。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--default-user-quota --default-user-quota-in-ki-bs

KiBs 中磁碟區的預設使用者配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
--delete-base-snapshot

如果已啟用 (true),則磁碟區建立的快照集會在磁碟區建立作業完成之後自動刪除。 預設為 False。

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

指出磁碟區上是否啟用子捲作業的旗標。

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

用來加密磁碟區中數據的金鑰來源。 如果 NetApp 帳戶具有 encryption.keySource = 'Microsoft.KeyVault',則適用。 可能的值為:『Microsoft.NetApp,Microsoft.KeyVault』。

屬性
參數群組: CMK Encryption Arguments
接受的值: Microsoft.KeyVault, Microsoft.NetApp
--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' 時才適用。

屬性
參數群組: CMK Encryption Arguments
--name --volume-name -n -v

磁碟區的名稱。

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

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

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

特定磁碟區的應用程式特定放置規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--policy-enforced

強制執行原則。

屬性
參數群組: Backup Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性
參數群組: Resource Id Arguments
--ppg --proximity-placement-group

與磁碟區相關聯的鄰近放置群組。

屬性
參數群組: Properties Arguments
--protocol-types

一組通訊協定類型、預設的 NFSv3、SMB 通訊協定的 CIFS 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--relocation-requested

已要求重新配置此磁碟區。

屬性
參數群組: VolumeRelocation Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--remote-volume-id

遠端磁碟區的資源標識碼。

屬性
參數群組: Replication Arguments
--remote-volume-region

磁碟區復寫另一端的遠端區域。

屬性
參數群組: Replication Arguments
--remote-volume-resource-id
已被取代

選項「--remote-volume-resource-id」已被棄用,將於預定於 2026 年 5 月的下一個重大變更版本(2.86.0)中移除。

遠端磁碟區的資源標識碼。

屬性
參數群組: Replication Arguments
--remove

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

屬性
參數群組: Generic Update Arguments
--replication-schedule

Schedule.

屬性
參數群組: Replication Arguments
接受的值: _10minutely, daily, hourly
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--service-level

ServiceLevel.

屬性
參數群組: Properties Arguments
接受的值: Flexible, Premium, Standard, StandardZRS, Ultra
--set

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

屬性
參數群組: Generic Update Arguments
--smb-access-based-enumeration --smb-access-enumeration

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--smb-ca --smb-continuously-available --smb-continuously-avl

為smb磁碟區啟用持續可用的共享屬性。 僅適用於SMB磁碟區。

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

啟用內部 smb3 資料的加密。 僅適用於SMB/DualProtocol磁碟區。 與 Swagger 版本 2020-08-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-non-browsable

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--snapshot-dir-visible --snapshot-directory-visible

如果啟用 (true), 磁碟區將包含唯讀快照集目錄,可提供每個磁碟區快照集的存取權(預設值為 true)。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--snapshot-policy-id

快照集原則 ResourceId。

屬性
參數群組: Snapshot Arguments
--subnet --subnet-id

委派子網的 Azure 資源 URI。 必須具有委派Microsoft.NetApp/volumes。

屬性
參數群組: Properties Arguments
--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
--unix-permissions

以八進位 4 位數格式接受的 NFS 磁碟區 UNIX 許可權。 第一個數字會選取設定的使用者標識元(4)、設定群組標識碼 (2) 和黏性 (1) 屬性。 第二位數會選取檔案擁有者的許可權:讀取 (4)、寫入 (2) 和執行 (1)。 第三個會選取相同群組中其他用戶的許可權。 群組中其他使用者的第四個。 0755 - 提供擁有者讀取/寫入/執行許可權給群組和其他使用者。

屬性
參數群組: Properties Arguments
--usage-threshold

GiB 中文件系統允許的記憶體配額上限。

屬性
參數群組: Properties Arguments
--vnet

vnet 的名稱或資源標識碼。 如果您想要在其他資源群組或訂用帳戶中使用 vnet,請提供資源識別碼,而不是 vnet 的名稱。

屬性
參數群組: Properties Arguments
--volume-spec-name

磁碟區規格名稱是磁碟區群組中特定磁碟區的應用程式特定指定或標識元,例如數據、記錄。

屬性
參數群組: Properties 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 volume update (netappfiles-preview 擴充功能)

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

更新容量集區內的指定磁碟區。

az netappfiles volume update [--account-name]
                             [--add]
                             [--avs-data-store {Disabled, Enabled}]
                             [--backup-policy-id]
                             [--backup-vault-id]
                             [--ca-retrieval-policy --cool-access-retrieval-policy {Default, Never, OnRead}]
                             [--capacity-pool-resource-id --pool-resource-id]
                             [--cool-access {0, 1, f, false, n, no, t, true, y, yes}]
                             [--coolness-period]
                             [--creation-token]
                             [--default-group-quota --default-group-quota-in-ki-bs]
                             [--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--default-user-quota --default-user-quota-in-ki-bs]
                             [--delete-base-snapshot {0, 1, f, false, n, no, t, true, y, yes}]
                             [--enable-subvolumes {Disabled, Enabled}]
                             [--encryption-key-source {Microsoft.KeyVault, Microsoft.NetApp}]
                             [--endpoint-type {dst, src}]
                             [--export-policy-rules --rules]
                             [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                             [--ids]
                             [--is-large-volume {0, 1, f, false, n, no, t, true, y, yes}]
                             [--is-restoring {0, 1, f, false, n, no, t, true, y, yes}]
                             [--key-vault-private-endpoint-resource-id --kv-private-endpoint-id]
                             [--language {ar, ar.utf-8, c, c.utf-8, cs, cs.utf-8, da, da.utf-8, de, de.utf-8, en, en-us, en-us.utf-8, en.utf-8, es, es.utf-8, fi, fi.utf-8, fr, fr.utf-8, he, he.utf-8, hr, hr.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ja-jp.pck.utf-8, ja-v1, ja-v1.utf-8, ja.utf-8, ko, ko.utf-8, nl, nl.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, ro, ro.utf-8, ru, ru.utf-8, sk, sk.utf-8, sl, sl.utf-8, sv, sv.utf-8, tr, tr.utf-8, utf8mb4, zh, zh-tw, zh-tw.big5, zh-tw.big5.utf-8, zh-tw.utf-8, zh.gbk, zh.gbk.utf-8, zh.utf-8}]
                             [--ldap-enabled {0, 1, f, false, n, no, t, true, y, yes}]
                             [--name --volume-name]
                             [--network-features {Basic, Basic_Standard, Standard, Standard_Basic}]
                             [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                             [--placement-rules]
                             [--policy-enforced {0, 1, f, false, n, no, t, true, y, yes}]
                             [--pool-name]
                             [--ppg --proximity-placement-group]
                             [--protocol-types]
                             [--relocation-requested {0, 1, f, false, n, no, t, true, y, yes}]
                             [--remote-volume-region]
                             [--remove]
                             [--replication-schedule {_10minutely, daily, hourly}]
                             [--resource-group]
                             [--security-style {ntfs, unix}]
                             [--service-level {Premium, Standard, StandardZRS, Ultra}]
                             [--set]
                             [--smb-access-based-enumeration --smb-access-enumeration {Disabled, Enabled}]
                             [--smb-ca --smb-continuously-available --smb-continuously-avl {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-encryption {0, 1, f, false, n, no, t, true, y, yes}]
                             [--smb-non-browsable {Disabled, Enabled}]
                             [--snapshot-dir-visible --snapshot-directory-visible {0, 1, f, false, n, no, t, true, y, yes}]
                             [--snapshot-policy-id]
                             [--subnet --subnet-id]
                             [--subscription]
                             [--tags]
                             [--throughput-mibps]
                             [--unix-permissions]
                             [--usage-threshold]
                             [--vnet]
                             [--volume-spec-name]
                             [--volume-type]

範例

更新 ANF 磁碟區

az netappfiles volume update -g mygroup --account-name myaccname --pool-name mypoolname --name myvolname --service-level ultra --usage-threshold 100 --tags mytag=specialvol

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id Arguments
--add

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

屬性
參數群組: Generic Update Arguments
--avs-data-store

指定磁碟區是否已啟用 Azure VMware 解決方案 (AVS) 資料存放區用途。

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

備份原則資源標識碼。

屬性
參數群組: Backup Arguments
--backup-vault-id

備份保存庫資源標識碼。

屬性
參數群組: Backup Arguments
--ca-retrieval-policy --cool-access-retrieval-policy

CoolAccessRetrievalPolicy 會根據已啟用非經常性存取的磁碟區讀取模式,決定從非經常性存取層到標準記憶體的數據擷取行為。 此欄位的可能值為:預設值 - 資料會從非經常性存取層提取到隨機讀取的標準記憶體。 此原則是預設值。 OnRead - 所有用戶端驅動數據讀取都會從非經常性存取層提取到循序和隨機讀取的標準記憶體。 永不 - 不會從非經常性存取層提取任何用戶端驅動數據到標準記憶體。

屬性
參數群組: Properties Arguments
接受的值: Default, Never, OnRead
--capacity-pool-resource-id --pool-resource-id

集區資源標識碼,用於透過磁碟區群組建立磁碟區。

屬性
參數群組: Properties Arguments
--cool-access

指定是否為磁碟區啟用非經常性存取(階層處理)。

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

指定用戶端不會存取資料的天數。

屬性
參數群組: Properties Arguments
--creation-token

磁碟區的唯一檔案路徑。 建立掛接目標時使用。

屬性
參數群組: Properties Arguments
--default-group-quota --default-group-quota-in-ki-bs

KiB 中磁碟區的預設群組配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
--default-quota-enabled --is-def-quota-enabled --is-default-quota-enabled

指定磁碟區是否啟用預設配額。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--default-user-quota --default-user-quota-in-ki-bs

KiBs 中磁碟區的預設使用者配額。 如果已設定 isDefaultQuotaEnabled,則會套用 4 KiBs 的最小值。

屬性
參數群組: Properties Arguments
--delete-base-snapshot

如果已啟用 (true),則磁碟區建立的快照集會在磁碟區建立作業完成之後自動刪除。 預設為 False。

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

指出磁碟區上是否啟用子捲作業的旗標。

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

用來加密磁碟區中數據的金鑰來源。 如果 NetApp 帳戶具有 encryption.keySource = 'Microsoft.KeyVault',則適用。 可能的值為:『Microsoft.NetApp,Microsoft.KeyVault』。

屬性
參數群組: CMK Encryption Arguments
接受的值: Microsoft.KeyVault, Microsoft.NetApp
--endpoint-type

指出本機磁碟區是否為磁碟區復寫的來源或目的地。

屬性
參數群組: Replication Arguments
接受的值: dst, src
--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
--is-large-volume

指定磁碟區是大型磁碟區還是一般磁碟區。

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

Restoring.

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--key-vault-private-endpoint-resource-id --kv-private-endpoint-id

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

屬性
參數群組: CMK Encryption Arguments
--language

Language.

屬性
參數群組: Properties Arguments
接受的值: ar, ar.utf-8, c, c.utf-8, cs, cs.utf-8, da, da.utf-8, de, de.utf-8, en, en-us, en-us.utf-8, en.utf-8, es, es.utf-8, fi, fi.utf-8, fr, fr.utf-8, he, he.utf-8, hr, hr.utf-8, hu, hu.utf-8, it, it.utf-8, ja, ja-jp.932, ja-jp.932.utf-8, ja-jp.pck, ja-jp.pck-v2, ja-jp.pck-v2.utf-8, ja-jp.pck.utf-8, ja-v1, ja-v1.utf-8, ja.utf-8, ko, ko.utf-8, nl, nl.utf-8, no, no.utf-8, pl, pl.utf-8, pt, pt.utf-8, ro, ro.utf-8, ru, ru.utf-8, sk, sk.utf-8, sl, sl.utf-8, sv, sv.utf-8, tr, tr.utf-8, utf8mb4, zh, zh-tw, zh-tw.big5, zh-tw.big5.utf-8, zh-tw.utf-8, zh.gbk, zh.gbk.utf-8, zh.utf-8
--ldap-enabled

指定指定的NFS磁碟區是否啟用LDAP。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: Resource Id Arguments
--network-features

可供磁碟區使用的基本網路或標準功能。 隱藏我。

屬性
參數群組: Properties Arguments
接受的值: Basic, Basic_Standard, Standard, Standard_Basic
--no-wait

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

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

特定磁碟區的應用程式特定放置規則支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--policy-enforced

強制執行原則。

屬性
參數群組: Backup Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--pool-name -p

容量集區的名稱。

屬性
參數群組: Resource Id Arguments
--ppg --proximity-placement-group

與磁碟區相關聯的鄰近放置群組。

屬性
參數群組: Properties Arguments
--protocol-types

一組通訊協定類型、預設的 NFSv3、SMB 通訊協定的 CIFS 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

屬性
參數群組: Properties Arguments
--relocation-requested

已要求重新配置此磁碟區。

屬性
參數群組: VolumeRelocation Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--remote-volume-region

磁碟區復寫另一端的遠端區域。

屬性
參數群組: Replication Arguments
--remove

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

屬性
參數群組: Generic Update Arguments
--replication-schedule

Schedule.

屬性
參數群組: Replication Arguments
接受的值: _10minutely, daily, hourly
--resource-group -g

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

屬性
參數群組: Resource Id Arguments
--security-style

磁碟區的安全性樣式預設為 ntfs,預設為雙重通訊協定或 CIFS 通訊協定。

屬性
參數群組: Properties Arguments
接受的值: ntfs, unix
--service-level

ServiceLevel.

屬性
參數群組: Properties Arguments
接受的值: Premium, Standard, StandardZRS, Ultra
--set

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

屬性
參數群組: Generic Update Arguments
--smb-access-based-enumeration --smb-access-enumeration

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--smb-ca --smb-continuously-available --smb-continuously-avl

為smb磁碟區啟用持續可用的共享屬性。 僅適用於SMB磁碟區。

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

啟用內部 smb3 資料的加密。 僅適用於SMB/DualProtocol磁碟區。 與 Swagger 版本 2020-08-01 或更新版本搭配使用。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--smb-non-browsable

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

屬性
參數群組: Properties Arguments
接受的值: Disabled, Enabled
--snapshot-dir-visible --snapshot-directory-visible

如果啟用 (true), 磁碟區將包含唯讀快照集目錄,可提供每個磁碟區快照集的存取權(預設值為 true)。

屬性
參數群組: Properties Arguments
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--snapshot-policy-id

快照集原則 ResourceId。

屬性
參數群組: Snapshot Arguments
--subnet --subnet-id

委派子網的 Azure 資源 URI。 必須具有委派Microsoft.NetApp/volumes。

屬性
參數群組: Properties Arguments
--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
--unix-permissions

以八進位 4 位數格式接受的 NFS 磁碟區 UNIX 許可權。 第一個數字會選取設定的使用者標識元(4)、設定群組標識碼 (2) 和黏性 (1) 屬性。 第二位數會選取檔案擁有者的許可權:讀取 (4)、寫入 (2) 和執行 (1)。 第三個會選取相同群組中其他用戶的許可權。 群組中其他使用者的第四個。 0755 - 提供擁有者讀取/寫入/執行許可權給群組和其他使用者。

屬性
參數群組: Properties Arguments
--usage-threshold

GiB 中文件系統允許的記憶體配額上限。

屬性
參數群組: Properties Arguments
--vnet

vnet 的名稱或資源標識碼。 如果您想要在其他資源群組或訂用帳戶中使用 vnet,請提供資源識別碼,而不是 vnet 的名稱。

屬性
參數群組: Properties Arguments
--volume-spec-name

磁碟區規格名稱是磁碟區群組中特定磁碟區的應用程式特定指定或標識元,例如數據、記錄。

屬性
參數群組: Properties Arguments
--volume-type

此磁碟區的類型為何。 針對跨區域復寫中的目的地磁碟區,請將類型設定為 DataProtection。

屬性
參數群組: Properties 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 volume wait

將 CLI 置於等候狀態,直到符合條件為止。

az netappfiles volume wait [--account-name]
                           [--created]
                           [--custom]
                           [--deleted]
                           [--exists]
                           [--ids]
                           [--interval]
                           [--name --volume-name]
                           [--pool-name]
                           [--resource-group]
                           [--subscription]
                           [--timeout]
                           [--updated]

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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
--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

az netappfiles volume wait (netappfiles-preview 擴充功能)

將 CLI 置於等候狀態,直到符合條件為止。

az netappfiles volume wait [--account-name]
                           [--created]
                           [--custom]
                           [--deleted]
                           [--exists]
                           [--ids]
                           [--interval]
                           [--name --volume-name]
                           [--pool-name]
                           [--resource-group]
                           [--subscription]
                           [--timeout]
                           [--updated]

選擇性參數

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

--account-name -a

NetApp 帳戶的名稱。

屬性
參數群組: Resource Id 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
--name --volume-name -n -v

磁碟區的名稱。

屬性
參數群組: 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
--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