Automating Azure Account Information Retrieval

To automate Azure account information retrieval:

  • Create a new Azure application.
  • Create new instances of the following identifiers:
    • Azure Client ID
    • Azure Secret
    • Azure Tenant ID
  • Enable the new application to make changes to your Azure account.
  • Add the new identifiers to HPE CV settings.

To perform these tasks, complete the following steps:

  1. Log in to the Azure portal and go to the Azure Active Directory.
  2. Select App Registrations.
  3. Click New Registration.
  4. Complete the following steps:
    1. Enter a name for the application in the name field. (Example: HPE CV). Record this information for future use.
    2. Under Redirect URIC select Web.
    3. Type any valid URL in the Redirect URI field. (Example: http://localhost:8080).
  5. Click Register.
  6. Navigate to Apps Registration and complete the following steps:
    1. Click the application name.
    2. Click Certificates & Secrets.
    3. Click New Client Secret.
    4. Select a time frame.
  7. Click Add. This generates a Value. Record the Value that is generated for future use.

    Note: The Value is the Azure Secret that you will add to HPE CV Settings.

  8. Close the Certificates & Secrets pane, and then navigate to Apps Registration.

  9. Click the registration name.
  10. Copy the Application (client) ID and the Directory (tenant) ID, and record these values for future use. (Note that you will need to add both the client ID and the tenant ID to your HPE CV settings.)
  11. Navigate to the Subscriptions section of the Azure portal and click the Subscription ID that contains the resources you want to access.
  12. Grant the new application privileges to make changes in your Azure account by completing these steps:
    1. In the Subscription section, click Access Control (IAM)and then click Add.
    2. Select Add Role Assignment.
    3. Select the Contributor role.
    4. In the Select field, type and search for the application name that you specified in Step 4. When the application is found, select it.
    5. Click Save.
  13. Add the Client ID, Tenant ID, and Secret that you obtained and recorded in the previous steps to HPE CV settings:
    1. In the HPE CV main menu, click Cloud Accounts.
    2. Select the Cloud Account that you created when you registered your cloud provider, and then click Edit Cloud Account from the Actions menu.
    3. Enter your Client ID, Tenant ID, and Secret in the appropriate fields, and then click Next.
    4. Select the users who you want to access the cloud account, and then click Save.