共用方式為


az sql stg

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

管理伺服器信任群組。

命令

名稱 Description 類型 狀態
az sql stg create

建立伺服器信任群組。

Core Preview
az sql stg delete

刪除伺服器信任群組。

Core Preview
az sql stg list

擷取伺服器信任群組的清單。

Core Preview
az sql stg show

擷取伺服器信任群組。

Core Preview

az sql stg create

預覽

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

建立伺服器信任群組。

az sql stg create --group-member
                  --location
                  --name
                  --resource-group
                  --trust-scope
                  [--no-wait]

範例

建立伺服器信任群組,其中包含其成員的指定資源標識符。

az sql stg create -g resourcegroup -l location -n stg-name --trust-scope GlobalTransactions -m $mi1-id $mi2-id

必要參數

--group-member -m

要成為群組成員的受控實例。 指定資源群組、訂用帳戶標識碼和實例的名稱。

--location -l

伺服器信任群組的位置名稱。

--name -n

伺服器信任群組的名稱。

--resource-group -g

資源組名。

--trust-scope

伺服器信任群組的信任範圍。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

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

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: 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 sql stg delete

預覽

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

刪除伺服器信任群組。

az sql stg delete --location
                  --name
                  --resource-group
                  [--no-wait]
                  [--yes]

範例

刪除伺服器信任群組。

az sql stg delete -g resourcegroup -l location -n stg-name

必要參數

--location -l

伺服器信任群組的位置。

--name -n

伺服器信任群組的名稱。

--resource-group -g

資源組名。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--no-wait

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

屬性
預設值: False
--yes -y

請勿提示確認。

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

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: 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 sql stg list

預覽

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

擷取伺服器信任群組的清單。

az sql stg list --resource-group
                [--instance-name]
                [--location]

範例

依實例擷取伺服器信任群組的清單。

az sql stg list -g resourcegroup --instance-name mi1-name

依位置擷取伺服器信任群組的清單。

az sql stg list -g resourcegroup -l location

必要參數

--resource-group -g

資源組名。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--instance-name

受控實例名稱。

屬性
Parameter group: List By Instance Arguments
--location -l

伺服器信任群組的位置。

屬性
Parameter group: List By Location Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: 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 sql stg show

預覽

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

擷取伺服器信任群組。

az sql stg show --location
                --name
                --resource-group

範例

擷取伺服器信任群組。

az sql stg show -g resourcegroup -l location -n stg-name

必要參數

--location -l

伺服器信任群組的位置。

--name -n

伺服器信任群組的名稱。

--resource-group -g

資源組名。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

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

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

--subscription

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

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False