# Azure

<figure><img src="https://762006384-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJXOXEifAmpyvNVL1to%2Fuploads%2FthB8sGXstxvLOnYdvba7%2FAzure%20rotations.jpg?alt=media&#x26;token=ebb0453e-857e-4226-9770-9658cffcab8a" alt=""><figcaption></figcaption></figure>

## Overview

In this section, you will learn how to rotate user credentials within the Azure network environment across various target systems. Rotation works on the devices configured and attached to the Azure Active Directory (Azure AD) which can also be your default directory.

KeeperPAM can rotate the password for Azure AD users, service accounts, local admin users, local users, managed services, databases and more.

### KeeperPAM Record Types

Configurations for the Azure Active Directory are defined in the **PAM Configuration** section of Keeper Secrets Manager.

Configurations for the Azure AD joined devices are defined in the **PAM Directory, PAM Machine,** and **PAM Database** record types. The credentials and user accounts are defined in **PAM User** records. The following table shows the supported Azure AD joined devices with Keeper Rotation and their corresponding PAM Record Type:

| Azure AD Joined Device   | Corresponding PAM Record Type |
| ------------------------ | ----------------------------- |
| Azure AD Domain Services | PAM Directory                 |
| Virtual Machines         | PAM Machine                   |
| Managed Databases        | PAM Database                  |

## Prerequisites for Rotation

Prior to rotating user credentials within your Azure environment, you need to make sure you have the following information and configurations in place:

1. All Azure AD joined devices that you want to use with Rotation need to be created and configured within your Azure Active Directory
2. To successfully configure and setup Rotation within your Azure Network, the following values are needed for your [PAM Configuration](https://docs.keeper.io/en/keeperpam/privileged-access-manager/getting-started/pam-configuration):

<table><thead><tr><th width="174">Field</th><th>Description</th></tr></thead><tbody><tr><td><strong>Client ID</strong></td><td>The application/client id (UUID) of the Azure application</td></tr><tr><td><strong>Client Secret</strong></td><td>The client credentials secret for the Azure application</td></tr><tr><td><strong>Subscription ID</strong></td><td>The UUID of your subscription to use Azure services (i.e. Pay-As-You-GO)</td></tr><tr><td><strong>Tenant ID</strong></td><td>The UUID of the Azure Active Directory</td></tr></tbody></table>

3. Make sure all the Azure services or Azure AD joined devices you plan on using for rotation have access to the Azure Active Directory.
4. Create a custom role to allow application to access/perform actions on various Azure resources. For more information see the [Azure Environment Setup](https://docs.keeper.io/en/keeperpam/privileged-access-manager/getting-started/pam-configuration/azure-environment-setup) document.

## Setup Steps&#x20;

At a high level, the following steps are needed to successfully rotate passwords on your Azure network:

1. Create Shared Folders to hold the PAM records involved in rotation&#x20;
2. Create PAM Machine, PAM Database and PAM Directory records representing each resource
3. Create PAM User records that contain the necessary account credentials for each resource
4. Link the PAM User record to the PAM Resource record.
5. Assign a Secrets Manager Application to all of the shared folders that hold the PAM records
6. Install a Keeper Gateway and add it to the Secrets Manager application
7. Create a PAM Configuration with the Azure environment setting
8. Configure Rotation settings on the [PAM User](https://docs.keeper.io/en/keeperpam/privileged-access-manager/getting-started/pam-resources/pam-user) records

### Use Cases: <a href="#operating-systems" id="operating-systems"></a>

* [Azure AD Users](https://docs.keeper.io/en/keeperpam/privileged-access-manager/password-rotation/rotation-use-cases/azure/azure-ad-users)
* [Azure VM Local Users](https://docs.keeper.io/en/keeperpam/privileged-access-manager/password-rotation/rotation-use-cases/azure/azure-vm-user-accounts)
* [Azure Managed Database](https://docs.keeper.io/en/keeperpam/privileged-access-manager/password-rotation/rotation-use-cases/azure/managed-database)
* [Azure App Secret](https://docs.keeper.io/en/keeperpam/privileged-access-manager/password-rotation/rotation-use-cases/azure/azure-client-secret-rotation)
