dev-resources.site
for different kinds of informations.
IAC - Azure WebApp creation
Published at
6/30/2024
Categories
azure
iac
terraform
Author
srinivasuluparanduru
Author
20 person written this
srinivasuluparanduru
open
Step1: Terraform provider section
terraform {
required_providers {
azurerm ={
source = "hashicorp/azurerm"
version="3.17.0"
}
}
}
Step2: Provider section of azurerm
Refer to article to get mentioned details required to be provided in azurerm provider - https://dev.to/srinivasuluparanduru/azure-service-principal-creation-step-by-step-approach-2a46
provider "azurerm" {
subscription_id = ""
tenant_id = ""
client_id = ""
client_secret = ""
features {
}
}
Step3: Azure resource group creation
resource "azurerm_resource_group" "example" {
name = "template-grp"
location = "North Europe"
}
Step4: Azure service plan
resource "azurerm_service_plan" "plan202407" {
name = "plan202407"
resource_group_name = azurerm_resource_group.example.name
location = "North Europe"
os_type = "Windows"
sku_name = "F1"
}
Step5: Creation of Azure web app
resource "azurerm_windows_web_app" "example" {
name = "examplewebapp"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_service_plan.example.location
service_plan_id = azurerm_service_plan.example.id
site_config {
always_on = false
application_stack {
current_stack = "dotnet"
dotnet_Version = "v6.0"
}
}
depends_on= [
azurerm_service_plan.plan202407
]
}
References:
1.Service Plan
Conclusion : Creation of Azure webapp using IAC - Terraform
š¬ 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
iac Article's
30 articles in total
Customize VPCs with CloudFormation Conditions
read article
Provision EKS Cluster with Terraform, Terragrunt & GitHub Actions
read article
Terraform - Mastering Idempotency Violations - Handling Resource Conflicts and Failures in Azure
read article
OpenTofu - Infrastructure configuration management
read article
Goliat Shield: Your first line of defense
read article
Using CloudFormation to deploy a web app with HA
read article
KCL + Crossplane: A Declarative Language for Deploying Complex Infrastructure on AWS with Kubernetes.
read article
Terraform Remote Backend: How to Manage Terraform State File for Easier Collaboration across Teams
read article
Let's Talk Infrastructure as Code (IaC) š
read article
Conditional deployment in Azure Bicep
read article
Learning Ansible, Proxmox and LXC, Part 1
read article
Create your K3S lab on Google Cloud
read article
Mastering Multi-Cloud Infrastructure with Terraform: A Game-Changer for Modern IT
read article
The KISS Principle: Why Simplicity is Key in Dev and DevOps (and How to Implement It)
read article
user-defined type in Azure Bicep, an introduction
read article
You Are Not Saved By IaC
read article
Terraform Tactics: A Guide to Mastering Terraform Commands for DevOps
read article
Infrastructure as Code with Terraform
read article
What is Infrastructure as Code (IaC) and Why It's Transforming DevOps
read article
Managing Infrastructure as Code at Amazon: Tools, Strategies, and Practices
read article
Automating AWS Cost and Usage Report with CloudFormation
read article
Crossplane + AWS Overview for Managing Infrastructure as Code (IaC) with Kubernetes
read article
How IaC can streamline the Infrastructure & Configuration
read article
Secure Terraform Solution for Government Agencies
read article
IAC - Azure WebApp creation
currently reading
Terraform pipeline (IaC for AWS)
read article
Terraform
read article
ARM Template: Azure SQL Server
read article
9 Ways to Spin Up an EKS Cluster - Way 3 - eksctl
read article
What is Infrastructure as Code (IaC)?
read article
Featured ones: