Microsoft Azure - Using Azure Resource Manager
Last Updated :
03 Apr, 2023
In this article, let us examine how to use Azure Resource Manager(ARM). Microsoft Azure came up with the latest service that deploys & manages the development work through the code. We might have heard of IaaS, SaaS, PaaS. Similarly, Microsoft Azure introduced IaaC(Infrastructure as a Code), which allows you to describe your infrastructure in a declarative way, store it in version control and modify it in a controlled manner.
The process minimizes the manual errors, increases development efficiency in deploying and maintaining the resources, By deploying a template file, one can easily deploy complete data centers within a few minutes rather than spending a lot of time through the portal. Let us understand the working of the ARM with the Data factory.
- An ARM template is very easy to understand and work with as it uses declarative language like JSON.
- Azure bicep file(written in bicep language) is much easier to understand and work when compared to JSON. But it is in the experimental stage developed by Microsoft.
Key Terminologies
- Azure Resource: It is an entity(like VMs, SQL Dbs, Virtual Networks and Containers, etc) managed by Microsoft Azure.
- Azure Resource Group: A resource group will have 'n' number of resources under it. And each and every resource should belong to any of the resource groups.
- Azure Subscription: We have subscriptions or plans for DTH, Broadband, mobile recharge, etc. In the same way, Microsoft provides subscriptions to use the resources with mainly 2 types pay-as-you-go model and a Free edition(it has limited resources). There are many sub-divisions under pay-as-you-go subscription.
- Azure Key Vaults: Key Vaults play a major role in safeguarding passwords. Key vaults contain secret names in which the passwords are stored. Only the secret name is exposed and not the password.
- Azure Storage Accounts: Storage accounts are created in order to hold all the Data storage-related resources like Azure blobs, Containers, File shares, Queues.
- Azure Linked Services: These services are used like connection strings that connect to external resources.
Problem Statement
Let us consider, we need to deploy activities(here copy activity from blob to blob), from the Dev data factory to the Prod data factory.
Prerequisite: Need to create a Storage account, Db, SQL server, connection strings, key vaults, secrets, etc, for both dev and prod.
Implementation
Follow the below steps. to use an Azure Manager:
Step 1: The below image shows there are no activities in the production data factory.
iNo activity in prod data factory
The below image shows the copy activity present in the dev data factory, that needs to be deployed in the production data factory.
Simple copy activity in dev data factory
As in the below figure, click the manage icon inside the dev data factory, then click on the ARM template blade over there. If you click on the Export, the ARM template downloads in .zip format.
Export ARM template
Step 2: After extracting the zip file, we can see these four files inside it. We can make the changes if needed in the arm_template(3rd one from the top).
Step 3: From the prod data factory click on manage -> ARM template -> Import -> Build your own template in the editor(In Custom deployment window) -> Load file -> select the above arm_template file from your local machine -> click save.
Step 4:- In the next window, provide all the prod-related configurations like subscription, resource group, key vaults, region, etc.. Taking this configuration as a reference, the prod configurations reflect while deployment. Then click on review+create -> create -> it starts deploying. Finally, we can see the copy activity(as in the fig below) in the prod DF.
Prod DF with copy activity
Finally, we have learned to use the ARM template. Based on the project, the ARM template usage approach changes.
Similar Reads
Microsoft Azure - Using Azure Spring Cloud
Pre-requisite:- Azure VM In this article, we will learn how to get started with Microsoft Azure - Using Azure Spring Cloud. Azure Spring Cloud is a fully managed service that allows developers to build, deploy, and run Spring Boot applications on the Azure platform. It is designed to simplify the pr
3 min read
Microsoft Azure - App Settings in Azure App Services
In this article, you will learn how to work with App Settings in Azure App Service. In Azure Application Services, you can use App Settings to store and change configuration information without having to change any of your application code. Implementation: Follow the below steps to work with App set
2 min read
Microsoft Azure - Removing Unused Services From Azure
In this article, we will learn how to keep your Azure subscription clean. Most teams that work in an Azure subscription forget to delete unused resources. This makes it difficult to see which resources are still being used and it makes you pay for resources that you don't use. Here, for instance, we
6 min read
Microsoft Azure - Cloning Web Apps using Azure App Services
In this article, we will look into the process of cloning web apps in Azure App Services. If you have an existing application in Azure App Services that you like to have copied over into another region, one option you have is to simply clone it. Follow the below steps to clone and Azure App to anoth
2 min read
Resource Locks in Microsoft Azure
Imagine you have built a working solution in Azureâvirtual machines, databases, storage accounts, etc, and everythingâs running smoothly. Now, what if someone on your team accidentally deletes a critical resource? That's exactly why Azure introduced Resource Locks to protect your important resources
5 min read
Microsoft Azure - Configure Azure SQL
Pre-requisite: Azure VM Azure SQL Database is a cloud-based PaaS database service that is completely managed and extremely scalable. When you need to establish a new application in the cloud, this service includes the essential database-level capabilities of an on-premises SQL Server. The Azure SQL
2 min read
Microsoft Azure - Preventing Changes to Resources in Azure App Services
In this article, we will look into the process of preventing changes to resources in the Azure App Service. You can make use of locks inside of an Azure App Service to prevent other users in your organization from accidentally deleting or modifying critical resources. Follow the below steps to preve
1 min read
Microsoft Azure - Working With Azure Blueprints
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 simpl
6 min read
Microsoft Azure- Writing Queries and Creating Dashboards using Azure Resource Graph
In this article, we are going to write an azure resource graph queries in azure workbooks and then we will pin it to Azure Dashboards. Implementation: Follow the below steps to implement the above problem statement: Step 1: Login into the Azure Portal. Step 2: Go to Azure Monitor Service or You can
2 min read
Microsoft Azure - Using PowerShell Core on Linux
PowerShell Core on Linux is now integrated into Azure Cloud Shell. PowerShell used to be only available on Windows. Now, with PowerShell Core, it is cross-platform and runs on macOS and lots of Linux distributions like Ubuntu and Red Hat on ARM-Based platforms and even on Windows. This allows you to
3 min read