Skip to content

Instantly share code, notes, and snippets.

View youssef-chtourou's full-sized avatar

Youssef CHT youssef-chtourou

  • France
  • 12:29 (UTC +02:00)
View GitHub Profile
azurerm_app_service_plan.appserviceplan: Creating...
azurerm_app_service_plan.appserviceplan: Still creating... [10s elapsed]
azurerm_app_service_plan.appserviceplan: Creation complete after 16s
azurerm_app_service.webapp: Creating...
azurerm_app_service.webapp: Still creating... [10s elapsed]
azurerm_app_service.webapp: Still creating... [20s elapsed]
azurerm_app_service.webapp: Still creating... [30s elapsed]
azurerm_app_service.webapp: Still creating... [40s elapsed]
azurerm_app_service.webapp: Still creating... [50s elapsed]
azurerm_app_service.webapp: Creation complete after 56s
Result #1 MEDIUM App service does not have authentication enabled.
────────────────────────────────────────────────────────────────────────────────
main.tf Lines 21-27
───────┬────────────────────────────────────────────────────────────────────────
21 │ resource "azurerm_app_service" "webapp" {
22 │ name = var.website_name
23 │ location = data.azurerm_resource_group.rg.location
24 │ resource_group_name = data.azurerm_resource_group.rg.name
25 │ app_service_plan_id = azurerm_app_service_plan.appserviceplan.id
26 │ tags = var.tags
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# azurerm_app_service.webapp will be created
+ resource "azurerm_app_service" "webapp" {
+ app_service_plan_id = (known after apply)
+ app_settings = (known after apply)
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/azurerm versions matching "~> 2.65"...
- Installing hashicorp/azurerm v2.98.0...
- Installed hashicorp/azurerm v2.98.0 (self-signed, key ID 34365D9472D7468F)
Partner and community providers are signed by their developers.
If you'd like to know more about provider signing, you can read about it here:
https://www.terraform.io/docs/cli/plugins/signing.html
output "url_website" {
value = "${azurerm_app_service.webapp.name}.azurewebsites.net"
}
rgname = "Terraform-Using-CI-CD"
website_name = "chtourouyoussefblog"
plan_name = "chtourouplan"
kind_type = "Linux"
reserved = true
variable "rgname" {
type = string
}
variable "website_name" {
type = string
}
variable "plan_name" {
type = string
}
variable "kind_type" {
# Configure the Azure provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 2.65"
}
}
required_version = ">= 0.14.7"
}
# Create the resource group
data "azurerm_resource_group" "rg" {
name = var.rgname
}
# Create the Linux App Service Plan
resource "azurerm_app_service_plan" "appserviceplan" {
lifecycle {
create_before_destroy = true
}
name = var.plan_name