az datashare provider-share-subscription

注意

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

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

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

命令

名稱 Description 類型 狀態
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 provider-share-subscription adjust

實驗

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

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

az datashare provider-share-subscription adjust [--account-name]
                                                [--expiration-date]
                                                [--ids]
                                                [--provider-share-subscription-id]
                                                [--resource-group]
                                                [--share-name]
                                                [--subscription]

範例

ProviderShareSubscriptions_Adjust

az datashare provider-share-subscription adjust --account-name "Account1" --expiration-date "2020-12-26T22:33:24.5785265Z" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--expiration-date

以 UTC 格式的共用訂閱到期日。

--ids

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

--provider-share-subscription-id

若要尋找 shareSubscription。

--resource-group -g

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

--share-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 provider-share-subscription list

實驗

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

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

az datashare provider-share-subscription list --account-name
                                              --resource-group
                                              --share-name
                                              [--skip-token]

範例

ProviderShareSubscriptions_ListByShare

az datashare provider-share-subscription list --account-name "Account1" --resource-group "SampleResourceGroup" --share-name "Share1"

必要參數

--account-name

共用帳戶的名稱。

--resource-group -g

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

--share-name

共用的名稱。

選擇性參數

--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 provider-share-subscription reinstate

實驗

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

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

az datashare provider-share-subscription reinstate [--account-name]
                                                   [--expiration-date]
                                                   [--ids]
                                                   [--provider-share-subscription-id]
                                                   [--resource-group]
                                                   [--share-name]
                                                   [--subscription]

範例

ProviderShareSubscriptions_Reinstate

az datashare provider-share-subscription reinstate --account-name "Account1" --expiration-date "2020-12-26T22:33:24.5785265Z" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--expiration-date

以 UTC 格式的共用訂閱到期日。

--ids

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

--provider-share-subscription-id

若要尋找 shareSubscription。

--resource-group -g

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

--share-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 provider-share-subscription revoke

實驗

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

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

az datashare provider-share-subscription revoke [--account-name]
                                                [--ids]
                                                [--no-wait]
                                                [--provider-share-subscription-id]
                                                [--resource-group]
                                                [--share-name]
                                                [--subscription]

範例

ProviderShareSubscriptions_Revoke

az datashare provider-share-subscription revoke --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--ids

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

--no-wait

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

預設值: False
--provider-share-subscription-id

若要尋找 shareSubscription。

--resource-group -g

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

--share-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 provider-share-subscription show

實驗

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

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

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

範例

ProviderShareSubscriptions_GetByShare

az datashare provider-share-subscription show --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1"

選擇性參數

--account-name

共用帳戶的名稱。

--ids

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

--provider-share-subscription-id

若要尋找 shareSubscription。

--resource-group -g

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

--share-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 provider-share-subscription wait

實驗

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

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

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

範例

暫停執行下一行 CLI 腳本,直到成功建立 datashare provider-share-subscription 為止。

az datashare provider-share-subscription wait --account-name "Account1" --provider-share-subscription-id "4256e2cf-0f82-4865-961b-12f83333f487" --resource-group "SampleResourceGroup" --share-name "Share1" --created

選擇性參數

--account-name

共用帳戶的名稱。

--created

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

預設值: False
--custom

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

--deleted

等到刪除為止。

預設值: False
--exists

等候資源存在。

預設值: False
--ids

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

--interval

輪詢間隔以秒為單位。

預設值: 30
--provider-share-subscription-id

若要尋找 shareSubscription。

--resource-group -g

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

--share-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 來取得完整偵錯記錄。