How to run Azure Devops pipeline with the help service princple with just in time access using PIM

126 Views Asked by At

I have an Azure Devops pipeline to create VM, I created service connection using service principal with RBAC pipeline is working.

Now I need to create service connection using service principle with PIM (just in time access) with these pipeline need to run to create VM. What can I try next?

I tried using service principal with rbac.

1

There are 1 best solutions below

1
Ziyang Liu-MSFT On

According to official doc What can you manage in PIM, you cannot assign service principals as eligible to Microsoft Entra roles, Azure roles, and PIM for Groups. There is already a suggestion ticket Support PIM for service principals in Azure AD, if you want such a feature, you can monitor it and submit a vote.