az storagesync sync-group cloud-endpoint
Note
此参考是 Azure CLI(版本 2.55.0 或更高版本)的 存储同步 扩展的一部分。 该扩展会在首次运行 az storagesync sync-group cloud-endpoint 命令时自动安装。 了解更多关于扩展的信息。
管理云终结点。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az storagesync sync-group cloud-endpoint create |
创建新的云终结点。 |
Extension | GA |
| az storagesync sync-group cloud-endpoint delete |
删除给定的云终结点。 |
Extension | GA |
| az storagesync sync-group cloud-endpoint list |
列出同步组中的所有云终结点。 |
Extension | GA |
| az storagesync sync-group cloud-endpoint show |
显示给定云终结点的属性。 |
Extension | GA |
| az storagesync sync-group cloud-endpoint trigger-change-detection |
触发对连接到指定 Azure 文件同步云终结点的 Azure 文件共享执行的更改的检测。 |
Extension | GA |
| az storagesync sync-group cloud-endpoint wait |
将 CLI 置于等待状态,直到满足云终结点的条件。 |
Extension | GA |
az storagesync sync-group cloud-endpoint create
创建新的云终结点。
az storagesync sync-group cloud-endpoint create --name
--storage-sync-service
--sync-group-name
[--azure-file-share-name]
[--no-wait]
[--resource-group]
[--storage-account]
[--storage-account-tenant-id]
示例
在同步组“SampleSyncGroup”中创建新的云终结点“SampleCloudEndpoint”。
az storagesync sync-group cloud-endpoint create --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleCloudEndpoint" --storage-account storageaccountnameorid --azure-file-share-name \
"cvcloud-afscv-0719-058-a94a1354-a1fd-4e9a-9a50-919fad8c4ba4"
必需参数
云终结点的名称。
存储同步服务的名称或 ID。
同步组的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
Azure 文件共享的名称。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储帐户的名称或 ID。
存储帐户位于的租户的 ID。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az storagesync sync-group cloud-endpoint delete
删除给定的云终结点。
az storagesync sync-group cloud-endpoint delete --name
--storage-sync-service
--sync-group-name
[--no-wait]
[--resource-group]
[--yes]
示例
删除云终结点“SampleCloudEndpoint”。
az storagesync sync-group cloud-endpoint delete --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleCloudEndpoint"
必需参数
云终结点的名称。
存储同步服务的名称或 ID。
同步组的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az storagesync sync-group cloud-endpoint list
列出同步组中的所有云终结点。
az storagesync sync-group cloud-endpoint list --storage-sync-service
--sync-group-name
[--resource-group]
示例
列出同步组“SampleSyncGroup”中的所有云终结点。
az storagesync sync-group cloud-endpoint list --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup"
必需参数
存储同步服务的名称或 ID。
同步组的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az storagesync sync-group cloud-endpoint show
显示给定云终结点的属性。
az storagesync sync-group cloud-endpoint show --name
--storage-sync-service
--sync-group-name
[--resource-group]
示例
显示云终结点“SampleCloudEndpoint”的属性。
az storagesync sync-group cloud-endpoint show --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleCloudEndpoint"
必需参数
云终结点的名称。
存储同步服务的名称或 ID。
同步组的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az storagesync sync-group cloud-endpoint trigger-change-detection
触发对连接到指定 Azure 文件同步云终结点的 Azure 文件共享执行的更改的检测。
az storagesync sync-group cloud-endpoint trigger-change-detection [--change-detection-mode {Default, Recursive}]
[--cloud-endpoint-name --name]
[--directory-path]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--paths]
[--resource-group]
[--storage-sync-service --storage-sync-service-name]
[--subscription]
[--sync-group-name]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
更改检测模式。 适用于 directoryPath 参数中指定的目录。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
| 接受的值: | Default, Recursive |
Cloud Endpoint 对象的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
要为其执行更改检测的目录 Azure 文件共享的相对路径。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
要包含在更改检测中的 Azure 文件共享上的相对路径数组。 可以是文件和目录。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
存储同步服务资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
同步组资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az storagesync sync-group cloud-endpoint wait
将 CLI 置于等待状态,直到满足云终结点的条件。
az storagesync sync-group cloud-endpoint wait --name
--resource-group
--storage-sync-service-name
--sync-group-name
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
示例
将 CLI 置于等待状态,直到创建云终结点的条件。
az storagesync sync-group cloud-endpoint wait --resource-group "SampleResourceGroup" \
--storage-sync-service "SampleStorageSyncService" --sync-group-name \
"SampleSyncGroup" --name "SampleCloudEndpoint" --created
必需参数
云终结点的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
存储同步服务资源的名称。
同步组资源的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
等待在“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/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |