Azure 服务连接

Azure Service Connections

我正在尝试在 Azure DevOps 中创建发布管道。我在 Azure 中创建了一个应用服务资源,我想通过我的管道将我的网络应用部署到这个应用服务。为此,我需要创建一个 ARM 服务连接。你能帮我理解服务连接类型之间的区别吗?谢谢!

  1. 服务主体(自动)和服务主体(手动)有什么区别?
  2. 服务主体、托管标识和发布配置文件之间有什么区别?

What is the difference between Service Principal (automatic) and Service Principal (manual) ?

Service Principal (automatic): 会在Azure AD中自动为你create an AD App along with the service principal并在服务连接中使用。

Service Principal (manual):需要在Azure AD中手动create the AD App along with the service principal,在创建服务连接时进行配置。

What is the difference between service principal, managed identity and publish profile?

当您在 Azure AD 中自动为您创建 AD App(App Registration) in Azure AD, it will create a service principal 时。

managed identity本质上是 Azure 管理的 AAD 中的服务主体,您可以使用它访问订阅中的 azure 资源。

publish profile 是一个用于发布你的网络应用程序或网络作业的文件,它包含一个用户名和密码,它使用基本身份验证来部署你的网络应用程序,如果你使用服务 principal/managed 身份,它使用 Azure AD 身份验证。