Creating an Azure resource, using Azure Resource Manager(ARM).
Published: 2023-06-29 11:49:31

**_...A fast and easy route to start your journey in Azure._**

In this guide I will show you one of the fastest and easy methods to use when creating new resources in azure in less than a minute! don't fret! 

I mean its just a finger-tip away. Azure Resource Manager (ARM) is an azure service you can use to manage and deploy resources using Infrastructure as a code paradigm. it enables you to modify and delete resources using a variety of [resources](https://bluexp.netapp.com/blog/azure-cvo-blg-azure-resource-manager-arm-benefits-and-best-practices#:~:text=What%20Is%20Azure%20Resource%20Manager%3F,controls%2C%20tags%2C%20and%20locks.) including access control, tags, and locks, in azure management.

From Microsoft [documentations](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/overview), we know that with move to the cloud, many teams have adopted agile development methods ,these team iterate quickly they need to repeated deploy their solution to the cloud. 
####Why choose ARM template

1. Declarative syntax - It gives you the ability to create and  deploy an entire azure infrastructure (virtual machine, network infrastructure, storage in one command.
2. Repeatable Results - in your development lifecycle ,you need to deploy resources consistently is vital. You develop one template that represents your required state and use it multiple times.
3. Built-in -validation - Your template is deployed only after meeting required metrics.
4. Security - ARM is secured, you can use a variety of security features with your resources such as role based access controls(RBAC) and OAuth authentication.

####Getting started to creating an azure database using ARM...

Create an azure account ,and login using your email and password
In the search bar type "azure template", select "Deploy a custom template".
![azuretemplate01](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mnpvt032ut02j0lkzkjt.png)
In the window that opens, you can create your own template using the editor, but in this exercise ,from the **common templates** choose creating an SQL database 
![azuretemplate02](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1wl4gps2eqwtu61sergu.png)
In provisioning a Database, in the project details choose a subscription, resource group or create a new one. Under instance details, choose a region, and provide a username and password. Continue to the next page "Review+create".
![azuretemplate03](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/02j2z5mjmuvar419vh2x.png)
Wait for some seconds, If "validation passed" is shown, then select the "create button".
![azuretemplate04](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bzex0o2mzwwimm2x2j2c.png)
Wait for the Deployment in Progress process to complete, here the machine is setting up your environment. Once done , select Go to resource icon below.
![azuretemplate05](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5n9xg7km7n82ayi3hnqq.png)
We have successfully created our database in azure using ARM. Its as quickly and fast.

![azuretemplate06](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/js9a3cnm6zxfzlf5yr3f.png)
Finally always remember to delete resources created after use in azure to save cost, unless they are for production environments. 

#####Step to delete Created resources
One of the fastest way is to delete the resource group that service is created on. A second way is to delete the resources individually.
 to delete without affecting the resource group, firstly the name box, all the resources under it becomes highlighted and selected.
Select, delete  at far right corner

![azuretemplate07](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p8521zwzesu9p5s1o59g.png)
then type delete in the box provide, or you can remove items selected if you want, finally
![azuretempalte08](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u8p1csbtwgz6x87xk0o6.png) press delete,a warning pops up.

Thank you for reading, I hope you found this manual helpful as you continue to learn more about cloud services.