az fileshare

Note

此參考資料是該Azure CLIfileshare擴充功能(版本 2.75.0 或更高版本)的一部分。 這個擴充功能會在你第一次執行 az 檔案共享 指令時自動安裝。 深入了解擴充功能。

管理 Azure 檔案分享。

命令

名稱 Description 類型 狀態
az fileshare check-name-availability

檢查是否有檔案分享名稱可用。

Extension GA
az fileshare create

建立檔案分享。

Extension GA
az fileshare delete

刪除檔案分享。

Extension GA
az fileshare get-provisioning-recommendation

取得檔案分享的配置建議。

Extension GA
az fileshare limits-show

取得檔案分享限制和配置常數。

Extension GA
az fileshare list

將檔案共享列入資源群組。

Extension GA
az fileshare private-endpoint-connection

管理檔案分享的私有端點連線。

Extension GA
az fileshare private-endpoint-connection approve

核准一個私人端點連線以進行檔案分享。

Extension GA
az fileshare private-endpoint-connection create

建立與檔案分享相關的指定私有端點連線狀態。

Extension GA
az fileshare private-endpoint-connection delete

刪除與檔案分享相關的指定私有端點連線。

Extension GA
az fileshare private-endpoint-connection list

列出檔案分享的私有端點連線。

Extension GA
az fileshare private-endpoint-connection reject

拒絕一個私有端點連線,轉而使用檔案分享。

Extension GA
az fileshare private-endpoint-connection show

取得與檔案分享相關的指定私有端點連線。

Extension GA
az fileshare private-endpoint-connection update

更新與檔案分享相關的指定私有端點連線狀態。

Extension GA
az fileshare private-endpoint-connection wait

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

Extension GA
az fileshare private-link-resource

管理檔案分享的私有連結資源。

Extension GA
az fileshare private-link-resource list

列出檔案分享需要建立的私有連結資源。

Extension GA
az fileshare private-link-resource show

取得檔案分享需要建立的私有連結資源。

Extension GA
az fileshare show

取得檔案分享的詳細資訊。

Extension GA
az fileshare snapshot

管理檔案共享快照。

Extension GA
az fileshare snapshot create

建立檔案共享快照。

Extension GA
az fileshare snapshot delete

刪除檔案共享快照。

Extension GA
az fileshare snapshot list

清單檔案共享快照。

Extension GA
az fileshare snapshot show

取得檔案共享快照。

Extension GA
az fileshare snapshot update

更新檔案分享快照。

Extension GA
az fileshare update

更新檔案分享。

Extension GA
az fileshare usage-show

取得檔案分享使用率資料。

Extension GA
az fileshare wait

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

Extension GA

az fileshare check-name-availability

檢查是否有檔案分享名稱可用。

az fileshare check-name-availability [--acquire-policy-token]
                                     [--change-reference]
                                     [--ids]
                                     [--location]
                                     [--name]
                                     [--subscription]

範例

檢查名稱是否可取得檔案分享

az fileshare check-name-availability --location eastus --name MyFileShare

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

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

需要檢查可用性的資源名稱。

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

建立檔案分享。

az fileshare create --name --resource-name
                    --resource-group
                    [--acquire-policy-token]
                    [--allowed-subnets]
                    [--change-reference]
                    [--encryption-in-transit --encryption-in-transit-required {Disabled, Enabled}]
                    [--location]
                    [--media-tier {SSD}]
                    [--mount-name]
                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                    [--protocol {NFS}]
                    [--provisioned-io-per-sec --provisioned-iops]
                    [--provisioned-storage-gi-b --provisioned-storage-gib --storage-gib]
                    [--provisioned-throughput-mi-b-per-sec --provisioned-throughput-mib --throughput-mibps]
                    [--public-network-access {Disabled, Enabled}]
                    [--redundancy {Local, Zone}]
                    [--root-squash {AllSquash, NoRootSquash, RootSquash}]
                    [--tags]

範例

建立使用 NFS 協定的檔案分享

az fileshare create --name MyFileShare --resource-group MyRG --location eastus --provisioned-storage-gib 1024 --provisioned-iops 3000 --provisioned-throughput-mib 125 --protocol NFS --redundancy Local

建立一個包含根壓縮和子網存取的檔案分享

az fileshare create --name MyFileShare --resource-group MyRG --location eastus --provisioned-storage-gib 1024 --provisioned-iops 3000  --provisioned-throughput-mib 125 --protocol NFS --redundancy Local --root-squash RootSquash --public-network-access Enabled --allowed-subnets /subscriptions/sub-id/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet/subnets/subnet1

必要參數

--name --resource-name -n

檔案共享的資源名稱,管理員透過 Azure Resource Manager 看到。

--resource-group -g

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

選擇性參數

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

--acquire-policy-token

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

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

訪問受到限制時允許的子網集。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

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

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

屬性 值
參數群組: Global Policy Arguments
--encryption-in-transit --encryption-in-transit-required

傳輸中加密定義了NFS共享中資料是否加密。

屬性 值
參數群組: NfsProtocolProperties Arguments
接受的值: Disabled, Enabled
--location -l

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

屬性 值
參數群組: Resource Arguments
--media-tier

檔共用的存儲介質層。

屬性 值
參數群組: Properties Arguments
接受的值: SSD
--mount-name

最終使用者在裝載共用時看到的檔共享的名稱,例如在其作系統中採用 URI 或 UNC 格式。

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

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

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

此文件共用的文件共享協定。

屬性 值
參數群組: Properties Arguments
接受的值: NFS
--provisioned-io-per-sec --provisioned-iops

共用的預置 IO/秒。

屬性 值
參數群組: Properties Arguments
--provisioned-storage-gi-b --provisioned-storage-gib --storage-gib

共用的預置存儲大小(以 GiB 為單位)(1 GiB 為 1024^3 位元組或 1073741824 位元組)。 文件共用帳單的一個組成部分是預配的存儲,無論已使用的存儲量如何。

屬性 值
參數群組: Properties Arguments
--provisioned-throughput-mi-b-per-sec --provisioned-throughput-mib --throughput-mibps

共用的預置輸送量/秒。

屬性 值
參數群組: Properties Arguments
--public-network-access

允許或設定允許或禁止公共網路存取 Azure 管理檔案分享。

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

檔共用的所選冗餘級別。

屬性 值
參數群組: Properties Arguments
接受的值: Local, Zone
--root-squash

根壓縮定義了如何將用戶端上的根使用者映射到NFS共用。

屬性 值
參數群組: NfsProtocolProperties Arguments
接受的值: AllSquash, NoRootSquash, RootSquash
--tags

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

屬性 值
參數群組: Resource 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 fileshare delete

刪除檔案分享。

az fileshare delete [--acquire-policy-token]
                    [--change-reference]
                    [--ids]
                    [--name --resource-name]
                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                    [--resource-group]
                    [--subscription]
                    [--yes]

範例

刪除檔案分享

az fileshare delete --resource-group MyRG --name MyFileShare

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

檔案共享的資源名稱,管理員透過 Azure Resource Manager 看到。

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

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

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--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 fileshare get-provisioning-recommendation

取得檔案分享的配置建議。

az fileshare get-provisioning-recommendation --provisioned-storage-gi-b --provisioned-storage-gib --storage-gib
                                             [--acquire-policy-token]
                                             [--change-reference]
                                             [--ids]
                                             [--location]
                                             [--subscription]

範例

取得檔案分享的配置建議

az fileshare get-provisioning-recommendation --location eastus --provisioned-storage-gib 1024

必要參數

--provisioned-storage-gi-b --provisioned-storage-gib --storage-gib

欲設定的分享空間大小,以 GiB 為單位。 將用於計算剩餘的配置參數值。

屬性 值
參數群組: Properties Arguments

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

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

取得檔案分享限制和配置常數。

az fileshare limits-show [--acquire-policy-token]
                         [--change-reference]
                         [--ids]
                         [--location]
                         [--subscription]

範例

顯示該地點檔案分享的限制

az fileshare limits-show --location westus

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

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

將檔案共享列入資源群組。

az fileshare list [--max-items]
                  [--next-token]
                  [--resource-group]

範例

清單檔案分享

az fileshare list

選擇性參數

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

--max-items

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

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

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

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

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

全域參數
--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 fileshare show

取得檔案分享的詳細資訊。

az fileshare show [--ids]
                  [--name --resource-name]
                  [--resource-group]
                  [--subscription]

範例

顯示檔案共享屬性

az fileshare show --resource-group rgfileshares --resource-name fileshare

選擇性參數

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

--ids

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

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

檔案共享的資源名稱,管理員透過 Azure Resource Manager 看到。

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

更新檔案分享。

az fileshare update [--acquire-policy-token]
                    [--allowed-subnets]
                    [--change-reference]
                    [--encryption-in-transit --encryption-in-transit-required {Disabled, Enabled}]
                    [--ids]
                    [--name --resource-name]
                    [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                    [--provisioned-io-per-sec --provisioned-iops]
                    [--provisioned-storage-gi-b --provisioned-storage-gib --storage-gib]
                    [--provisioned-throughput-mi-b-per-sec --provisioned-throughput-mib --throughput-mibps]
                    [--public-network-access {Disabled, Enabled}]
                    [--resource-group]
                    [--root-squash {AllSquash, NoRootSquash, RootSquash}]
                    [--subscription]
                    [--tags]

範例

更新檔案共享的配置儲存

az fileshare update --name MyFileShare --resource-group MyRG --provisioned-storage-gib 2048

更新根壓縮設定

az fileshare update --name MyFileShare --resource-group MyRG --root-squash AllSquash

選擇性參數

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

--acquire-policy-token

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

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

訪問受到限制時允許的子網集。 支援速記語法、json-file 和 yaml-file。 請嘗試 “??” 以顯示更多。

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

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

屬性 值
參數群組: Global Policy Arguments
--encryption-in-transit --encryption-in-transit-required

傳輸中加密定義了NFS共享中資料是否加密。

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

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

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

檔案共享的資源名稱,管理員透過 Azure Resource Manager 看到。

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

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

屬性 值
接受的值: 0, 1, f, false, n, no, t, true, y, yes
--provisioned-io-per-sec --provisioned-iops

共用的預置 IO/秒。

屬性 值
參數群組: Properties Arguments
--provisioned-storage-gi-b --provisioned-storage-gib --storage-gib

共用的預置存儲大小(以 GiB 為單位)(1 GiB 為 1024^3 位元組或 1073741824 位元組)。 文件共用帳單的一個組成部分是預配的存儲,無論已使用的存儲量如何。

屬性 值
參數群組: Properties Arguments
--provisioned-throughput-mi-b-per-sec --provisioned-throughput-mib --throughput-mibps

共用的預置輸送量/秒。

屬性 值
參數群組: Properties Arguments
--public-network-access

允許或設定允許或禁止公共網路存取 Azure 管理檔案分享。

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

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

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

根壓縮定義了如何將用戶端上的根使用者映射到NFS共用。

屬性 值
參數群組: NfsProtocolProperties Arguments
接受的值: AllSquash, NoRootSquash, RootSquash
--subscription

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

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

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

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

取得檔案分享使用率資料。

az fileshare usage-show [--acquire-policy-token]
                        [--change-reference]
                        [--ids]
                        [--location]
                        [--subscription]

範例

展示檔案分享的使用情況

az fileshare usage-show --location westus

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

Location. 值的來源:az account list-locations。 您可以使用 az configure --defaults location=<location>來設定預設位置。

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

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

az fileshare wait [--acquire-policy-token]
                  [--change-reference]
                  [--created]
                  [--custom]
                  [--deleted]
                  [--exists]
                  [--ids]
                  [--interval]
                  [--name --resource-name]
                  [--resource-group]
                  [--subscription]
                  [--timeout]
                  [--updated]

選擇性參數

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

--acquire-policy-token

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

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

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

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

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

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

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

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

等到刪除為止。

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

等候資源存在。

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

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

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

輪詢間隔以秒為單位。

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

檔案共享的資源名稱,管理員透過 Azure Resource Manager 看到。

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