az devcenter dev dev-box
Note
此参考是 Azure CLI(版本 2.67.0 或更高版本) 的开发中心 扩展的一部分。 该扩展会在首次运行 az devcenter dev-box 命令时自动安装。 了解更多关于扩展的信息。
管理开发框。
命令
az devcenter dev dev-box align
将开发框与池当前池配置对齐。
az devcenter dev dev-box align --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心保持一致
az devcenter dev dev-box align --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点对齐
az devcenter dev dev-box align --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box approve
批准创建开发框。
az devcenter dev dev-box approve --dev-box-name --name
--project --project-name
--user-id
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
示例
使用开发人员中心批准
az devcenter dev dev-box approve --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点批准
az devcenter dev dev-box approve --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box capture-snapshot
捕获开发框的手动快照。
az devcenter dev dev-box capture-snapshot --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心捕获快照
az devcenter dev dev-box capture-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点捕获快照
az devcenter dev dev-box capture-snapshot --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box create
创建开发框。
az devcenter dev dev-box create --dev-box-name --name
--pool --pool-name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心创建
az devcenter dev dev-box create --pool-name "LargeDevWorkStationPool" --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点创建
az devcenter dev dev-box create --pool-name "LargeDevWorkStationPool" --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
此计算机所属的开发框池的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box delay-action
延迟操作。
az devcenter dev dev-box delay-action --action-name
--delay-time
--dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心延迟操作
az devcenter dev dev-box delay-action --dev-center-name "ContosoDevCenter" --project-name "DevProject" --delay-time "04:30" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点延迟操作
az devcenter dev dev-box delay-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --delay-time "04:30" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
将在开发框中执行的操作的名称。
计划作时间的延迟时间跨度。 设置 HH:MM 格式。
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box delay-all-actions
延迟所有操作。
az devcenter dev dev-box delay-all-actions --delay-time
--dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心延迟所有操作
az devcenter dev dev-box delay-all-actions --dev-center-name "ContosoDevCenter" --project-name "DevProject" --delay-time "04:30" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点延迟所有操作
az devcenter dev dev-box delay-all-actions --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --delay-time "04:30" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
从所有操作的最早计划时间开始的延迟时间跨度。 设置 HH:MM 格式。
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box delete
删除开发框。
az devcenter dev dev-box delete --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
[--yes]
示例
使用开发人员中心删除
az devcenter dev dev-box delete --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点删除
az devcenter dev dev-box delete --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box list
列出用户的开发框、项目和用户的开发人员中心中的开发框,或列出调用方有权在开发人员中心内访问的开发框。
az devcenter dev dev-box list [--dev-center --dev-center-name]
[--endpoint]
[--project --project-name]
[--user-id]
示例
列出开发人员中心中的所有开发框
az devcenter dev dev-box list --dev-center-name "ContosoDevCenter"
使用终结点列出开发人员中心中的所有开发框
az devcenter dev dev-box list --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/"
使用开发人员中心按用户列出
az devcenter dev dev-box list --dev-center-name "ContosoDevCenter" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点按用户列出
az devcenter dev dev-box list --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --user-id "00000000-0000-0000-0000-000000000000"
使用开发人员中心按用户和项目列出
az devcenter dev dev-box list --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点按用户和项目列出
az devcenter dev dev-box list --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box list-action
列出开发框上的操作。
az devcenter dev dev-box list-action --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心列出操作
az devcenter dev dev-box list-action --dev-center-name "ContosoDevCenter" --project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点列出操作
az devcenter dev dev-box list-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box list-operation
列出过去 90 天内发生的开发框的操作。
az devcenter dev dev-box list-operation --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心列出操作
az devcenter dev dev-box list-operation --dev-center-name "ContosoDevCenter" --project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点列出操作
az devcenter dev dev-box list-operation --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --name "myDevBox" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box list-snapshot
列出开发框的快照。
az devcenter dev dev-box list-snapshot --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心列出快照
az devcenter dev dev-box list-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点列出快照
az devcenter dev dev-box list-snapshot --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box repair
尝试自动修复步骤来解决 Dev Box 上的常见问题。 开发框可能会在此操作期间重启。
az devcenter dev dev-box repair --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心进行修复
az devcenter dev dev-box repair --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点修复
az devcenter dev dev-box repair --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box restart
重启开发框。
az devcenter dev dev-box restart --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心重启
az devcenter dev dev-box restart --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点重启
az devcenter dev dev-box restart --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box restore-snapshot
将开发框还原到指定的快照。
az devcenter dev dev-box restore-snapshot --dev-box-name --name
--project --project-name
--snapshot-id
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
使用开发人员中心还原快照
az devcenter dev dev-box restore-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
使用终结点还原快照
az devcenter dev dev-box restore-snapshot --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
指定用于还原作的快照 ID 的必需参数。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box set-active-hours
允许用户为 Dev Box 设置自己的活动时间,覆盖池级别设置的默认值。
az devcenter dev dev-box set-active-hours --dev-box-name --name
--end-time-hour
--project --project-name
--start-time-hour
--time-zone
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心设置工作时间
az devcenter dev dev-box set-active-hours --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17"
使用终结点设置活动小时数
az devcenter dev dev-box set-active-hours --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --time-zone "America/Los_Angeles" --start-time-hour "9" --end-time-hour "17"
必需参数
开发框的名称。
活动小时数的结束时间。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
活动时间的开始时间。
活动时间的时区。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box show
获取开发框。
az devcenter dev dev-box show --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心
az devcenter dev dev-box show --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点
az devcenter dev dev-box show --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box show-action
获取操作。
az devcenter dev dev-box show-action --action-name
--dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心获取操作
az devcenter dev dev-box show-action --dev-center-name "ContosoDevCenter" --project-name "DevProject" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点获取操作
az devcenter dev dev-box show-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
将在开发框中执行的操作的名称。
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box show-operation
获取开发框上的操作。
az devcenter dev dev-box show-operation --dev-box-name --name
--operation-id
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心获取操作
az devcenter dev dev-box show-operation --dev-center-name "ContosoDevCenter" --project-name "DevProject" --name "myDevBox" --operation-id "f5dbdfab-fa0e-4831-8d13-25359aa5e680" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点获取操作
az devcenter dev dev-box show-operation --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --name "myDevBox" --operation-id "f5dbdfab-fa0e-4831-8d13-25359aa5e680" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
开发框中的操作的 ID。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box show-remote-connection
获取远程连接信息。
az devcenter dev dev-box show-remote-connection --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心获取远程连接
az devcenter dev dev-box show-remote-connection --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
使用开发人员中心获取远程连接
az devcenter dev dev-box show-remote-connection --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box show-snapshot
按快照 ID 获取快照。
az devcenter dev dev-box show-snapshot --dev-box-name --name
--project --project-name
--snapshot-id
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心获取快照
az devcenter dev dev-box show-snapshot --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
使用终结点获取快照
az devcenter dev dev-box show-snapshot --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000" --snapshot-id "CPC_f5dbdfab-fa0e-4831-8d13-25359aa5e680"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
指定用于还原作的快照 ID 的必需参数。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box skip-action
跳过操作。
az devcenter dev dev-box skip-action --action-name
--dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--user-id]
示例
使用开发人员中心跳过操作
az devcenter dev dev-box skip-action --dev-center-name "ContosoDevCenter" --project-name "DevProject" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
使用终结点跳过操作
az devcenter dev dev-box skip-action --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --name "myDevBox" --action-name "schedule-default" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
将在开发框中执行的操作的名称。
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box start
启动开发框。
az devcenter dev dev-box start --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--no-wait]
[--user-id]
示例
开始使用开发人员中心
az devcenter dev dev-box start --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
开始使用终结点
az devcenter dev dev-box start --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 devcenter dev dev-box stop
停止开发框。
az devcenter dev dev-box stop --dev-box-name --name
--project --project-name
[--dev-center --dev-center-name]
[--endpoint]
[--hibernate {false, true}]
[--no-wait]
[--user-id]
示例
停止使用开发人员中心
az devcenter dev dev-box stop --name "MyDevBox" --dev-center-name "ContosoDevCenter" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
停止使用终结点
az devcenter dev dev-box stop --name "MyDevBox" --endpoint "https://8a40af38-3b4c-4672-a6a4-5e964b1870ed-contosodevcenter.centralus.devcenter.azure.com/" --project-name "DevProject" --user-id "00000000-0000-0000-0000-000000000000"
必需参数
开发框的名称。
项目的名称。 使用 az configure -d project=<project_name> 配置默认值。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
开发人员中心的名称。 使用 az configure -d dev-center=<dev_center_name> 配置默认值。
开发人员资源的 API 终结点。 使用 az configure -d endpoint=<endpoint_uri> 配置默认值。
用于休眠开发框的可选参数。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
用户的 AAD 对象 ID。 如果值为“me”,则标识取自身份验证上下文。
| 属性 | 值 |
|---|---|
| 默认值: | me |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |