DEV Community

Srinivasulu Paranduru for cloudteachable

Posted on • Edited on

1

ARM Template: Azure Webapp

Creation of Azure Webapp using ARM Templates

Step1: ARM Template for creating Azure Webapp

{
    "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {},
    "functions": [],
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Web/serverfarms",
            "apiVersion": "2022-09-01",
            "name": "plansrinivas2024",
            "location": "[resourceGroup().location]",
            "sku":{
                "name" :"F1",
                "capacity":1
            },
            "properties": {
                "name" : "plansrinivas2024"
            }
        },
        {
            "type": "Microsoft.Web/sites",
            "apiVersion": "2022-09-01",
            "name": "newappsrinivas2024",
            "location": "[resourceGroup().location]",
            "properties": {
                "name" : "newappsrinivas2024",
                "serverFarmId" : "[resourceId('Microsoft.Web/serverfarms','plansrinivas2024')]"
            },
            "dependsOn": [
                "[resourceId('Microsoft.Web/serverfarms','plansrinivas2024')]"
            ]
        }
    ],
    "outputs": {}
}
Enter fullscreen mode Exit fullscreen mode

Step2:Go to portal.azure.com and create a new resource group as arm-template1

Image description

Step3:Search with template deployment in azure portal and select the option highlighted in the picture

Image description

Step4: Select the resource group created earlier then review and create

Image description

Step5: Select the custom template

Image description

Step6: Paste the ARM Template code

Image description

Step7: Save the plan, review and create

Image description

Step8: Go the resource group arm-template1 selected for the arm template

Image description

Step9: Delete the resource group: arm-template1 created for this exercise for avoiding expenses

Image description

References :

  1. ARM App Service plan
  2. ARM Web App
  3. Understand the structure and syntax of ARM templates

Conclusion : Created a Azure webapp using ARM Template

💬 If you enjoyed reading this blog post and found it informative, please take a moment to share your thoughts by leaving a review and liking it 😀 and follow me in dev.to , linkedin

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay