You can use the xPlat CLI tool from multiple guest operating systems to manage your Azure Resource Groups in the Resource Manager.
In my last article, we took a look at the Microsoft Azure Cross-Platform (xPlat) CLI Tool, some of its essential functions, how to install it, and how to authenticate to Microsoft Azure. We also looked at how to query for a list of Azure subscriptions, change our current subscription context, and switch between Azure’s REST APIs.
It’s time to learn a little bit more about the Azure Resource Manager (ARM) REST API architecture, in order to effectively perform automation tasks against your Microsoft Azure subscription. Cloud Academy offers a course specifically targeted at understanding the ARM REST API, the course is called Introduction to Azure Resource Manager.
xPlat: Managing ARM Azure Resource Groups
Once you’ve got an Azure subscription, the first step to provisioning cloud resources, of all types, is to create a container called a Resource Group. Although Azure Resource Manager is a multi-master, global service, Resource Groups are associated with one of the Azure “regions” (also called “locations”). You can get a list of Azure locations by using the “azure location list” command. Once you’ve selected an Azure region to create your Resource Group in, use the azure group create command to create it:
azure group create --name CloudAcademy --location westus
After calling this command, you will have created a new, empty Azure Resource Group.
After creating a Resource Group, you can deploy resources into it using declarative or imperative provisioning. You can also provision resources declaratively at the time you create the Resource Group. However for the purposes of learning, it’s easier to learn the individual components of the process. Once you understand the core concepts of ARM, you can use short cuts to enhance your productivity.
To perform declarative provisioning, you first need to create or obtain an ARM JSON Template. Microsoft provides plenty of examples of ARM JSON Templates in the Azure QuickStart Templates Git repository on GitHub.
To perform imperative provisioning, there are different command branches for each supported Azure platform feature. For example:
azure network azure vm azure storage azure webapp azure apiapp azure rediscache
… and more!
Before we talk about provisioning resources, let’s cover Azure Resource Groups a bit more. We’ve already looked at how to create an Azure Resource Group, but what else can we do with them?
azure group list
…will display a list of all the Azure Resource Groups in your current subscription. The azure group delete command:
azure group delete
…will remove the specified Azure Resource Group, and all of the cloud resources that are contained within it.
If you have an existing Azure Resource Group, but want to add or remove “tags” (key-value pairs of user-defined metadata), you can use the
azure group set
command. In fact, let’s go ahead and assign a tag now. To assign a tag, use the following command:
azure group set --name CloudAcademy --tags 'Department=Marketing’
You should see a message, indicating that the command was successful:
That’s all we’ve got right now for ARM Resource Groups!
Join us for the next post, where we will talk about xPlat Azure CLI. And feel free to add your comments below.
New Content: Platforms, Programming, and DevOps – Something for Everyone
This month our team of expert certification specialists released three new or updated learning paths, 16 courses, 13 hands-on labs, and four lab challenges! New content on Cloud Academy You can always visit our Content Roadmap to see what’s just released as well as what’s coming soon....
New Content: Focus on DevOps and Programming Content this Month
This month our team of expert certification specialists released 12 new or updated learning paths, 15 courses, 25 hands-on labs, and four lab challenges! New content on Cloud Academy You can always visit our Content Roadmap to see what’s just released as well as what’s coming soon. Ja...
New Content: Get Ready for the CISM Cert Exam & Learn About Alibaba, Plus All the AWS, GCP, and Azure Courses You Know You Can Count On
This month our team of intrepid certification specialists released five learning paths, seven courses, 19 hands-on labs, and three lab challenges! One particularly interesting new learning path is Certified Information Security Manager (CISM) Foundations. After completing this learn...
Which Certifications Should I Get?
The old AWS slogan, “Cloud is the new normal” is indeed a reality today. Really, cloud has been the new normal for a while now and getting credentials has become an increasingly effective way to quickly showcase your abilities to recruiters and companies. With all that in mind, the s...
New Content: AWS Terraform, Java Programming Lab Challenges, Azure DP-900 & DP-300 Certification Exam Prep, Plus Plenty More Amazon, Google, Microsoft, and Big Data Courses
This month our Content Team continues building the catalog of courses for everyone learning about AWS, GCP, and Microsoft Azure. In addition, this month’s updates include several Java programming lab challenges and a couple of courses on big data. In total, we released five new learning...
WARNING: Great Cloud Content Ahead
At Cloud Academy, content is at the heart of what we do. We work with the world’s leading cloud and operations teams to develop video courses and learning paths that accelerate teams and drive digital transformation. First and foremost, we listen to our customers’ needs and we stay ahea...
New Content: AWS Data Analytics – Specialty Certification, Azure AI-900 Certification, Plus New Learning Paths, Courses, Labs, and More
This month our Content Team released two big certification Learning Paths: the AWS Certified Data Analytics - Speciality, and the Azure AI Fundamentals AI-900. In total, we released four new Learning Paths, 16 courses, 24 assessments, and 11 labs. New content on Cloud Academy At any ...
New Content: Azure DP-100 Certification, Alibaba Cloud Certified Associate Prep, 13 Security Labs, and Much More
This past month our Content Team served up a heaping spoonful of new and updated content. Not only did our experts release the brand new Azure DP-100 Certification Learning Path, but they also created 18 new hands-on labs — and so much more! New content on Cloud Academy At any time, y...
Constant Content: Cloud Academy’s Q3 2020 Roadmap
Hello — Andy Larkin here, VP of Content at Cloud Academy. I am pleased to release our roadmap for the next three months of 2020 — August through October. Let me walk you through the content we have planned for you and how this content can help you gain skills, get certified, and...
New Content: Alibaba, Azure AZ-303 and AZ-304, Site Reliability Engineering (SRE) Foundation, Python 3 Programming, 16 Hands-on Labs, and Much More
This month our Content Team did an amazing job at publishing and updating a ton of new content. Not only did our experts release the brand new AZ-303 and AZ-304 Certification Learning Paths, but they also created 16 new hands-on labs — and so much more! New content on Cloud Academy At...
Blog Digest: Which Certifications Should I Get?, The 12 Microsoft Azure Certifications, 6 Ways to Prevent a Data Breach, and More
This month, we were excited to announce that Cloud Academy was recognized in the G2 Summer 2020 reports! These reports highlight the top-rated solutions in the industry, as chosen by the source that matters most: customers. We're grateful to have been nominated as a High Performer in se...
New Content: AWS, Azure, Typescript, Java, Docker, 13 New Labs, and Much More
This month, our Content Team released a whopping 13 new labs in real cloud environments! If you haven't tried out our labs, you might not understand why we think that number is so impressive. Our labs are not “simulated” experiences — they are real cloud environments using accounts on A...