Setting Permissions for Managed Identity (MSI)
Explore how to automate permission assignments for Managed Identities (MSI) in Azure using PowerShell and Azure CLI tasks within a CI/CD pipeline. Understand how to retrieve the object ID, assign contributor roles, and integrate these steps to manage access for services like storage accounts and function apps. This lesson guides you through streamlining identity and access management in your event-driven architectures.
We'll cover the following...
We'll cover the following...
PowerShell task to get MSI object id
To run the PowerShell script that gets an object id (or Azure CLI scripts), we will use the pipeline task AzureCLI@1. This task (and script) does the following:
- Gets the object id from Azure Active Directory by app service display name.
- Prints the variable app service name
$(appServiceName)and object id (