In part 1 I showed how to add Microsoft Azure to vRA. In this part 2 I will show how to add Microsoft Azure with Non-EA account to vRealize Business which will provide cost information for your MS Azure account.
I have to apologies for taking so long to publish this but I had the blog written and ready to go but it was created with vRB 7.2, which had a lot of bugs with Azure integration and the documentation was not very thorough and made use of the old Azure portal interface for configuration. The problem I ran into can be view in the community post here, but with a lot of views and not responses I decided to wait until vRB 7.3 to review this again.
Prerequisites:
- You must have a Microsoft Azure Enterprise Agreement (EA) or non-EA account.
- If using MS Azure non-EA you must have one of the following credits offers:
- Pay-as-you-go
- MSDN
- Monetary commitment
- Monetary credit
To add a non-EA account you will also need the following information during configuration so please make sure you have this available. I am also providing the steps on how to configure your non-EA account.
- Client ID
- When you register a client app, such as a console app, you receive a Client ID. The Client ID is used by the application to identify themselves to the users that they are requesting permissions from.
- Location of Purchase
- To get the location of purchase, login to Azure portal at https://account.windowsazure.com/Profile
- Enter the country code of the Azure purchase location such as IN, US, AU, CN, DE.
- Tenant ID
- Value can be retrieved from the Azure default Active directory when you select manage -> properties in menu.
- Secret Key
- Value will be defined during app registration.
How to configure your non-EA account Azure account to retrieve Client ID : (This is the tricky part in my opinion)
- Login to Azure Portal.
- I am using the new Azure portal and not the classic portal.
- Old Azure portal: https://manage.windowsazure.com
- New Azure portal: https://portal.azure.com
- I am using the new Azure portal and not the classic portal.
- First we need to setup the user account.
- Select Azure Active Directory
- Verify the the Default Directory is displayed at top of screen.
- Select manage -> users and groups
- Select manage -> All users
- Click “New user”
- Enter Name
- Enter Username
- should be in UPN format
- Leave rest default
- Click Directory Role
- Change to Global Administrator or Limited Administrator
- Check the box to Show Temporary Password
- Copy the password
- Click Create
- Logout of Azure
- Login to Azure with newly create username and password
- You will receive a prompt to change password, do so and set the password to you company standards.
- Select Azure Active Directory from menu
- Select Manage -> App Registrations
- Click New application registration
- Enter name
- For instance vRealize Business.
- This can be anything descriptive
- Leave application type as “Web app / API”
- Change Sign-on URL to
- Click Create
- Select the newly created application
- On the right hand side settings panel, select keys
- Enter Description
- Pick the expiration
- Click Save
- Wait for the save to finish and COPY the value that appear since you will not be able to retrieve it later. (this wil be needed in vRB as the Client Secret)
- Scroll to left to show the registered app
- Copy the Application ID (this is needed in vRB as the Client ID)
- Under API access, select requirement permissions
- Click Add
- Click Select an API
- Select Windows Azure Service Management API
- Click Select
- Click Delegate permissions
- Verify that “Access Azure Service Management as organization users (preview) is enabled
- Click Select
- Click Done
- In the left side navigation Select More services.
- Type Subscriptions in the filter field
- Select Subscriptions
- (You can also find it under general -> Subscriptions)
- If see message “No subscriptions in <domain> (default directory) then you need to configure permissions first for the AD user.
- Login with user that has owner role to subscription.
- Select Subscriptions
- Select Access Control (IAM)
- Click + Add
- Select role
- Select the Azure AD user below
- Click Save
- Log out and log back in with Azure AD user.
- Select Subscriptions
- Select the Subscription
- Select Access Control (IAM)
- Click + Add
- Select role = reader
- In select field, TYPE the application name defined earlier.
- Select the application.
- Click Save
How to configure vRealize Business and manage your non-EA Microsoft Azure account
Login to standalone vRB or to your vRA integrated environment. In my case I logging into my vRA which has vRB integrated.
- Select Administration -> Business management
- Select Manage Hybrid Cloud & Public Cloud Accounts
- Select Microsoft Azure -> Non-Enterprise Agreement
- Click Plus sign to add
- Enter Name or Description
- Enter the Client ID
- The application ID value that was copied from the registered app.
- Enter Location of Purchase.
- If not sure review your Azure Profile for this information.
- Enter Tenant ID
- The Directory ID of the Azure default active directory.
- Enter Client Secret
- The value copied from the app registration key.
- This should be successful and will start to sync information.
- Verify sync status
- Now you can select Expenses -> Public Cloud (Azure) -> overview & Non-EA VM Stats.
Troubleshooting
VMware has troubleshooting pdf guide of vRealize Business for Cloud.
http://pubs.vmware.com/vrbforcloud-72/topic/com.vmware.ICbase/PDF/vRBforCloud-troubleshoot.pdf Page 31 – 32 has some Azure troubleshooting.
If you run into problems with Sync, SSH to the vRB appliance and review the log file (/var/log/vrb/itfm-server/itfm-server.log). It provides valuable information.
KB 2146798 provides a solution for when you are unable to successfully collect data from Azure.
Hi,
Many thanks for producing this guide, it’s excellent.
I’m getting an issue during the login phase, it displays the following error:
“Invalid credentials: Could not authenticate your account using specified credentials”
I’m 99% sure I have followed the instructions and verified the details but not sure how to fix this?
LikeLike
Hi Paul, my apologies for not reviewing my comment in a reasonable time. I hope you have been able to resolve your problem but if you not then please check back on my blog since I forgot to add my step 17, which is to add API access for the app registration.
LikeLike