Sure, here's a sample Terraform script that deploys a static website in a storage account and an app service backend in Azure Cloud:
```bash
# Define the Azure provider
provider "azurerm" {
  features {}
}

# Define variables for resource names
variable "resource_group_name" {
  default = "my-resource-group"
}

variable "storage_account_name" {
  default = "mystorageaccount"
}

variable "app_service_name" {
  default = "myappservice"
}

# Create a resource group
resource "azurerm_resource_group" "my_resource_group" {
  name     = var.resource_group_name
  location = "eastus"
}

# Create a storage account for the frontend
resource "azurerm_storage_account" "my_storage_account" {
  name                     = var.storage_account_name
  resource_group_name      = azurerm_resource_group.my_resource_group.name
  location                 = azurerm_resource_group.my_resource_group.location
  account_tier             = "Standard"
  account_replication_type = "LRS"

  static_website {
    index_document   = "index.html"
    error_404_document = "404.html"
  }
}

# Upload static website files to the storage account
resource "azurerm_storage_blob" "my_storage_blob" {
  name                   = "${azurerm_storage_account.my_storage_account.name}/\$web/index.html"
  type                   = "Block"
  source_content         = filebase64("path/to/index.html")
  storage_account_name   = azurerm_storage_account.my_storage_account.name
  storage_container_name = "$web"
}

resource "azurerm_storage_blob" "my_404_blob" {
  name                   = "${azurerm_storage_account.my_storage_account.name}/\$web/404.html"
  type                   = "Block"
  source_content         = filebase64("path/to/404.html")
  storage_account_name   = azurerm_storage_account.my_storage_account.name
  storage_container_name = "$web"
}

# Create an app service for the backend
resource "azurerm_app_service_plan" "my_app_service_plan" {
  name                = "${var.app_service_name}-plan"
  location            = azurerm_resource_group.my_resource_group.location
  resource_group_name = azurerm_resource_group.my_resource_group.name
  sku {
    tier = "Basic"
    size = "B1"
  }
}

resource "azurerm_app_service" "my_app_service" {
  name                = var.app_service_name
  location            = azurerm_resource_group.my_resource_group.location
  resource_group_name = azurerm_resource_group.my_resource_group.name
  app_service_plan_id = azurerm_app_service_plan.my_app_service_plan.id

  site_config {
    always_on = true
  }

  app_settings = {
    "WEBSITE_NODE_DEFAULT_VERSION" = "~14"
    "WEBSITE_RUN_FROM_PACKAGE"    = "1"
  }
}

# Output the URLs for the storage account and app service
output "frontend_url" {
  value = "https://${azurerm_storage_account.my_storage_account.name}.z13.web.core.windows.net"
}

output "backend_url" {
  value = azurerm_app_service.my_app_service.default_site_hostname
}
```
You can customize the values of the `resource_group_name`, `storage_account_name`, and `app_service_name` variables to suit your needs. You'll also need to update the `source_content` arguments in the `azurerm_storage_blob` resources to point to the location of your static website files. Once you've made any necessary modifications to the script, you can run `terraform apply` to
물론, 다음은 저장소 계정에 정적 웹 사이트를 배포하고 Azure Cloud의 앱 서비스 백엔드를 배포하는 샘플 Terraform 스크립트입니다:```bash# Azure 공급자 정의공급자 "azurerm" {  features {}}# 리소스 이름에 대한 변수 정의변수 "resource_group_name" {  기본값 = "내 리소스 그룹"}변수 "storage_account_name" {  기본값 = "mystorageaccount"}변수 "app_service_name" {  기본값 = "myappservice"}# 리소스 그룹 생성resource "azurerm_resource_group" "my_resource_group" {  name = var.resource_group_name  위치 = "eastus"}# 프론트엔드용 스토리지 계정 생성resource "azurerm_storage_account" "my_storage_account" {  name = var.storage_account_name  resource_group_name = azurerm_resource_group.my_resource_group.name  위치 = azurerm_resource_group.my_resource_group.location  계정_티어 = "표준"  계정 복제 유형 = "LRS"  static_website {    index_document = "index.html"    error_404_document = "404.html"  }}# 정적 웹사이트 파일을 스토리지 계정에 업로드합니다.resource "azurerm_storage_blob" "my_storage_blob" {  name = "${azurerm_storage_account.my_storage_account.name}/\$web/index.html"  유형 = "블록"  source_content = filebase64("경로/to/index.html")  저장소_계정_이름 = azurerm_storage_계정.my_storage_계정.이름  스토리지_컨테이너_이름 = "$웹"}리소스 "azurerm_storage_blob" "my_404_blob" {  name = "${azurerm_storage_account.my_storage_account.name}/\$web/404.html"  유형 = "블록"  source_content = filebase64("경로/to/404.html")  저장소_계정_이름 = azurerm_storage_계정.my_storage_계정.이름  스토리지_컨테이너_이름 = "$웹"}# 백엔드용 앱 서비스 생성resource "azurerm_app_service_plan" "my_app_service_plan" {  name = "${var.app_service_name}-plan"  위치 = azurerm_resource_group.my_resource_group.location  resource_group_name = azurerm_resource_group.my_resource_group.name  sku {    계층 = "기본"    size = "B1"  }}resource "azurerm_app_service" "my_app_service" {  이름 = var.app_service_name  위치 = azurerm_resource_group.my_resource_group.location  resource_group_name = azurerm_resource_group.my_resource_group.name  app_service_plan_id = azurerm_app_service_plan.my_app_service_plan.id  사이트_설정 {    always_on = true  }  app_settings = {    "웹사이트_노드_기본_버전" = "~14"    "website_run_from_package" = "1"  }}# 스토리지 계정과 앱 서비스의 URL을 출력합니다.출력 "프론트엔드_URL" {  value = "https://${azurerm_storage_account.my_storage_account.name}.z13.web.core.windows.net"}출력 "백엔드_URL" {  value = azurerm_app_service.my_app_service.default_site_hostname}```리소스 그룹 이름`, `스토리지 계정 이름`, `앱 서비스 이름` 변수의 값을 필요에 맞게 사용자 지정할 수 있습니다. 또한 정적 웹사이트 파일의 위치를 가리키도록 `azurerm_storage_blob` 리소스의 `source_content` 인수를 업데이트해야 합니다. 스크립트에 필요한 수정을 수행한 후에는 `terraform apply`를 실행하여 다음을 수행할 수 있습니다.