Microsoft Azure – Working With Azure Blueprints

Last Updated : 03 Apr, 2023
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Pre-requisite: Azure – Pre-built Azure VMs

Azure Blueprint is a service offered by Microsoft that enables a subscriber to thoroughly control and manage the working environment. It makes environmental creation and destruction simple. additionally utilizing APM templates Automation makes it much simpler to apply compliance policies to resources and give and revoke access permissions.

Here in this article, we will discuss Azure Blueprints, and how it works.

Microsoft Azure Blueprints:

A user can build and change artifacts (such as policies and ARM templates), assign them to environments, and version them using the method offered by Azure Blueprints. This makes it simple to manage versions, store these artifacts, and link them to environments. To put it another way, it’s a group of governance and resource services that let the subscriber repeat deployments to establish standards.

Azure Blueprint

 

  • Artifacts: A blueprint contains groups of resource and governance services that are sometimes referred to as artifacts, such as:- 
    1. Role Assignments
    2.  Policy Assignments
    3. ARM or Azure Resource Manager templates
    4. Resource Groups
       
  • Blueprint Definition Location: The blueprint definition location is a location where the blueprint is saved. Based on the Contributor accessed by the user, blueprints can be saved to a management group or subscription. For example, if the location is a management group, the blueprint can be assigned to any of that management group’s child subscriptions.
     
  • Blueprint Parameters: Parameters can be passed to either a policy or an ARM template via blueprints. When adding either artifact to a blueprint, the user chooses whether to supply a fixed value for each blueprint assignment or to allow each blueprint assignment to provide a value at the moment of assignment. This adaptability gives the user the choice of defining a fixed value for all uses of the blueprint or allowing the decision to be made at the moment of assignment.
     
  • Blueprint Publishing: When the blueprint is ready to be allocated, it must be published. Publishing involves defining a Version string (letters, digits, and hyphens with a maximum length of 20 characters) as well as optional Change notes. The Version distinguishes it from future updates to the same blueprint and permits each version to be allocated. Because of this versioning, several versions of the same blueprint can be assigned to the same subscription.
     
  • Blueprint Assignment: Each Published Version of a blueprint can be assigned to an existing management group or subscription with a maximum name length of 90 characters. The blueprint in the portal sets the Version to the most recently published version. If there are any artifact or blueprint parameters, they are defined during the assignment process.

Working With Azure Blueprint:

Creating a new Azure Blueprint:

Here, We’ll learn how to create a new Azure Blueprint and its artifacts in the Azure portal.

Step 1. First, navigate to All resources in the Azure portal and type “Blueprint” into the search bar. and select it

Step 2. The Get Started option appears in the Azure Blueprint section automatically. Click on the Create button, as can be seen in the image below:

azure blueprints

 

Step 3. Then enter the blueprint’s name in the column.

Step 4. The next step is to choose the location for the blueprint definition. Here will be where the Blueprint will be kept. For instance, Azure Management Group. It can be created if not created yet. simply by typing “management group” into the Azure portal’s All Resources page and creating a new one from there. There must be at least one subscription under that Management Group for it to serve as the subscription’s parent. Different hierarchies can also be established, and these can influence the Blueprint’s scope.

management groups

 

Step 5. After we have finished filling out all of the information for the Blueprint definition, click Next. Artifacts

Step 6. The contents of the Blueprint can now be created here. You can include elements like Policies, ARM templates, and Role assignments.

blueprints definition

 

Step 7. Then, there must be added a few artifacts, including at least one that establishes a resource group

adding a artifact

 

Step 8. To save the Blueprint draft, click the Add button. It will now be saved, but deployment is not yet scheduled.

Publishing and Assigning Azure Blueprint:

The Blueprint has now been saved as a draft and is prepared for publication and assignment to a subscription to be deployed. To publish and assign the Azure blueprint, follow these steps:

Step 1. The blueprint must first be published. This removes it from the draft stage, implying that we can no longer make changes to this blueprint.

Step 2. Find and access your blueprint by using the Blueprints Definitions menu.

Step 3. Next, select Publish Blueprint and give it a version number.

Step 4. To make the Blueprint published and available for assignment, click Publish.

dev env

 

Step 5. The published blueprint can now be linked to a subscription. Go back to the blueprint by selecting it from the Blueprint Definitions menu.

Step 6. Assign the Blueprint by right-clicking on the blueprint.

Step 7. To allocate the blueprint, select the desired subscription.

Step 8. Following that, enter a name for the assignment.

Step 9. Choose a location where the managed identity deployment will take place and where the deployment of the blueprint will take place.

Step 10. Select the blueprint’s required assignment’s published version. which is needed to be assigned. 

Step 11. set ‘Don’t Lock’ as the lock set.

Step 12. The artifacts’ parameter values will now be filled in in the following step. Some of them require input from the user, such as the name of a resource group, the identity of a user assignment, or other values.

publish blueprint

 

Once click on the Assign button, the blueprint will be assigned and will begin deploying the artifacts to the subscription.

The Allocated Blueprints menu now displays the blueprint’s status once it has been assigned. Details on the assignment, such as how the deployment is going, may be seen here. The blueprint’s update and unassign options are also available here.

output

 

The resources will then be deployed, capping up the deployment process.

So far, it can be said that Azure Blueprints are an excellent tool for connecting deployments to deployment artifacts. This makes it simple to keep track of what is deployed, what version of the deployment scripts was used and to properly manage the deployment and artifact lifecycle.



Similar Reads

Microsoft Azure - Working with Azure Health Bot
In this article, we will learn how to get started with Azure Health Bot. Creating a Bot, especially one for a healthcare scenario, can be a big task as you need to take a lot of factors into account, including localization of messages, edge cases, and data privacy. Azure Health Bot helps with this. Let's create one to see how it works. To do so fol
3 min read
Microsoft Azure - Working with Themes in Azure
In this article, you'll see how you can quickly change the themes inside of the Azure Portal. Everyone has their preference when it comes to themes. But did you know that in the Azure portal, you could go into settings and change the color scheme to one that might suit you better. All we have to do is click on the "gear" symbol or settings symbol.
2 min read
Microsoft Azure - Working with Files in Azure App Service
Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends. In this article, we will look into the process of working with files in the Azure App service using an example. Console Access to my App Services:We can go to the Azure Portal and select my App Services and click on the console under Developmen
2 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read
Microsoft Azure - Configure Azure SQL with Azure CLI
In this article, we're going to take a closer look at how you can configure something like connectivity using the Azure CLI. What we have here is we are in Azure Data Studio and similar to the SQL notebook we are actually using a PowerShell notebook. That just means all our code cells are going to run PowerShell and we are just connecting to localh
4 min read
Microsoft Azure - Get CPU Utilization Data of a Azure VM in Azure Portal
Azure Virtual Machines (VM) is one of several types of on-demand, scalable computing resources that Azure offers. In this article, we will look into the process of getting the CPU Utilization data of an Azure VM in Azure Portal. Implementation: Follow the steps to get the CPU Utilization of an Azure VM in Azure Portal: Step 1: Log in to your Azure
2 min read
Microsoft Azure - Archive Azure VM to Azure Storage Account
In this article, we will be implementing a solution to archive a select azure VM snapshot to a select storage account for archiving using azure cloud shell. For implementation, we will be using Azure CLI commands. Prerequisite:VM SnapshotA storage account is neededUser needs "Storage Blob Contributor Data" IAM Role Access on Archiving Storage Accou
2 min read
Microsoft Azure - Check Status of Azure VM using Azure PowerShell
The following Azure PowerShell command helps you to find the Azure VM Config and properties details of Os Name, Os Version, Hyper V Generation, Disks properties, Extensions properties of Type Handler Version, Status and Message, VM Agents properties of Type Handler Version, Status and Message and also VM Power Status Codes, Messages, Plugins, Time
3 min read
Microsoft Azure - Azure VM Disk Space in Percentage using Azure KQL
Here we'll be using the Azure Insights Metric Query to find the free disk space in percentage using KQL. The purpose of this query is to find disk drive free space of all the Azure VMs without logging into every server. You can Run the following KQL log Queries in Azure Monitor or Azure VM Logs or Log Analytics Workspace. Note: VM Insights Agent sh
1 min read
three90RightbarBannerImg