Published on

Creating User Assigned Managed Identity in Microsoft Azure Portal

Authors

Introduction

In this guide, we will walk you through the steps to create a User Assigned Managed Identity in the Microsoft Azure Portal. Managed Identities are a great way to manage access to your Azure resources securely without the need for managing credentials.

Table of Contents

Prerequisites

Before you begin, ensure you have the following:

  • An active Azure subscription. Follow along the article to get started with a Free Azure Subscription.
  • Appropriate permissions (Contributor, Admin, etc) to create and manage identities in your Azure account.

Steps to Create a User Assigned Managed Identity

Step 1: Navigate to the Azure Portal

Go to the Azure Portal and log in with your Azure account credentials.

Step 2: Create a New Managed Identity

  1. In the Azure Portal, search for "Managed Identity" in the search bar and select User Assigned Managed Identity it from the results.
Select User Assigned Managed Identity
  1. Create the user assigned managed identity and fill in the required details such as the Subscription, Resource Group, and Name for the Managed Identity.
Select User Assigned Managed Identity
  1. Click on the "Review + create" button, and then click "Create" to finalize the creation of the Managed Identity.

Step 3: Assign the Managed Identity to a Resource

  1. Navigate to the resource you want to assign the Managed Identity to (e.g., a Virtual Machine, App Service, etc.).
  2. In the resource's menu, select "Identity" under the "Settings" section.
  3. Choose "User Assigned" and click on the "Add" button.
  4. Select the Managed Identity you created earlier and click "Add".

Step 4: Grant Permissions to the Managed Identity

  1. Go to the resource you want the Managed Identity to access.
  2. In the resource's menu, select "Access control (IAM)".
  3. Click on the "Add role assignment" button.
  4. Choose the appropriate role for the Managed Identity (e.g., Reader, Contributor, etc.).
  5. Select the Managed Identity from the list and click "Save".

Conclusion

You have successfully created a User Assigned Managed Identity in the Microsoft Azure Portal and assigned it to a resource. Managed Identities simplify the management of credentials and enhance the security of your Azure resources. For more information, refer to the official Azure documentation.

Additional Resources