Skip to content

Commit

Permalink
refactor: Update Azure deployment workflow for provisioning and deplo…
Browse files Browse the repository at this point in the history
…yment steps
  • Loading branch information
Raj committed Aug 6, 2024
1 parent a472f12 commit fab43b0
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions infra/azuredeploy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ variable "staticSites_name" {
default = "azure-static-web-apps-001"
}

resource "azurerm_static_site" "example" {
resource "azurerm_static_web_app" "example" {
name = var.staticSites_name
location = "East Asia"
resource_group_name = azurerm_resource_group.example.name
sku_tier = "Free"
repository_url = "https://github.com/raj-oo8/github-services"
branch = "main"
staging_environment_policy = "Enabled"
allow_config_file_updates = true
provider = "GitHub"
enterprise_grade_cdn_status = "Disabled"

identity {
type = "SystemAssigned"
}
}

resource "azurerm_static_site_basic_auth" "example" {
static_site_id = azurerm_static_site.example.id
resource "azurerm_static_web_app_basic_auth" "example" {
static_web_app_id = azurerm_static_web_app.example.id
name = "default"
applicable_environments_mode = "SpecifiedEnvironments"
}

provider "azurerm" {
features {}
}

0 comments on commit fab43b0

Please sign in to comment.