az datashare
Note
This reference is part of the datashare extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az datashare command. Learn more about extensions.
此命令组是试验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
管理 Data Share。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az datashare account |
使用 datashare 管理帐户。 |
Extension | Experimental |
| az datashare account create |
创建帐户。 |
Extension | Experimental |
| az datashare account delete |
DeleteAccount. |
Extension | Experimental |
| az datashare account list |
列出 ResourceGroup 中的帐户和订阅中的列表帐户。 |
Extension | Experimental |
| az datashare account show |
获取帐户。 |
Extension | Experimental |
| az datashare account update |
修补帐户。 |
Extension | Experimental |
| az datashare account wait |
将 CLI 置于等待状态,直到满足 datashare 帐户的条件。 |
Extension | Experimental |
| az datashare consumer-invitation |
使用 datashare 管理使用者邀请。 |
Extension | Experimental |
| az datashare consumer-invitation list-invitation |
Lists invitations. |
Extension | Experimental |
| az datashare consumer-invitation reject-invitation |
拒绝邀请。 |
Extension | Experimental |
| az datashare consumer-invitation show |
获取邀请。 |
Extension | Experimental |
| az datashare consumer-source-data-set |
使用 datashare 管理使用者源数据集。 |
Extension | Experimental |
| az datashare consumer-source-data-set list |
获取 shareSubscription 的源数据集。 |
Extension | Experimental |
| az datashare create |
创建共享。 |
Extension | Experimental |
| az datashare data-set |
使用 datashare 管理数据集。 |
Extension | Experimental |
| az datashare data-set-mapping |
使用 datashare 管理数据集映射。 |
Extension | Experimental |
| az datashare data-set-mapping create |
创建 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set-mapping delete |
删除 shareSubscription 中的 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set-mapping list |
列出共享订阅中的 DataSetMappings。 |
Extension | Experimental |
| az datashare data-set-mapping show |
获取 shareSubscription 中的 DataSetMapping。 |
Extension | Experimental |
| az datashare data-set create |
创建数据集。 |
Extension | Experimental |
| az datashare data-set delete |
删除共享中的数据集。 |
Extension | Experimental |
| az datashare data-set list |
列出共享中的数据集。 |
Extension | Experimental |
| az datashare data-set show |
获取共享中的数据集。 |
Extension | Experimental |
| az datashare data-set wait |
将 CLI 置于等待状态,直到满足 datashare 数据集的条件。 |
Extension | Experimental |
| az datashare delete |
删除共享。 |
Extension | Experimental |
| az datashare email-registration |
使用 datashare 管理电子邮件注册。 |
Extension | Experimental |
| az datashare email-registration activate-email |
激活当前租户的电子邮件注册。 |
Extension | Experimental |
| az datashare email-registration register-email |
注册当前租户的电子邮件。 |
Extension | Experimental |
| az datashare invitation |
使用 datashare 管理邀请。 |
Extension | Experimental |
| az datashare invitation create |
创建邀请。 |
Extension | Experimental |
| az datashare invitation delete |
删除共享中的邀请。 |
Extension | Experimental |
| az datashare invitation list |
列出共享中的邀请。 |
Extension | Experimental |
| az datashare invitation show |
在共享中获取邀请。 |
Extension | Experimental |
| az datashare list |
列出帐户中的共享。 |
Extension | Experimental |
| az datashare list-synchronization |
列出共享的同步。 |
Extension | Experimental |
| az datashare list-synchronization-detail |
列出同步详细信息。 |
Extension | Experimental |
| az datashare provider-share-subscription |
使用 datashare 管理提供程序共享订阅。 |
Extension | Experimental |
| az datashare provider-share-subscription adjust |
在提供程序共享中调整共享订阅的到期日期。 |
Extension | Experimental |
| az datashare provider-share-subscription list |
列出提供程序共享中的共享订阅。 |
Extension | Experimental |
| az datashare provider-share-subscription reinstate |
恢复提供程序共享中的共享订阅。 |
Extension | Experimental |
| az datashare provider-share-subscription revoke |
撤销提供程序共享中的共享订阅。 |
Extension | Experimental |
| az datashare provider-share-subscription show |
获取提供程序共享中的共享订阅。 |
Extension | Experimental |
| az datashare provider-share-subscription wait |
将 CLI 置于等待状态,直到满足 datashare provider-share-subscription 的条件。 |
Extension | Experimental |
| az datashare share-subscription |
使用 datashare 管理共享订阅。 |
Extension | Experimental |
| az datashare share-subscription cancel-synchronization |
请求取消同步。 |
Extension | Experimental |
| az datashare share-subscription create |
在帐户中创建 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription delete |
删除帐户中的 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription list |
列出帐户中的共享订阅。 |
Extension | Experimental |
| az datashare share-subscription list-source-share-synchronization-setting |
获取在共享上设置的同步设置。 |
Extension | Experimental |
| az datashare share-subscription list-synchronization |
列出共享订阅的同步。 |
Extension | Experimental |
| az datashare share-subscription list-synchronization-detail |
列出同步详细信息。 |
Extension | Experimental |
| az datashare share-subscription show |
获取帐户中的 shareSubscription。 |
Extension | Experimental |
| az datashare share-subscription synchronize |
启动副本。 |
Extension | Experimental |
| az datashare share-subscription wait |
将 CLI 置于等待状态,直到满足 datashare 共享订阅的条件。 |
Extension | Experimental |
| az datashare show |
获取共享。 |
Extension | Experimental |
| az datashare synchronization-setting |
使用 datashare 管理同步设置。 |
Extension | Experimental |
| az datashare synchronization-setting create |
创建 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting delete |
删除共享中的 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting list |
列出共享中的 synchronizationSettings。 |
Extension | Experimental |
| az datashare synchronization-setting show |
获取共享中的 synchronizationSetting。 |
Extension | Experimental |
| az datashare synchronization-setting wait |
将 CLI 置于等待状态,直到满足 datashare 同步设置的条件。 |
Extension | Experimental |
| az datashare trigger |
使用 datashare 管理触发器。 |
Extension | Experimental |
| az datashare trigger create |
创建触发器。 |
Extension | Experimental |
| az datashare trigger delete |
删除 shareSubscription 中的触发器。 |
Extension | Experimental |
| az datashare trigger list |
列出共享订阅中的触发器。 |
Extension | Experimental |
| az datashare trigger show |
在 shareSubscription 中获取触发器。 |
Extension | Experimental |
| az datashare trigger wait |
将 CLI 置于等待状态,直到满足 datashare 触发器的条件。 |
Extension | Experimental |
| az datashare wait |
将 CLI 置于等待状态,直到满足数据共享的条件。 |
Extension | Experimental |
az datashare create
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
创建共享。
az datashare create --account-name
--name --share-name
--resource-group
[--description]
[--share-kind {CopyBased, InPlace}]
[--terms]
示例
Shares_Create
az datashare create --account-name "Account1" --resource-group "SampleResourceGroup" --description "share description" --share-kind "CopyBased" --terms "Confidential" --name "Share1"
必需参数
共享帐户的名称。
共享的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Share description.
Share kind.
| 属性 | 值 |
|---|---|
| 接受的值: | CopyBased, InPlace |
Share terms.
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare delete
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
删除共享。
az datashare delete [--account-name]
[--ids]
[--name --share-name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
示例
Shares_Delete
az datashare delete --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
共享帐户的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
共享的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare list
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出帐户中的共享。
az datashare list --account-name
--resource-group
[--filter]
[--orderby]
[--skip-token]
示例
Shares_ListByAccount
az datashare list --account-name "Account1" --resource-group "SampleResourceGroup"
必需参数
共享帐户的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
使用 OData 语法筛选结果。
使用 OData 语法对结果进行排序。
Continuation Token.
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare list-synchronization
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出共享的同步。
az datashare list-synchronization --account-name
--name --share-name
--resource-group
[--filter]
[--orderby]
[--skip-token]
示例
Shares_ListSynchronizations
az datashare list-synchronization --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
必需参数
共享帐户的名称。
共享的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
使用 OData 语法筛选结果。
使用 OData 语法对结果进行排序。
Continuation token.
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare list-synchronization-detail
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
列出同步详细信息。
az datashare list-synchronization-detail --account-name
--name --share-name
--resource-group
[--consumer-email]
[--consumer-name]
[--consumer-tenant-name]
[--duration-ms]
[--end-time]
[--filter]
[--message]
[--orderby]
[--skip-token]
[--start-time]
[--status]
[--synchronization-id]
示例
Shares_ListSynchronizationDetails
az datashare list-synchronization-detail --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --synchronization-id "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
必需参数
共享帐户的名称。
共享的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
创建同步的用户的电子邮件。
创建同步的用户的名称。
创建同步的使用者的租户名称。
Synchronization duration.
同步的结束时间。
使用 OData 语法筛选结果。
同步消息。
使用 OData 语法对结果进行排序。
Continuation token.
同步开始时间。
Raw Status.
Synchronization id.
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare show
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
获取共享。
az datashare show [--account-name]
[--ids]
[--name --share-name]
[--resource-group]
[--subscription]
示例
Shares_Get
az datashare show --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
共享帐户的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
要检索的共享的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az datashare wait
命令组“datashare”是实验性的,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
将 CLI 置于等待状态,直到满足数据共享的条件。
az datashare wait [--account-name]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name --share-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
示例
暂停执行下一行 CLI 脚本,直到成功删除数据共享。
az datashare wait --account-name "Account1" --resource-group "SampleResourceGroup" --name "Share1" --deleted
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
共享帐户的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | 30 |
要检索的共享的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
Output format.
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |