Forum Discussion
Matt McNabb
Oct 05, 2019Iron Contributor
Connect-AzAccount with Managed Service Identity
I'm running PowerShell in the context of an Azure Web App that has a System Managed Service Identity configured. Currently, I can access the Key Vault by doing this: $MsiHeader = @{'Sec...
Pwd9000
Nov 16, 2019Copper Contributor
You should be able to just do:
$null = Connect-AzAccount -Identity
Given the Web App has been assigned a system assigned managed identity, is part of the right RBAC role and the identity is assigned in IAM to the resources you are interacting with.
$null = Connect-AzAccount -Identity
Given the Web App has been assigned a system assigned managed identity, is part of the right RBAC role and the identity is assigned in IAM to the resources you are interacting with.