az storagesync sync-group server-endpoint
Note
此參考資料是Azure CLIstoragesync擴充功能(版本 2.55.0 或更高版本)的一部分。 當您第一次 執行 az storagesync sync-group server-endpoint 命令時,擴充功能會自動安裝。 深入了解擴充功能。
管理伺服器端點。
命令
| 名稱 | Description | 類型 | 狀態 |
|---|---|---|---|
| az storagesync sync-group server-endpoint create |
建立新的伺服器端點。 |
Extension | GA |
| az storagesync sync-group server-endpoint delete |
刪除指定的伺服器端點。 |
Extension | GA |
| az storagesync sync-group server-endpoint list |
列出同步群組中的所有伺服器端點。 |
Extension | GA |
| az storagesync sync-group server-endpoint show |
顯示指定伺服器端點的屬性。 |
Extension | GA |
| az storagesync sync-group server-endpoint update |
更新指定伺服器端點的屬性。 |
Extension | GA |
| az storagesync sync-group server-endpoint wait |
將 CLI 置於等候狀態,直到符合伺服器端點的條件為止。 |
Extension | GA |
az storagesync sync-group server-endpoint create
建立新的伺服器端點。
az storagesync sync-group server-endpoint create --name
--registered-server-id --server-id
--server-local-path
--storage-sync-service
--sync-group-name
[--acquire-policy-token]
[--change-reference]
[--cloud-tiering {off, on}]
[--no-wait]
[--offline-data-transfer {off, on}]
[--offline-data-transfer-share-name]
[--resource-group]
[--tier-files-older-than-days]
[--volume-free-space-percent]
範例
在同步群組 「SampleSyncGroup」 中建立新的伺服器端點 「SampleServerEndpoint」。
az storagesync sync-group server-endpoint create --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleServerEndpoint" --server-id 91beed22-7e9e-4bda-9313-fec96cf286e0 \
--server-local-path "d:\abc" --cloud-tiering "off" --volume-free-space-percent 80 --tier-files-older-than-days 20 \
--offline-data-transfer "on" --offline-data-transfer-share-name "myfileshare"
必要參數
伺服器端點的名稱。
已註冊伺服器的資源識別碼或 GUID。
已註冊伺服器的本機路徑。
記憶體同步服務的名稱或識別碼。
同步群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
啟用或停用雲端階層處理的參數。 透過雲端分層制,不常用或存取的檔案可以分層到 Azure 檔案儲存體。
| 屬性 | 值 |
|---|---|
| 接受的值: | off, on |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
啟用或停用離線資料傳輸的切換。 透過離線資料傳輸,你可以使用替代方式,例如 Azure 資料箱,將大量檔案傳輸到 Azure,無需網路。
| 屬性 | 值 |
|---|---|
| 接受的值: | off, on |
用來離線傳輸資料的 Azure 檔案分享名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
檔案比 分層的天數。
在伺服器端點所在的磁碟區上保留的可用空間量。 例如,如果一個有單一伺服器端點的磁碟區將 50% 設定為 50 個,約有一半的資料會被分層到 Azure 檔案儲存體。 不論是否有啟用雲端分層,你的 Azure 檔案分享在同步群組中都會有完整的資料副本。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | 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 server-endpoint delete
刪除指定的伺服器端點。
az storagesync sync-group server-endpoint delete --name
--storage-sync-service
--sync-group-name
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--resource-group]
[--yes]
範例
刪除伺服器端點 「SampleServerEndpoint」。。
az storagesync sync-group server-endpoint delete --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleServerEndpoint"
必要參數
伺服器端點的名稱。
記憶體同步服務的名稱或識別碼。
同步群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
請勿提示確認。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | 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 server-endpoint list
列出同步群組中的所有伺服器端點。
az storagesync sync-group server-endpoint list --storage-sync-service
--sync-group-name
[--resource-group]
範例
列出同步群組 「SampleSyncGroup」 中的所有伺服器端點。
az storagesync sync-group server-endpoint list --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup"
必要參數
記憶體同步服務的名稱或識別碼。
同步群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | 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 server-endpoint show
顯示指定伺服器端點的屬性。
az storagesync sync-group server-endpoint show --name
--storage-sync-service
--sync-group-name
[--resource-group]
範例
顯示伺服器端點 「SampleServerEndpoint」 的屬性。
az storagesync sync-group server-endpoint show --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleServerEndpoint"
必要參數
伺服器端點的名稱。
記憶體同步服務的名稱或識別碼。
同步群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | 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 server-endpoint update
更新指定伺服器端點的屬性。
az storagesync sync-group server-endpoint update --name
--storage-sync-service
--sync-group-name
[--acquire-policy-token]
[--change-reference]
[--cloud-tiering {off, on}]
[--no-wait]
[--offline-data-transfer {off, on}]
[--offline-data-transfer-share-name]
[--resource-group]
[--tier-files-older-than-days]
[--volume-free-space-percent]
範例
更新伺服器端點 「SampleServerEndpoint」 的屬性。
az storagesync sync-group server-endpoint update --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleServerEndpoint" --cloud-tiering "off" \
--volume-free-space-percent "100" --tier-files-older-than-days "0" \
--offline-data-transfer "off"
必要參數
伺服器端點的名稱。
記憶體同步服務的名稱或識別碼。
同步群組的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
啟用或停用雲端階層處理的參數。 透過雲端分層制,不常用或存取的檔案可以分層到 Azure 檔案儲存體。
| 屬性 | 值 |
|---|---|
| 接受的值: | off, on |
請勿等候長時間執行的作業完成。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
啟用或停用離線資料傳輸的切換。 透過離線資料傳輸,你可以使用替代方式,例如 Azure 資料箱,將大量檔案傳輸到 Azure,無需網路。
| 屬性 | 值 |
|---|---|
| 接受的值: | off, on |
用來離線傳輸資料的 Azure 檔案分享名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
檔案比 分層的天數。
在伺服器端點所在的磁碟區上保留的可用空間量。 例如,如果一個有單一伺服器端點的磁碟區將 50% 設定為 50 個,約有一半的資料會被分層到 Azure 檔案儲存體。 不論是否有啟用雲端分層,你的 Azure 檔案分享在同步群組中都會有完整的資料副本。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | 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 server-endpoint wait
將 CLI 置於等候狀態,直到符合伺服器端點的條件為止。
az storagesync sync-group server-endpoint wait --name
--resource-group
--storage-sync-service-name
--sync-group-name
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
範例
將 CLI 置於等候狀態,直到建立伺服器端點的條件為止。
az storagesync sync-group server-endpoint wait --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleServerEndpoint" --created
必要參數
伺服器端點的名稱。
資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。
記憶體同步服務資源的名稱。
同步群組資源的名稱。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自動取得 Azure 原則 令牌以進行此資源操作。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy Arguments |
相關變更的 ID 是為此資源操作所參考的。
| 屬性 | 值 |
|---|---|
| 參數群組: | Global Policy 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 |
輪詢間隔以秒為單位。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 30 |
以秒為單位的等候上限。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | 3600 |
等到 provisioningState 更新為 'Succeeded'。
| 屬性 | 值 |
|---|---|
| 參數群組: | Wait Condition Arguments |
| 預設值: | False |
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |