VMware {code}

Friday, 28 July 2017

vRA Integration with Microsoft Azure

There are lot of articles and information already available around this topic. But I thought will do this myself in my way.

In this blog I will talk about deploy/manage Azure workload from vRealize automation Portal. This is not a very often seen used case in any organization but definitely something good to learn. I used MS Azure Public Cloud and vRA 7.3 for this blog. Similar thing can be achieved using Azure Stack as well, but I am yet to explore that option. vRA 7.2 is also fully supported for this.




What do we need to get started?

A subscription to Azure portal. You can use the trial one that gives you about $13K credit to play around Azure portal. Once you have that we need to setup below items and record their names and IDs.



  • Subscription ID
  • Tenant ID
  • Storage Account
  • Resource Group
  • Location
  • Virtual Network
  • Client Application ID
  • Client Application Secret Key
  • Virtual Machine Image

And also we need a vRealize Automation environment atleast installed and ready.



Configure Azure

Subscription and Tenant ID

You can get this from Azure CLI commands also. See Azure CLI section below.

1. Assuming you have subscribed the Azure and you have logged in to the Portal. You should see you Dashboard with the Credit Limit and Days remaining for trial.

Click on the 'Billing' tab on the left side bottom.



2. This will open the page where you can see the Subscription details. Note down the Subscription ID.


3. Click on the Help (?) button on the top right. This will give you the Tenant ID. Record it somewhere.



Storage Account


4. Click on the Storage accounts tab on the left side. Click on the Create Storage Account if you don't have any account at all. You can also click on +Add button.



5. It will now open a Form type of page to enter the details. Enter the required details. Remember there are certain mandatory items to be filled (with red astrix).

Once done click Create.



6. You will see your Storage account created successfully.



7. You can click on the Storage Account name and see the details.



Virtual Network

8. Now lets create the Virtual Network. Click on the Create Virtual network if you don't have any account at all. You can also click on +Add button.



9. Like previous step this will also open a Form to fill out the details. Fill the details as per your choice.

Once done click Create.



10. You can see the Virtual Network created.



11. Click on the newly created network to see the details.



App Registration

12. Click on the Azure Active Directory on the left and then click on App Registration.




13. Give your app a name and provide a URL to Sign-On (it could be anything but just for sake of test you can enter vRA URL).

Click Create.



14. Once Application is created, make sure to note down the Application ID. Click on it to open next page.



Generate Key

15. Click on Keys. Provide a Description and Expiry duration. Click Save. There will be a Key Value generated.

Note: Do not close this page without recording the Key Value.



Application Permissions

16. Once you have saved the Key Value then click on Required permissions → Click Add Select an API Select Windows Azure Service Management API.



17. Now Select permission. Under Application Permissions choose Access Azure Service Management as organization users.



18. Once done successfully it should look something like this.



19. You can verify the permissions with step 17 above as below.



Access Control

20. Now finally we need to setup the Access control to connect AD application we just created in previous to Azure subscription. Click on the Subscription.



21. Then click your Free trial account → Access control (IAM)Add → Select the Role 'Contributor' → Search your application and Select it.

Click Save.



22. Now you should be able to see the newly presented access & Role for your Application.




Azure CLI

At this point take a deep breadth if all went well. Now the last thing we need is the VM Image from where the VM will deploy. For this you can either use Windows Powershell or Azure CLI.

Also you can create a VM in Azure and save it as Image. That Image can also be used for deployment.

More information on Azure CLI installation can be found here. Azure CLI

Once you have a Linux server up and ready run these commands assuming you have RHEL or CentOS.

a. Install Python if you don't have it already.

# yum install python

b. Install the Pre-requisites,

For CentOS 7.1 or 7.2

# sudo yum check-update; sudo yum install -y gcc libffi-devel python-devel openssl-devel
For RedHat 7.2

# sudo yum check-update; sudo yum install -y gcc libffi-devel python-devel openssl-devel

c. Install the CLI with one curl command

curl -L https://aka.ms/InstallAzureCli | bash

d. Restart your command shell for changes to take effect.

exec -l $SHELL

e. Run the CLI from the command prompt once again to update the az components.

# curl -L https://aka.ms/InstallAzureCli | bash


Lets get the VM Image.

1. Goto /root/bin folder.

# cd /root/bin

Run the 'az' command. all the azure commands starts with 'az'.

# az



2. You will see a list of commands available. 



3.  You need to first login to Azure Subscription.

#az login

Once you enter the command, it will provide you the URL and a key to authenticate. Open the Web Browser and enter the URL, and follow the instructions.









After successful authentication you will see the Subscription details. This will also mean that you have successfully logged into your Azure Subscription.



You can also type # az account list to see the account details.



4. Set the Account to 'Free Trial'.



5. Run this command to see the Images available in the Location. This is for Linux (Ubuntu).

# az vm image list --location SouthIndia --publisher Canonical --offer UbuntuServer -sku 16.04-LTS

Remember this command can be broken down into pieces to see other Publishers and SKUs.



6. Another Example for Windows Images.




Setup vRealize Automation

At this point you should have the below Azure information ready to incorporate into vRA.
  • Subscription ID
  • Tenant ID
  • Storage Account
  • Resource Group
  • Location
  • Virtual Network
  • Client Application ID
  • Client Application Secret Key
  • Virtual Machine Image
1. Login to your vRA and goto Administration vRO ConfigurationEndpoint Plug-in → Select Azure from drop down.



2. Give it a Name and Description.



3.  Enter the details as shown in the picture.

Click Finish.



4.  Create a Reservation for Azure. Click on Infrastructure Reservation New Azure



5. Provide a Name and Select the BG. Set Priority and Enable the Reservation.



6. Click Next or Select Resources tab → Set the details as below in picture. 





7. Click on Network tab and add the Virtual Network from Azure. However, I did not add this here.


8. Create the Blueprint. Click on Design → Blueprints → New



9. Drag the Azure Machine type Blueprint to the Canvas. Add a Name.



10. In Build Information, select the Location from the Drop Down and enter the VM Image that we got from the Azure CLI.



11.  Under the same tab 'Build Information' give the Authentication details that we setup in the Azure. Select the Instant Size, I choose the smallest one just for the test.



12.  Under Machine Resource, give the Azure Resource Group name.



13.  Under Storage provide the Azure Storage account name.



14. Under Network you can provide the vNet Name and Subnet Name. Since I didn't give this information in Reservations, so I left it blank here as well.

Click Finish.



15. Publish the Blueprint.



16. Create the Catalog for it. I haven't shown how to create these items in details since these are very straight forward steps.

a. Create a Service.




b. Attach this Service to Catalog.




c. Create Entitlement.



17. Now lets request a Machine from the vRA Catalog.



18. Enter the Description and Click Submit.



19.  It will now start to deploy a VM in Azure.



20. The Request is now successful in vRA.



21. We can see the vramachine6 is deployed in the Items.



22.  In Azure Virtual Machines we can see the VM is fully deployed and ready.



23. You can click on the VM to see the detailed view. Remember VM will not have the Public IP assigned to it. This task will have to be done manually.



24. Once the VM is deployed there are few things you can do through Action Itemas, example, Manage Public IP, Delete, Stop, etc... 


74 comments:

  1. Microsoft azure is easy to learn, I would like to say thanks for providing these content Azure Online Training

    ReplyDelete
  2. Super collection thanks for sharing and keep update. For more information Azure Online Hyderabad

    ReplyDelete
  3. Your thinking toward the respective issue is awesome also the idea behind the blog is very interesting which would bring a new evolution in respective field. Thanks for sharing.

    aws training in chennai

    selenium training in chennai

    ReplyDelete
  4. You have provided a nice article, Thank you very much for this one. And I hope this will be useful for many people. And I am waiting for your next post keep on updating these kinds of knowledgeable things
    RPA Training in Chennai
    Selenium Training in Chennai
    RPA Training
    RPA Training Institute in Chennai
    Best selenium training in chennai
    Best selenium Training Institute in Chennai

    ReplyDelete
  5. Brilliant ideas that you have share with us.It is really help me lot and i hope it will help others also.update more different ideas with us.
    Cloud Computing Training in Nungambakkam
    Cloud Computing Training in Mogappair
    Cloud computing Training institutes in Bangalore
    Cloud Computing Training in Karapakkam

    ReplyDelete
  6. Nice post ! Thanks for sharing valuable information with us. Keep sharing..
    Azure Online Training Bangalore

    ReplyDelete
  7. You won't believe me, but I was planning to write a blog very similar to the one you have posted here. Great work!

    Python training In Navalur

    AWS Training In Navalur

    ReplyDelete
  8. Interesting article, it was nice to visit your site. The way of presentation is well. Thanks for sharing!!
    MS Azure Online Training

    ReplyDelete
  9. Interesting blog great information,thanks for sharing.Looking for new posts.
    cloud computing computing courses azure

    ReplyDelete
  10. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me
    microsoft azure training in bangalore
    rpa training in bangalore
    rpa online training

    ReplyDelete
  11. Great post and creative ideas. I am happy to visit and read useful articles here. I hope you continue to do the sharing through the post to the reader.

    AWS Online Training

    ReplyDelete
  12. Amazing post! Thanks a lot for sharing! Hope to see more in future!

    Gain expertise in one of the hottest fields in IT and master the architectural principles and services of the top cloud platform with our Cloud Computing certification course, now with Manipal ProLearn Career Leap Assurance. Click the below link to know more!
    Post Graduate Certificate Program in Cloud Computing

    ReplyDelete
  13. Nice to see your blog and most beautiful images. Am waiting your next valuable blog.
    I want like to share some information with you About the On Job Support.

    ReplyDelete
  14. Very impressive article! The blog is highly informative and has answered all my questions. To introduce about our company and the activities, B2B Contact Lists is a database provider that helps you to boost your sales & grow your business through well-build Microsoft (MS) Azure Stack

    ReplyDelete
  15. Instagram Trends

    From Stories to Instagram TV the Instagram has evolved and we can see the updates with popular Instagram Trends, here we have got everything covered for you.
    Famous hashtag for instagram, igtv, instagram followers, instagram hashtag, instagram hashtags

    ReplyDelete
  16. Very impressive article! The blog is highly informative and has answered all my questions.
    To introduce about our company and the activities, B2b contact list is a database provider
    that helps you to boost your sales & grow your business through well-build Microsoft (MS) Azure Stack Email list

    ReplyDelete
  17. Thanks for sharing this blog.This article gives lot of information.
    MS Azure Online Training

    ReplyDelete
  18. Really a awesome blog for the freshers. Thanks for posting the information.microsoft azure training in bangalore

    ReplyDelete
  19. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Training in Chennai

    JavaScript Training in Chennai


    ReplyDelete
  20. Oh my goodness! an amazing article dude. Thank you However I am experiencing issue with ur rss . Don?t know why Unable to subscribe to it. Is there anyone getting identical rss problem? Anyone who knows kindly respond. Thnkx www.setupdubaibusiness.com/business-opportunities-in-dubai/

    ReplyDelete
  21. Its a great article on your blog. Thank you for sharing.
    AWS Online Training

    ReplyDelete

  22. Such an informative post. Thank you for sharing
    Microsoft Project Professional

    ReplyDelete
  23. The main motive of the Big data Engineering services is to spread the knowledge so that they can give more big data engineers to the world.

    ReplyDelete
  24. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again.
    BCOM 2nd Year TimeTable 2020

    ReplyDelete
  25. This is a very interesting article to read. Thanks for sharing the information. Great post.
    DevOps Training
    DevOps Online Training

    ReplyDelete

  26. Giving a Intense of Energy to Making these blog with Much needed Contents, are really Appreciated one.Thanks For these Fantastic articles DevOps Training in Chennai | DevOps Training in anna nagar | DevOps Training in omr | DevOps Training in porur | DevOps Training in tambaram | DevOps Training in velachery

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. Well explained and informative blog.
    In these challenging times, we urge you to stay home and stay safe and dial 1-855-533-6333 QuickBooks Support Phone Numberwhenever you face any technical issue in QuickBooks.

    ReplyDelete
  29. Nice & Informative Blog ! Are You facing issue in Quickbooks Customer Service Phone Number ? We resolve all sorts of issues with effective solutions provided by our QuickBooks experts. Just give a call on +1-855-533-6333

    ReplyDelete

  30. Struggling with Quickbooks Payroll Support Phone Number ? Fix it by dialling us at 1-855-533-6333. The error usually arrives due to improper installation of QuickBooks upgrading.

    ReplyDelete
  31. Nice Blog !
    QuickBooks Payroll often strikes with issues & bugs. Users may encounter QuickBooks Payroll Calculation Error sometimes. If you find it so. Give a call to our Qb professionals by calling us at 1-855-662-2O4O.

    ReplyDelete
  32. Demanding advanced solutions to your tech issues? Don’t worry!! Simply dial our QuickBooks POS Support Contact Number +1(844)233-3033 and get all your queries settled simultaneously.Our experts are skilled & competent enough to handle any type of complex & non-complex doubts.

    ReplyDelete
  33. In such scenarios while getting stuck with any sort of technical or non-technical grievances in QuickBooks, simply call us on our QuickBooks Support Phone Number California +1(844)233-3033, and acquire exceptional accounting services from our executives. Our experts are skilled enough to answer all of the error codes users ask for.
    QuickBooks Desktop Support +1(844)233-3033
    QuickBooks Enterprise Support +1(844)233-3033
    Quickbooks 24/7 Customer service +1(844)233-3033
    Quickbooks Payroll Support +1(844)233-3033
    QuickBooks Technical Support +1(844)233-3033
    QuickBooks POS Support +1(844)233-3033
    https://local.google.com/place?id=18130935100246037027&use=posts&lpsid=7365153659564942427
    https://local.google.com/place?id=13229671129642351498&use=posts&lpsid=7400455435569230226

    ReplyDelete
  34. AllSafe IT believes that it Support services should provide a cost effective solution to deliver your IT projects on time, and under budget.

    ReplyDelete
  35. Nice Blog! It's really helpful for me to know about Microsoft Azure cloud migration services. Thanks for providing such an informative blog.
    azure cloud migration services

    ReplyDelete
  36. Wonderful blog! This is very informative site. I am totally pleased by your excellent work. microsoft cloud solutions Many thanks for sharing.

    ReplyDelete
  37. Very informative and impressive post you have written, this is quite interesting and i have went through it completely, an upgraded information is shared, keep sharing such valuable information. Azure Administration for AWS SysOps AZ-010

    ReplyDelete
  38. I am glad to be here and read your very interesting article, it was very informative and helpful information for me. keep it up.
    beth dutton coat

    ReplyDelete
  39. Aximtrade Mt4 Download Is A Investment Company And One Of The Largest Forex Brokers. With Clients Based Around The Globe, We Provide Global Financial Solutions For Private And Corporate Customers Across All Major Asset Classes Including Equities, Fixed Income, Etfs, Cfds And Commodities.

    ReplyDelete
  40. Hi , Thank you so much for writing such an informational blog. If you are Searching for latest Jackets, Coats and Vests, for more info click on given link-Love Blazer

    ReplyDelete
  41. Hi....Nice Blog. If you are facing any issue in QuickBooks, dial QuickBooks Support Number in Arizona and get your problem instantly.

    ReplyDelete
  42. Put more informative things on this blog page, and thanks for sharing this.Suicide Squad 2 Harley Quinn Jacket

    ReplyDelete
  43. Very Nice Blog…Thanks for sharing this information with us. Here am sharing some information about training institute.
    tableau online training in hyderabad

    ReplyDelete
  44. You can do very creative work in a particular field. Exceptional concept That was incredible share. Lindsay Weir Jacket

    ReplyDelete
  45. You added such an extraordinary piece to recover, giving totally part of portion of circumstance edification for us to benefit assessment. gratitude for sharing such recommend when us due to which my few standards were cleared. X Force Keygen Free Download

    ReplyDelete
  46. I could following to appreciation for the undertakings you have made recorded as a printed copy this leaflet. I'm trusting the thesame fine take diversion doings from you inside the thinking of as capably. thankful to you...
    Bitdefender Total Security Crack

    ReplyDelete

  47. So, it happens to be your boyfriend’s birth anniversary? A line or two of birthday wishes wouldn’t be enough nor befitting for his status, you also think.Birthday Card Messages For Him

    ReplyDelete