az datashare
Note
此參考是 Azure CLI 的數據 共用 延伸模組的一部分(2.15.0 版或更高版本)。 擴充功能會在您第一次執行 az datashare 命令時自動安裝。 深入了解擴充功能。
此命令群組是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
管理數據共用。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az datashare account |
使用 datashare 管理帳戶。 |
Extension | Experimental |
| az datashare account create |
建立帳戶。 |
Extension | Experimental |
| az datashare account delete |
DeleteAccount. |
Extension | Experimental |
| az datashare account list |
列出 ResourceGroup 中的帳戶,以及列出訂用帳戶中的帳戶。 |
Extension | Experimental |
| az datashare account show |
取得帳戶。 |
Extension | Experimental |
| az datashare account update |
修補帳戶。 |
Extension | Experimental |
| az datashare account wait |
將 CLI 置於等候狀態,直到符合 datashare 帳戶的條件為止。 |
Extension | Experimental |
| az datashare consumer-invitation |
使用 datashare 管理取用者邀請。 |
Extension | Experimental |
| az datashare consumer-invitation list-invitation |
列出邀請。 |
Extension | Experimental |
| az datashare consumer-invitation reject-invitation |
拒絕邀請。 |
Extension | Experimental |
| az datashare consumer-invitation show |
取得邀請。 |
Extension | Experimental |
| az datashare consumer-source-data-set |
使用 datashare 管理取用者來源數據集。 |
Extension | Experimental |
| az datashare consumer-source-data-set list |
取得 shareSubscription 的來源數據集。 |
Extension | Experimental |
| az datashare create |
建立共用。 |
Extension | Experimental |
| az datashare data-set |
使用 datashare 管理數據集。 |
Extension | Experimental |
| az datashare data-set-mapping |
使用 datashare 管理數據集對應。 |
Extension | Experimental |
| az datashare data-set-mapping create |
建立 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set-mapping delete |
刪除 shareSubscription 中的 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set-mapping list |
列出共用訂用帳戶中的 DataSetMappings。 |
Extension | Experimental |
| az datashare data-set-mapping show |
在 shareSubscription 中取得 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set create |
建立 DataSet。 |
Extension | Experimental |
| az datashare data-set delete |
刪除共用中的DataSet。 |
Extension | Experimental |
| az datashare data-set list |
列出共用中的數據集。 |
Extension | Experimental |
| az datashare data-set show |
在共用中取得 DataSet。 |
Extension | Experimental |
| az datashare data-set wait |
將 CLI 置於等候狀態,直到符合 datashare 數據集的條件為止。 |
Extension | Experimental |
| az datashare delete |
刪除共用。 |
Extension | Experimental |
| az datashare email-registration |
使用 datashare 管理電子郵件註冊。 |
Extension | Experimental |
| az datashare email-registration activate-email |
啟用目前租用戶的電子郵件註冊。 |
Extension | Experimental |
| az datashare email-registration register-email |
註冊目前租用戶的電子郵件。 |
Extension | Experimental |
| az datashare invitation |
使用 datashare 管理邀請。 |
Extension | Experimental |
| az datashare invitation create |
建立邀請。 |
Extension | Experimental |
| az datashare invitation delete |
刪除共用中的邀請。 |
Extension | Experimental |
| az datashare invitation list |
列出共用中的邀請。 |
Extension | Experimental |
| az datashare invitation show |
在共用中取得邀請。 |
Extension | Experimental |
| az datashare list |
列出帳戶中的共用。 |
Extension | Experimental |
| az datashare list-synchronization |
列出共用的同步處理。 |
Extension | Experimental |
| az datashare list-synchronization-detail |
列出同步處理詳細數據。 |
Extension | Experimental |
| az datashare provider-share-subscription |
使用 datashare 管理提供者共用訂用帳戶。 |
Extension | Experimental |
| az datashare provider-share-subscription adjust |
在提供者共用中調整共用訂閱的到期日。 |
Extension | Experimental |
| az datashare provider-share-subscription list |
列出提供者共用中的共用訂閱。 |
Extension | Experimental |
| az datashare provider-share-subscription reinstate |
在提供者共用中恢復共用訂閱。 |
Extension | Experimental |
| az datashare provider-share-subscription revoke |
撤銷提供者共用中的共用訂閱。 |
Extension | Experimental |
| az datashare provider-share-subscription show |
在提供者共用中取得共用訂閱。 |
Extension | Experimental |
| az datashare provider-share-subscription wait |
將 CLI 置於等候狀態,直到符合 datashare provider-share-subscription 的條件為止。 |
Extension | Experimental |
| az datashare share-subscription |
使用 datashare 管理共用訂閱。 |
Extension | Experimental |
| az datashare share-subscription cancel-synchronization |
取消同步處理的要求。 |
Extension | Experimental |
| az datashare share-subscription create |
在帳戶中建立 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription delete |
刪除帳戶中的 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription list |
列出帳戶中的共用訂閱。 |
Extension | Experimental |
| az datashare share-subscription list-source-share-synchronization-setting |
取得共享上設定的同步處理設定。 |
Extension | Experimental |
| az datashare share-subscription list-synchronization |
列出共用訂閱的同步處理。 |
Extension | Experimental |
| az datashare share-subscription list-synchronization-detail |
列出同步處理詳細數據。 |
Extension | Experimental |
| az datashare share-subscription show |
在帳戶中取得 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription synchronize |
起始復本。 |
Extension | Experimental |
| az datashare share-subscription wait |
將 CLI 置於等候狀態,直到符合 datashare 共用訂用帳戶的條件為止。 |
Extension | Experimental |
| az datashare show |
取得共用。 |
Extension | Experimental |
| az datashare synchronization-setting |
使用 datashare 管理同步處理設定。 |
Extension | Experimental |
| az datashare synchronization-setting create |
建立 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting delete |
刪除共用中的 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting list |
列出共用中的 synchronizationSettings。 |
Extension | Experimental |
| az datashare synchronization-setting show |
在共用中取得 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting wait |
將 CLI 置於等候狀態,直到符合 datashare 同步處理設定的條件為止。 |
Extension | Experimental |
| az datashare trigger |
使用 datashare 管理觸發程式。 |
Extension | Experimental |
| az datashare trigger create |
建立觸發程式。 |
Extension | Experimental |
| az datashare trigger delete |
刪除 shareSubscription 中的觸發程式。 |
Extension | Experimental |
| az datashare trigger list |
列出共用訂用帳戶中的觸發程式。 |
Extension | Experimental |
| az datashare trigger show |
在 shareSubscription 中取得觸發程式。 |
Extension | Experimental |
| az datashare trigger wait |
將 CLI 置於等候狀態,直到符合 datashare 觸發程式的條件為止。 |
Extension | Experimental |
| az datashare wait |
將 CLI 置於等候狀態,直到符合數據共享的條件為止。 |
Extension | Experimental |
az datashare create
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
建立共用。
az datashare create --account-name
--name --share-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"
必要參數
共用帳戶的名稱。
共用的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用描述。
共用種類。
| 屬性 | 值 |
|---|---|
| 接受的值: | CopyBased, InPlace |
共用字詞。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare delete
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
刪除共用。
az datashare delete [--account-name]
[--ids]
[--name --share-name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
範例
Shares_Delete
az datashare delete --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
共用的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az 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"
必要參數
共用帳戶的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
使用 OData 語法篩選結果。
使用 OData 語法排序結果。
接續令牌。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare list-synchronization
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出共用的同步處理。
az datashare list-synchronization --account-name
--name --share-name
--resource-group
[--filter]
[--orderby]
[--skip-token]
範例
Shares_ListSynchronizations
az datashare list-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
必要參數
共用帳戶的名稱。
共用的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
使用 OData 語法篩選結果。
使用 OData 語法排序結果。
接續令牌。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare list-synchronization-detail
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
列出同步處理詳細數據。
az datashare list-synchronization-detail --account-name
--name --share-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"
必要參數
共用帳戶的名稱。
共用的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
建立同步處理之用戶的電子郵件。
建立同步處理的用戶名稱。
建立同步處理之取用者的租用戶名稱。
同步處理持續時間。
同步處理的結束時間。
使用 OData 語法篩選結果。
同步處理的訊息。
使用 OData 語法排序結果。
接續令牌。
同步處理的開始時間。
原始狀態。
同步處理標識碼。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare show
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
取得共用。
az datashare show [--account-name]
[--ids]
[--name --share-name]
[--resource-group]
[--subscription]
範例
Shares_Get
az datashare show --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
要擷取的共享名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
az datashare wait
命令群組 'datashare' 是實驗性且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
將 CLI 置於等候狀態,直到符合數據共享的條件為止。
az datashare wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name --share-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
範例
暫停執行下一行 CLI 腳本,直到成功刪除數據共享為止。
az datashare wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --deleted
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
共用帳戶的名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
請等候在 'Succeeded' 使用 'provisioningState' 建立。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等到條件符合自定義 JMESPath 查詢為止。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
等到刪除為止。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
等候資源存在。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
一或多個資源識別碼(以空格分隔)。 它應該是包含 「資源標識碼」自變數所有資訊的完整資源識別碼。 您應該提供 --ids 或其他「資源識別碼」自變數。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
要擷取的共享名稱。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
| 屬性 | 值 |
|---|---|
| 參數群組: | Resource Id Arguments |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |