az datashare

注意

此參考是 Azure CLI 的資料共用 延伸模組的一部分 (2.15.0 版或更高版本)。 擴充功能會在您第一次執行 az datashare 命令時自動安裝。 深入了解擴充功能。

此命令群組是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

管理資料共用。

命令

名稱 Description 類型 狀態
az datashare account

使用 datashare 管理帳戶。

擴充 實驗性
az datashare account create

建立帳戶。

擴充 實驗性
az datashare account delete

DeleteAccount。

擴充 實驗性
az datashare account list

列出 ResourceGroup 中的帳戶,以及列出訂用帳戶中的帳戶。

擴充 實驗性
az datashare account show

取得帳戶。

擴充 實驗性
az datashare account update

修補帳戶。

擴充 實驗性
az datashare account wait

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

擴充 實驗性
az datashare consumer-invitation

使用 datashare 管理取用者邀請。

擴充 實驗性
az datashare consumer-invitation list-invitation

列出邀請。

擴充 實驗性
az datashare consumer-invitation reject-invitation

拒絕邀請。

擴充 實驗性
az datashare consumer-invitation show

取得邀請。

擴充 實驗性
az datashare consumer-source-data-set

使用 datashare 管理取用者來源資料集。

擴充 實驗性
az datashare consumer-source-data-set list

取得 shareSubscription 的來源資料集。

擴充 實驗性
az datashare create

建立共用。

擴充 實驗性
az datashare data-set

使用 datashare 管理資料集。

擴充 實驗性
az datashare data-set-mapping

使用 datashare 管理資料集對應。

擴充 實驗性
az datashare data-set-mapping create

建立 DataSetMapping。

擴充 實驗性
az datashare data-set-mapping delete

刪除 shareSubscription 中的 DataSetMapping。

擴充 實驗性
az datashare data-set-mapping list

列出共用訂用帳戶中的 DataSetMappings。

擴充 實驗性
az datashare data-set-mapping show

在 shareSubscription 中取得 DataSetMapping。

擴充 實驗性
az datashare data-set create

建立 DataSet。

擴充 實驗性
az datashare data-set delete

刪除共用中的 DataSet。

擴充 實驗性
az datashare data-set list

列出共用中的資料集。

擴充 實驗性
az datashare data-set show

在共用中取得 DataSet。

擴充 實驗性
az datashare data-set wait

將 CLI 置於等候狀態,直到符合 datashare 資料集的條件為止。

擴充 實驗性
az datashare delete

刪除共用。

擴充 實驗性
az datashare email-registration

使用 datashare 管理電子郵件註冊。

擴充 實驗性
az datashare email-registration activate-email

啟用目前租使用者的電子郵件註冊。

擴充 實驗性
az datashare email-registration register-email

註冊目前租使用者的電子郵件。

擴充 實驗性
az datashare invitation

使用 datashare 管理邀請。

擴充 實驗性
az datashare invitation create

建立邀請。

擴充 實驗性
az datashare invitation delete

刪除共用中的邀請。

擴充 實驗性
az datashare invitation list

列出共用中的邀請。

擴充 實驗性
az datashare invitation show

在共用中取得邀請。

擴充 實驗性
az datashare list

列出帳戶中的共用。

擴充 實驗性
az datashare list-synchronization

列出共用的同步處理。

擴充 實驗性
az datashare list-synchronization-detail

列出同步處理詳細資料。

擴充 實驗性
az datashare provider-share-subscription

使用 datashare 管理提供者共用訂用帳戶。

擴充 實驗性
az datashare provider-share-subscription adjust

在提供者共用中調整共用訂閱的到期日。

擴充 實驗性
az datashare provider-share-subscription list

列出提供者共用中的共用訂閱。

擴充 實驗性
az datashare provider-share-subscription reinstate

在提供者共用中恢復共用訂閱。

擴充 實驗性
az datashare provider-share-subscription revoke

撤銷提供者共用中的共用訂閱。

擴充 實驗性
az datashare provider-share-subscription show

在提供者共用中取得共用訂閱。

擴充 實驗性
az datashare provider-share-subscription wait

將 CLI 置於等候狀態,直到符合 datashare provider-share-subscription 的條件為止。

擴充 實驗性
az datashare share-subscription

使用 datashare 管理共用訂閱。

擴充 實驗性
az datashare share-subscription cancel-synchronization

取消同步處理的要求。

擴充 實驗性
az datashare share-subscription create

在帳戶中建立 shareSubscription。

擴充 實驗性
az datashare share-subscription delete

刪除帳戶中的 shareSubscription。

擴充 實驗性
az datashare share-subscription list

列出帳戶中的共用訂閱。

擴充 實驗性
az datashare share-subscription list-source-share-synchronization-setting

取得共用上設定的同步處理設定。

擴充 實驗性
az datashare share-subscription list-synchronization

列出共用訂閱的同步處理。

擴充 實驗性
az datashare share-subscription list-synchronization-detail

列出同步處理詳細資料。

擴充 實驗性
az datashare share-subscription show

在帳戶中取得 shareSubscription。

擴充 實驗性
az datashare share-subscription synchronize

起始複本。

擴充 實驗性
az datashare share-subscription wait

將 CLI 置於等候狀態,直到符合 datashare 共用訂用帳戶的條件為止。

擴充 實驗性
az datashare show

取得共用。

擴充 實驗性
az datashare synchronization-setting

使用 datashare 管理同步處理設定。

擴充 實驗性
az datashare synchronization-setting create

建立 synchronizationSetting。

擴充 實驗性
az datashare synchronization-setting delete

刪除共用中的 synchronizationSetting。

擴充 實驗性
az datashare synchronization-setting list

在共用中列出同步處理設定。

擴充 實驗性
az datashare synchronization-setting show

在共用中取得 synchronizationSetting。

擴充 實驗性
az datashare synchronization-setting wait

將 CLI 置於等候狀態,直到符合 datashare 同步處理設定的條件為止。

擴充 實驗性
az datashare trigger

使用 datashare 管理觸發程式。

擴充 實驗性
az datashare trigger create

建立觸發程式。

擴充 實驗性
az datashare trigger delete

刪除 shareSubscription 中的觸發程式。

擴充 實驗性
az datashare trigger list

列出共用訂用帳戶中的觸發程式。

擴充 實驗性
az datashare trigger show

在 shareSubscription 中取得觸發程式。

擴充 實驗性
az datashare trigger wait

將 CLI 置於等候狀態,直到符合 datashare 觸發程式的條件為止。

擴充 實驗性
az datashare wait

將 CLI 置於等候狀態,直到符合資料共用的條件為止。

擴充 實驗性

az datashare create

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

建立共用。

az datashare create --account-name
                    --name
                    --resource-group
                    [--description]
                    [--share-kind {CopyBased, InPlace}]
                    [--terms]

範例

Shares_Create

az datashare create --account-name "Account1" --resource-group "SampleResourceGroup" --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1"

必要參數

--account-name

共用帳戶的名稱。

--name --share-name -n

共用的名稱。

--resource-group -g

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

選擇性參數

--description

共用描述。

--share-kind

共用種類。

接受的值: CopyBased, InPlace
--terms

共用字詞。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare delete

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

刪除共用。

az datashare delete [--account-name]
                    [--ids]
                    [--name]
                    [--no-wait]
                    [--resource-group]
                    [--subscription]
                    [--yes]

範例

Shares_Delete

az datashare delete --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--ids

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

--name --share-name -n

共用的名稱。

--no-wait

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

預設值: False
--resource-group -g

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

--subscription

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

--yes -y

不提示確認。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare list

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出帳戶中的共用。

az datashare list --account-name
                  --resource-group
                  [--filter]
                  [--orderby]
                  [--skip-token]

範例

Shares_ListByAccount

az datashare list --account-name "Account1" --resource-group "SampleResourceGroup"

必要參數

--account-name

共用帳戶的名稱。

--resource-group -g

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

選擇性參數

--filter

使用 OData 語法篩選結果。

--orderby

使用 OData 語法排序結果。

--skip-token

接續權杖。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare list-synchronization

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出共用的同步處理。

az datashare list-synchronization --account-name
                                  --name
                                  --resource-group
                                  [--filter]
                                  [--orderby]
                                  [--skip-token]

範例

Shares_ListSynchronizations

az datashare list-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"

必要參數

--account-name

共用帳戶的名稱。

--name --share-name -n

共用的名稱。

--resource-group -g

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

選擇性參數

--filter

使用 OData 語法篩選結果。

--orderby

使用 OData 語法排序結果。

--skip-token

接續權杖。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare list-synchronization-detail

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出同步處理詳細資料。

az datashare list-synchronization-detail --account-name
                                         --name
                                         --resource-group
                                         [--consumer-email]
                                         [--consumer-name]
                                         [--consumer-tenant-name]
                                         [--duration-ms]
                                         [--end-time]
                                         [--filter]
                                         [--message]
                                         [--orderby]
                                         [--skip-token]
                                         [--start-time]
                                         [--status]
                                         [--synchronization-id]

範例

Shares_ListSynchronizationDetails

az datashare list-synchronization-detail --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"

必要參數

--account-name

共用帳戶的名稱。

--name --share-name -n

共用的名稱。

--resource-group -g

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

選擇性參數

--consumer-email

建立同步處理之使用者的電子郵件。

--consumer-name

建立同步處理的使用者名稱。

--consumer-tenant-name

建立同步處理之取用者的租使用者名稱。

--duration-ms

同步處理持續時間。

--end-time

同步處理的結束時間。

--filter

使用 OData 語法篩選結果。

--message

同步處理的訊息。

--orderby

使用 OData 語法排序結果。

--skip-token

接續權杖。

--start-time

同步處理的開始時間。

--status

原始狀態。

--synchronization-id

同步處理識別碼。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare show

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

取得共用。

az datashare show [--account-name]
                  [--ids]
                  [--name]
                  [--resource-group]
                  [--subscription]

範例

Shares_Get

az datashare show --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--ids

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

--name --share-name -n

要擷取的共用名稱稱。

--resource-group -g

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

--subscription

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

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az datashare wait

實驗

命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

將 CLI 置於等候狀態,直到符合資料共用的條件為止。

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

範例

暫停執行下一行 CLI 腳本,直到成功刪除資料共用為止。

az datashare wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --deleted

選擇性參數

--account-name

共用帳戶的名稱。

--created

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

預設值: False
--custom

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

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--name --share-name -n

要擷取的共用名稱稱。

--resource-group -g

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

--subscription

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

--timeout

以秒為單位的等候上限。

預設值: 3600
--updated

等到 provisioningState 更新為 'Succeeded'。

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

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

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

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

--subscription

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

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。