Describe the bug
When using self-hosted agents and Managed Identity instead of service principal the initialize step fails. In my case I'm using VMSS.
Steps to reproduce
- Deploy self-hosted agents and enable Managed Identity. Configure new Agent Pool and update pipelines to use the new pool.
- Update the connect step in
sharedSteps.yml to: Connect-AzAccount -TenantId $(ARM_TENANT_ID) -SubscriptionId $(ARM_SUBSCRIPTION_ID) -Identity
- Run Pull pipeline.
Screenshots
Initialize will fail on Invoke-AzOpsPull.

If I add Import-Module AzOps -Force to the initialize step I get the following error instead.

Describe the bug
When using self-hosted agents and Managed Identity instead of service principal the initialize step fails. In my case I'm using VMSS.
Steps to reproduce
sharedSteps.ymlto:Connect-AzAccount -TenantId $(ARM_TENANT_ID) -SubscriptionId $(ARM_SUBSCRIPTION_ID) -IdentityScreenshots
Initialize will fail on
Invoke-AzOpsPull.If I add
Import-Module AzOps -Forceto the initialize step I get the following error instead.