你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az devops service-endpoint

管理服务终结点/连接。

命令

az devops service-endpoint azurerm

管理 Azure RM 服务终结点/连接。

az devops service-endpoint azurerm create

创建 Azure RM 类型服务终结点。

az devops service-endpoint create

使用配置文件创建服务终结点。

az devops service-endpoint delete

删除服务终结点。

az devops service-endpoint github

管理 GitHub 服务终结点/连接。

az devops service-endpoint github create

创建 GitHub 服务终结点。

az devops service-endpoint list

列出项目中的服务终结点。

az devops service-endpoint show

获取服务终结点的详细信息。

az devops service-endpoint update

更新服务终结点。

az devops service-endpoint create

使用配置文件创建服务终结点。

可以在此处了解有关此 https://aka.ms/azure-devops-service-endpoint-config内容的详细信息。

az devops service-endpoint create --service-endpoint-configuration
                                  [--detect {false, true}]
                                  [--encoding {ascii, utf-16be, utf-16le, utf-8}]
                                  [--org]
                                  [--project]

必需参数

--service-endpoint-configuration

包含服务终结点请求的配置文件。

可选参数

--detect

自动检测组织。

接受的值: false, true
--encoding

输入文件的编码。

接受的值: ascii, utf-16be, utf-16le, utf-8
默认值: utf-8
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。

az devops service-endpoint delete

删除服务终结点。

az devops service-endpoint delete --id
                                  [--deep]
                                  [--detect {false, true}]
                                  [--org]
                                  [--project]
                                  [--yes]

必需参数

--id

要删除的服务终结点的 ID。

可选参数

--deep

特定于在自动流中创建的 AzureRM 终结点。 指定后,也会在 Azure 中删除相应的 AAD 应用程序。

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。

--yes -y

不提示确认。

az devops service-endpoint list

列出项目中的服务终结点。

VssJsonCollectionWrapper 的 rtypelist。

az devops service-endpoint list [--detect {false, true}]
                                [--org]
                                [--project]

可选参数

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。

az devops service-endpoint show

获取服务终结点的详细信息。

az devops service-endpoint show --id
                                [--detect {false, true}]
                                [--org]
                                [--project]

必需参数

--id

服务终结点的 ID。

可选参数

--detect

自动检测组织。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。

az devops service-endpoint update

更新服务终结点。

az devops service-endpoint update --id
                                  [--detect {false, true}]
                                  [--enable-for-all {false, true}]
                                  [--org]
                                  [--project]

必需参数

--id

服务终结点的 ID。

可选参数

--detect

自动检测组织。

接受的值: false, true
--enable-for-all

允许所有管道访问此服务终结点。

接受的值: false, true
--org --organization

Azure DevOps 组织 URL。 可以使用 az devops configure -d organization=ORG_URL 配置默认组织。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。示例: https://dev.azure.com/MyOrganizationName/.

--project -p

项目的名称或 ID。 可以使用 az devops configure -d project=NAME_OR_ID 配置默认项目。 如果未配置为默认配置或通过 git 配置进行选取,则为必需。