az storagesync sync-group
Note
This reference is part of the storagesync extension for the Azure CLI (version 2.55.0 or higher). 當您第一次執行 az storagesync sync-group 命令時,擴充功能會自動安裝。 Learn more about extensions.
管理同步群組。
命令
az storagesync sync-group create
建立新的同步群組。
az storagesync sync-group create --name
--storage-sync-service
[--resource-group]
範例
在記憶體同步服務 「SampleStorageSyncService」 中建立新的同步群組 「SampleSyncGroup」。
az storagesync sync-group create --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --name "SampleSyncGroup"
必要參數
同步群組的名稱。
記憶體同步服務的名稱或識別碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az storagesync sync-group delete
刪除指定的同步群組。
az storagesync sync-group delete --name
--storage-sync-service
[--resource-group]
[--yes]
範例
刪除記憶體同步服務 「SampleStorageSyncService」 中的同步群組 「SampleSyncGroup」。
az storagesync sync-group delete --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --name "SampleSyncGroup"
必要參數
同步群組的名稱。
記憶體同步服務的名稱或識別碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
請勿提示確認。
屬性 | 值 |
---|---|
預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az storagesync sync-group list
列出記憶體同步服務中的所有同步群組。
az storagesync sync-group list --storage-sync-service
[--resource-group]
範例
列出記憶體同步服務 「SampleStorageSyncService」 中的所有同步群組。
az storagesync sync-group list --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService"
必要參數
記憶體同步服務的名稱或識別碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |
az storagesync sync-group show
顯示指定同步群組的屬性。
az storagesync sync-group show --name
--storage-sync-service
[--resource-group]
範例
在記憶體同步服務 「SampleStorageSyncService」 中顯示同步群組 「SampleSyncGroup」 的屬性。
az storagesync sync-group show --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --name "SampleSyncGroup"
必要參數
同步群組的名稱。
記憶體同步服務的名稱或識別碼。
選擇性參數
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
資源組名。 您可以使用 az configure --defaults group=<name>
來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
屬性 | 值 |
---|---|
預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
屬性 | 值 |
---|---|
預設值: | False |
Output format.
屬性 | 值 |
---|---|
預設值: | json |
接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID
來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
屬性 | 值 |
---|---|
預設值: | False |