Microsoft.Network アプリケーションGateways 2015-05-01-preview

Bicep リソース定義

applicationGateways リソースの種類は、次をターゲットとする操作と共にデプロイできます。

  • リソース グループの - リソース グループのデプロイ コマンド 参照

各 API バージョンで変更されたプロパティの一覧については、変更ログの参照してください。

使用例

Bicep サンプル

Application Gateway のデプロイの基本的な例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource applicationGateway 'Microsoft.Network/applicationGateways@2022-07-01' = {
  name: resourceName
  location: location
  properties: {
    authenticationCertificates: []
    backendAddressPools: [
      {
        name: '${virtualNetwork.name}-beap'
        properties: {
          backendAddresses: []
        }
      }
    ]
    backendHttpSettingsCollection: [
      {
        name: '${virtualNetwork.name}-be-htst'
        properties: {
          authenticationCertificates: []
          cookieBasedAffinity: 'Disabled'
          path: ''
          pickHostNameFromBackendAddress: false
          port: 80
          protocol: 'Http'
          requestTimeout: 1
          trustedRootCertificates: []
        }
      }
    ]
    customErrorConfigurations: []
    enableHttp2: false
    frontendIPConfigurations: [
      {
        name: '${virtualNetwork.name}-feip'
        properties: {
          privateIPAllocationMethod: 'Dynamic'
          publicIPAddress: {
            id: publicIPAddress.id
          }
        }
      }
    ]
    frontendPorts: [
      {
        name: '${virtualNetwork.name}-feport'
        properties: {
          port: 80
        }
      }
    ]
    gatewayIPConfigurations: [
      {
        name: 'my-gateway-ip-configuration'
        properties: {
          subnet: {
            id: subnet.id
          }
        }
      }
    ]
    httpListeners: [
      {
        name: '${virtualNetwork.name}-httplstn'
        properties: {
          customErrorConfigurations: []
          frontendIPConfiguration: {
            id: resourceId(
              'Microsoft.Network/applicationGateways/frontendIPConfigurations',
              resourceGroup().name,
              resourceName,
              '${virtualNetwork.name}-feip'
            )
          }
          frontendPort: {
            id: resourceId(
              'Microsoft.Network/applicationGateways/frontendPorts',
              resourceGroup().name,
              resourceName,
              '${virtualNetwork.name}-feport'
            )
          }
          protocol: 'Http'
          requireServerNameIndication: false
        }
      }
    ]
    privateLinkConfigurations: []
    probes: []
    redirectConfigurations: []
    requestRoutingRules: [
      {
        name: '${virtualNetwork.name}-rqrt'
        properties: {
          backendAddressPool: {
            id: resourceId(
              'Microsoft.Network/applicationGateways/backendAddressPools',
              resourceGroup().name,
              resourceName,
              '${virtualNetwork.name}-beap'
            )
          }
          backendHttpSettings: {
            id: resourceId(
              'Microsoft.Network/applicationGateways/backendHttpSettingsCollection',
              resourceGroup().name,
              resourceName,
              '${virtualNetwork.name}-be-htst'
            )
          }
          httpListener: {
            id: resourceId(
              'Microsoft.Network/applicationGateways/httpListeners',
              resourceGroup().name,
              resourceName,
              '${virtualNetwork.name}-httplstn'
            )
          }
          ruleType: 'Basic'
          priority: 10
        }
      }
    ]
    rewriteRuleSets: []
    sku: {
      capacity: 2
      name: 'Standard_v2'
      tier: 'Standard_v2'
    }
    sslCertificates: []
    sslPolicy: {}
    sslProfiles: []
    trustedClientCertificates: []
    trustedRootCertificates: []
    urlPathMaps: []
  }
}

resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2022-07-01' = {
  name: resourceName
  location: location
  sku: {
    name: 'Standard'
    tier: 'Regional'
  }
  properties: {
    ddosSettings: {
      protectionMode: 'VirtualNetworkInherited'
    }
    idleTimeoutInMinutes: 4
    publicIPAddressVersion: 'IPv4'
    publicIPAllocationMethod: 'Static'
  }
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-07-01' = {
  name: resourceName
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.0.0.0/16'
      ]
    }
    dhcpOptions: {
      dnsServers: []
    }
    subnets: []
  }
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' = {
  name: 'subnet-230630033653837171'
  parent: virtualNetwork
  properties: {
    addressPrefix: '10.0.0.0/24'
    delegations: []
    privateEndpointNetworkPolicies: 'Enabled'
    privateLinkServiceNetworkPolicies: 'Disabled'
    serviceEndpointPolicies: []
    serviceEndpoints: []
  }
}

Azure 検証済みモジュール

次の Azure 検証済みモジュール を使用して、このリソースの種類をデプロイできます。

モジュール 形容
アプリケーションゲートウェイ Application Gateway 用 AVM リソース モジュール

Azure クイック スタートのサンプル

Azure クイック スタート テンプレート、このリソースの種類をデプロイするための Bicep サンプルが含まれています。

Bicep ファイル 形容
NAT ゲートウェイと Application Gateway を使用して AKS クラスターを する このサンプルでは、送信接続用の NAT ゲートウェイと受信接続用の Application Gateway を使用して AKS クラスターをデプロイする方法を示します。
Application Gateway イングレス コントローラー を使用して AKS クラスターを する このサンプルでは、Application Gateway、Application Gateway イングレス コントローラー、Azure Container Registry、Log Analytics、Key Vault を使用して AKS クラスターをデプロイする方法を示します
URL パス ベースのルーティング 用の Application Gateway の このテンプレートは、Application Gateway を作成し、URL パス ベースのルーティング用に構成します。
内部 API Management と Web App を使用した Application Gateway の Azure Web アプリでホストされている Web API にサービスを提供する仮想ネットワーク (内部モード) API Management インスタンスにインターネット トラフィックをルーティングする Application Gateway。
WAF とファイアウォール ポリシー を使用した Application Gateway の このテンプレートは、ファイアウォール ポリシーと共に WAF が構成された Application Gateway を作成します
Web アプリ、PE、Application Gateway v2 を作成する このテンプレートは、Azure Virtual Network サブネット (Application Gateway v2) にプライベート エンドポイントを持つ Azure Web アプリを作成します。 Application Gateway は vNet (サブネット) にデプロイされます。 Web アプリは、プライベート エンドポイントを使用してサブネットからのトラフィックへのアクセスを制限します
Application Gateway v2 を作成する このテンプレートは、仮想ネットワークにアプリケーション ゲートウェイ v2 を作成し、パブリック フロントエンドを使用して自動スケーリングプロパティと HTTP 負荷分散規則を設定します
Azure Application Gateway v2 を作成する このテンプレートは、バックエンド プールに 2 つの Windows Server 2016 サーバーを含む Azure Application Gateway を作成します
Azure Application Gateway で Azure WAF v2 を作成する このテンプレートでは、バックエンド プールに 2 つの Windows Server 2016 サーバーを含む Azure Application Gateway 上に Azure Web Application Firewall v2 を作成します
App Gateway を使用して内部 VNet に API Management を作成する このテンプレートでは、Azure Application Gateway によって保護されたプライベート ネットワーク上に Azure API Management のインスタンスを作成する方法を示します。
証明書 を使用して Application Gateway を作成する このテンプレートでは、Key Vault の自己署名証明書を生成し、Application Gateway から参照する方法を示します。
Azure Application Gateway を使用して Windows VM スケール セットをデプロイする このテンプレートを使用すると、Azure Application Gateway と統合された単純な Windows VM スケール セットをデプロイでき、最大 1,000 台の VM をサポートします
Front Door Standard/Premium と Application Gateway の配信元 このテンプレートは、Front Door Standard/Premium インスタンスと Application Gateway インスタンスを作成し、NSG と WAF ポリシーを使用して、トラフィックが Front Door の配信元を通過したことを検証します。
コンテナー インスタンスと Application Gateway を使用した Front Door の このテンプレートは、コンテナー グループと Application Gateway を使用して Front Door Standard/Premium を作成します。

リソースの形式

Microsoft.Network/applicationGateways リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Network/applicationGateways@2015-05-01-preview' = {
  etag: 'string'
  location: 'string'
  name: 'string'
  properties: {
    backendAddressPools: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          backendAddresses: [
            {
              fqdn: 'string'
              ipAddress: 'string'
            }
          ]
          backendIPConfigurations: [
            {
              id: 'string'
            }
          ]
          provisioningState: 'string'
        }
      }
    ]
    backendHttpSettingsCollection: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          cookieBasedAffinity: 'string'
          port: int
          protocol: 'string'
          provisioningState: 'string'
        }
      }
    ]
    frontendIPConfigurations: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          privateIPAddress: 'string'
          privateIPAllocationMethod: 'string'
          provisioningState: 'string'
          publicIPAddress: {
            id: 'string'
          }
          subnet: {
            id: 'string'
          }
        }
      }
    ]
    frontendPorts: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          port: int
          provisioningState: 'string'
        }
      }
    ]
    gatewayIPConfigurations: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          provisioningState: 'string'
          subnet: {
            id: 'string'
          }
        }
      }
    ]
    httpListeners: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          frontendIPConfiguration: {
            id: 'string'
          }
          frontendPort: {
            id: 'string'
          }
          protocol: 'string'
          provisioningState: 'string'
          sslCertificate: {
            id: 'string'
          }
        }
      }
    ]
    provisioningState: 'string'
    requestRoutingRules: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          backendAddressPool: {
            id: 'string'
          }
          backendHttpSettings: {
            id: 'string'
          }
          httpListener: {
            id: 'string'
          }
          provisioningState: 'string'
          ruleType: 'string'
        }
      }
    ]
    resourceGuid: 'string'
    sku: {
      capacity: int
      name: 'string'
      tier: 'string'
    }
    sslCertificates: [
      {
        etag: 'string'
        id: 'string'
        name: 'string'
        properties: {
          data: 'string'
          password: 'string'
          provisioningState: 'string'
          publicCertData: 'string'
        }
      }
    ]
  }
  tags: {
    {customized property}: 'string'
  }
}

プロパティ値

Microsoft.Network/applicationGateways (アプリケーションゲートウェイ)

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列を取得します。 文字列
位置 リソースの場所 string (必須)
名前 リソース名 string (必須)
プロパティ Application Gateway のプロパティ ApplicationGatewayPropertiesFormat の
タグ リソース タグ タグ名と値のディクショナリ。 テンプレート の タグを参照してください

ApplicationGatewayBackendアドレス

名前 形容 価値
FQDNの DNS 名を取得または設定します。 文字列
IPアドレス IP アドレスを取得または設定します。 文字列

ApplicationGatewayBackendAddressPool

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プールのプロパティ ApplicationGatewayBackendAddressPoolPropertiesFormat の

ApplicationGatewayBackendAddressPoolPropertiesFormat

名前 形容 価値
バックエンドアドレス バックエンド アドレスを取得または設定します。 ApplicationGatewayBackendアドレス[]
バックエンドIPConfigurations アプリケーション ゲートウェイの backendIPConfiguration を取得または設定します。 サブリソース[]
プロビジョニング状態 バックエンド アドレス プール リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列

ApplicationGatewayBackendHttp設定

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プール設定のプロパティ ApplicationGatewayBackendHttpSettingsPropertiesFormat の

ApplicationGatewayBackendHttpSettingsPropertiesFormat

名前 形容 価値
cookieBasedアフィニティ Cookie アフィニティを取得または設定します。 「無効」
「有効」
ポート ポートを取得または設定します。 整数 (int)
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 バックエンド http 設定リソースのプロビジョニング状態を取得または設定更新中/削除中/失敗 文字列

ApplicationGatewayFrontendIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド IP 構成のプロパティ ApplicationGatewayFrontendIPConfigurationPropertiesFormat の

ApplicationGatewayFrontendIPConfigurationPropertiesFormat

名前 形容 価値
プライベートIPアドレス ネットワーク インターフェイス IP 構成の privateIPAddress を取得または設定します。 文字列
privateIPAllocationメソッド PrivateIP の割り当て方法 (Static/Dynamic) を取得または設定します。 「ダイナミック」
「静的」
プロビジョニング状態 PublicIP リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicIPアドレス PublicIP リソースの参照を取得または設定します。 SubResource の
サブネット サブネット リソースの参照を取得または設定します。 SubResource の

ApplicationGatewayフロントエンドポート

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド ポートのプロパティ ApplicationGatewayFrontendPortPropertiesFormat の

ApplicationGatewayFrontendPortPropertiesFormat

名前 形容 価値
ポート フロントエンド ポートを取得または設定します。 整数 (int)
プロビジョニング状態 フロントエンド ポート リソースのプロビジョニング状態の更新/削除/失敗を取得または設定します。 文字列

アプリケーションゲートウェイHttpListener

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの Http リスナーのプロパティ ApplicationGatewayHttpListenerPropertiesFormat の

ApplicationGatewayHttpListenerPropertiesFormat

名前 形容 価値
フロントエンドIPConfiguration アプリケーション ゲートウェイのフロントエンド IP 構成リソースを取得または設定します。 SubResource の
フロントエンドポート アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 http リスナー リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ssl証明書 アプリケーション ゲートウェイの SSL 証明書リソースを取得または設定します。 SubResource の

ApplicationGatewayIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの IP 構成のプロパティ ApplicationGatewayIPConfigurationPropertiesFormat の

ApplicationGatewayIPConfigurationPropertiesFormat

名前 形容 価値
プロビジョニング状態 アプリケーション ゲートウェイ サブネット リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
サブネット サブネット リソースの参照を取得または設定します。アプリケーション ゲートウェイがプライベート アドレスを取得するサブネット SubResource の

ApplicationGatewayPropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイ リソースのバックエンド アドレス プールを取得または設定します。 ApplicationGatewayBackendAddressPool[]
backendHttpSettingsCollection アプリケーション ゲートウェイ リソースのバックエンド http 設定を取得または設定します。 ApplicationGatewayBackendHttpSettings[]
フロントエンドIPConfigurations アプリケーション ゲートウェイ リソースのフロントエンド IP アドレスを取得または設定します。 ApplicationGatewayFrontendIPConfiguration[]
フロントエンドポート アプリケーション ゲートウェイ リソースのフロントエンド ポートを取得または設定します。 ApplicationGatewayフロントエンドポート[]
gatewayIPConfigurations アプリケーション ゲートウェイ リソースのサブネットを取得または設定します。 ApplicationGatewayIPConfiguration[]
httpリスナー アプリケーション ゲートウェイ リソースの HTTP リスナーを取得または設定します。 ApplicationGatewayHttpListener[]
プロビジョニング状態 ApplicationGateway リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
requestRoutingRules (リクエストルーティングルール) アプリケーション ゲートウェイ リソースの要求ルーティング規則を取得または設定します。 ApplicationGatewayRequestRoutingRule[]
リソースギッド ApplicationGateway リソースのリソース guid プロパティを取得または設定します。 文字列
エスケーユー アプリケーション ゲートウェイ リソースの SKU を取得または設定します。 ApplicationGatewaySku の
ssl証明書 アプリケーション ゲートウェイ リソースの SSL 証明書を取得または設定します。 ApplicationGatewaySsl証明書[]

ApplicationGatewayRequestRoutingRule

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの要求ルーティング規則のプロパティ ApplicationGatewayRequestRoutingRulePropertiesFormat の

ApplicationGatewayRequestRoutingRulePropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイのバックエンド アドレス プール リソースを取得または設定します。 SubResource の
バックエンドHttpSettings アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
httpリスナー アプリケーション ゲートウェイの http リスナー リソースを取得または設定します。 SubResource の
プロビジョニング状態 要求ルーティング 規則リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ルールタイプ 規則の種類を取得または設定します。 「ベーシック」

ApplicationGatewaySku の

名前 形容 価値
キャパシティ アプリケーション ゲートウェイの容量 (インスタンス数) を取得または設定します。 整数 (int)
名前 アプリケーション ゲートウェイ SKU の名前を取得または設定します。 「Standard_Large」
「Standard_Medium」
「Standard_Small」
レベル アプリケーション ゲートウェイの層を取得または設定します。 「スタンダード」

ApplicationGatewaySsl証明書

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの SSL 証明書のプロパティ ApplicationGatewaySslCertificatePropertiesFormat の

ApplicationGatewaySslCertificatePropertiesFormat

名前 形容 価値
データ 証明書データを取得または設定します。 文字列
パスワード 証明書のパスワードを取得または設定します。 文字列
プロビジョニング状態 Ssl 証明書リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicCertData の 証明書のパブリック データを取得または設定します。 文字列

リソースタグ

名前 形容 価値

サブリソース

名前 形容 価値
身分証明書 リソース ID 文字列

ARM テンプレート リソース定義

applicationGateways リソースの種類は、次をターゲットとする操作と共にデプロイできます。

使用例

Azure クイック スタート テンプレート

このリソースの種類 デプロイする Azure クイック スタート テンプレート 次に示します。

テンプレート 形容
NAT ゲートウェイと Application Gateway を使用して AKS クラスターを する

Azure
にデプロイする
このサンプルでは、送信接続用の NAT ゲートウェイと受信接続用の Application Gateway を使用して AKS クラスターをデプロイする方法を示します。
Application Gateway イングレス コントローラー を使用して AKS クラスターを する

Azure
にデプロイする
このサンプルでは、Application Gateway、Application Gateway イングレス コントローラー、Azure Container Registry、Log Analytics、Key Vault を使用して AKS クラスターをデプロイする方法を示します
WAF、SSL、IIS、および HTTPS リダイレクト を使用した App Gateway の

Azure
にデプロイする
このテンプレートは、WAF を使用して Application Gateway をデプロイし、エンド ツー エンド SSL と HTTP を IIS サーバー上の HTTPS リダイレクトにデプロイします。
IP 制限 を使用した Web アプリの Application Gateway の

Azure
にデプロイする
このテンプレートは、Web アプリで IP 制限が有効になっている Azure Web アプリの前にアプリケーション ゲートウェイを作成します。
マルチ ホスティング用 Application Gateway

Azure にデプロイする
このテンプレートは、Application Gateway を作成し、ポート 443 でマルチ ホスティング用に構成します。
URL パス ベースのルーティング 用の Application Gateway の

Azure
にデプロイする
このテンプレートは、Application Gateway を作成し、URL パス ベースのルーティング用に構成します。
内部 API Management と Web App を使用した Application Gateway の

Azure
にデプロイする
Azure Web アプリでホストされている Web API にサービスを提供する仮想ネットワーク (内部モード) API Management インスタンスにインターネット トラフィックをルーティングする Application Gateway。
WAF とファイアウォール ポリシー を使用した Application Gateway の

Azure
にデプロイする
このテンプレートは、ファイアウォール ポリシーと共に WAF が構成された Application Gateway を作成します
Azure SQL Database を使用した LANSA Windows VM ScaleSet の自動スケールの

Azure
にデプロイする
このテンプレートでは、スケール セット内の VM の数が必要な Windows VMSS と、各 VM にインストールする LANSA MSI がデプロイされます。 VM スケール セットがデプロイされると、LANSA MSI のインストールにカスタム スクリプト拡張機能が使用されます)
Azure Application Gateway のデモ セットアップ の

Azure
にデプロイする
このテンプレートを使用すると、Azure Application Gateway のデモをすばやくデプロイして、Cookie ベースのアフィニティの有無にかかわらず負荷分散をテストできます。
Application Gateway v2 によって保護された Web アプリを作成する

Azure にデプロイする
このテンプレートは、Application Gateway v2 のアクセス制限付きの Azure Web アプリを作成します。 Application Gateway は、"Microsoft.Web" サービス エンドポイントが有効になっている vNet (サブネット) にデプロイされます。 Web アプリは、サブネットからのトラフィックへのアクセスを制限します。
Web アプリ、PE、Application Gateway v2 を作成する

Azure にデプロイする
このテンプレートは、Azure Virtual Network サブネット (Application Gateway v2) にプライベート エンドポイントを持つ Azure Web アプリを作成します。 Application Gateway は vNet (サブネット) にデプロイされます。 Web アプリは、プライベート エンドポイントを使用してサブネットからのトラフィックへのアクセスを制限します
仮想ネットワーク で WordPress サイトを作成する

Azure にデプロイする
このテンプレートは、仮想ネットワーク内のコンテナー インスタンスに WordPress サイトを作成します。 WordPress サイトにアクセスできるパブリック サイトの FQDN を出力します。
Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、仮想ネットワークにアプリケーション ゲートウェイを作成し、任意の数の仮想マシンの負荷分散規則を設定します
Application Gateway (カスタム SSL) を作成する

Azure
にデプロイする
このテンプレートは、カスタム ssl ポリシーで構成された Application Gateway をデプロイします。
アプリケーション ゲートウェイ (SSL ポリシー) を作成する

Azure
にデプロイする
このテンプレートは、定義済みの ssl ポリシーで構成された Application Gateway をデプロイします。
アプリケーション ゲートウェイ (WAF) を作成する

Azure
にデプロイする
このテンプレートは、仮想ネットワークに Web アプリケーション ファイアウォール機能を備えたアプリケーション ゲートウェイを作成し、任意の数の仮想マシンの負荷分散規則を設定します
WebApps 用の Application Gateway を作成する

Azure にデプロイする
このテンプレートは、カスタム プローブが有効になっている 2 つの Azure Web Apps の前にアプリケーション ゲートウェイを作成します。
Application Gateway v2 を作成する

Azure
にデプロイする
このテンプレートは、仮想ネットワークにアプリケーション ゲートウェイ v2 を作成し、パブリック フロントエンドを使用して自動スケーリングプロパティと HTTP 負荷分散規則を設定します
Key Vault を使用して Application Gateway V2 を作成する

Azure
にデプロイする
このテンプレートは、Application Gateway V2 を仮想ネットワークにデプロイし、ユーザー定義 ID、Key Vault、シークレット (証明書データ)、Key Vault と Application Gateway のアクセス ポリシーをデプロイします。
パスオーバーライド を使用してアプリケーション ゲートウェイを作成

Azure
にデプロイする
このテンプレートは、Application Gateway をデプロイし、バックエンド アドレス プールのパス オーバーライド機能の使用方法を示します。
プローブ を使用して Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、プローブ機能が強化された Application Gateway をデプロイします。
パブリック IP を使用して Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、Application Gateway、Application Gateway のパブリック IP アドレス、および Application Gateway がデプロイされている仮想ネットワークを作成します。 また、2 つのバックエンド サーバーを使用して Http 負荷分散用に Application Gateway を構成します。 バックエンド サーバーの有効な IP を指定する必要があることに注意してください。
パブリック IP (オフロード) を使用してアプリケーション ゲートウェイを作成する

Azure にデプロイする
このテンプレートは、Application Gateway、Application Gateway のパブリック IP アドレス、および Application Gateway がデプロイされている仮想ネットワークを作成します。 また、2 つのバックエンド サーバーで Ssl オフロードと負荷分散用に Application Gateway を構成します。 バックエンド サーバーの有効な IP を指定する必要があることに注意してください。
リダイレクト を使用して Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、仮想ネットワークにリダイレクト機能を備えたアプリケーション ゲートウェイを作成し、負荷分散規則とリダイレクト規則 (基本規則とパスベース規則) を設定します
書き換え を使用して Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、仮想ネットワークで書き換え機能を備えたアプリケーション ゲートウェイを作成し、負荷分散、書き換えルールを設定します
Azure Application Gateway v2 を作成する

Azure
にデプロイする
このテンプレートは、バックエンド プールに 2 つの Windows Server 2016 サーバーを含む Azure Application Gateway を作成します
Azure Application Gateway で Azure WAF v2 を作成する

Azure にデプロイする
このテンプレートでは、バックエンド プールに 2 つの Windows Server 2016 サーバーを含む Azure Application Gateway 上に Azure Web Application Firewall v2 を作成します
IPv6 Application Gateway を作成する

Azure
にデプロイする
このテンプレートは、デュアルスタック仮想ネットワークに IPv6 フロントエンドを持つアプリケーション ゲートウェイを作成します。
App Gateway を使用して内部 VNet に API Management を作成する

Azure にデプロイする
このテンプレートでは、Azure Application Gateway によって保護されたプライベート ネットワーク上に Azure API Management のインスタンスを作成する方法を示します。
証明書 を使用して Application Gateway を作成する

Azure
にデプロイする
このテンプレートでは、Key Vault の自己署名証明書を生成し、Application Gateway から参照する方法を示します。
Azure Application Gateway を使用して Windows VM スケール セットをデプロイする

Azure にデプロイする
このテンプレートを使用すると、Azure Application Gateway と統合された単純な Windows VM スケール セットをデプロイでき、最大 1,000 台の VM をサポートします
Azure Application Gateway を使用して Ubuntu VM スケール セットをデプロイする

Azure にデプロイする
このテンプレートを使用すると、Azure Application Gateway と統合された単純な Ubuntu VM スケール セットをデプロイでき、最大 1,000 台の VM をサポートします
ILB ASE を使用した eShop Web サイトの

Azure
にデプロイする
App Service Environment は、Azure App Service の Premium サービス プラン オプションであり、Web Apps、Mobile Apps、API Apps など、Azure App Service アプリを大規模に安全に実行するための完全に分離された専用の環境を提供します。
Front Door Standard/Premium と Application Gateway の配信元

Azure にデプロイする
このテンプレートは、Front Door Standard/Premium インスタンスと Application Gateway インスタンスを作成し、NSG と WAF ポリシーを使用して、トラフィックが Front Door の配信元を通過したことを検証します。
コンテナー インスタンスと Application Gateway を使用した Front Door の

Azure
にデプロイする
このテンプレートは、コンテナー グループと Application Gateway を使用して Front Door Standard/Premium を作成します。
NSG、ILB、AppGateway を使用した多層アプリの

Azure
にデプロイする
このテンプレートは、仮想ネットワークをデプロイし、サブネットを介してネットワークを分離し、VM をデプロイして負荷分散を構成します
多層トラフィック マネージャー、L4 ILB、L7 AppGateway

Azure にデプロイする
このテンプレートは、仮想ネットワークをデプロイし、サブネットを介してネットワークを分離し、VM をデプロイして負荷分散を構成します

リソースの形式

Microsoft.Network/applicationGateways リソースを作成するには、次の JSON をテンプレートに追加します。

{
  "type": "Microsoft.Network/applicationGateways",
  "apiVersion": "2015-05-01-preview",
  "name": "string",
  "etag": "string",
  "location": "string",
  "properties": {
    "backendAddressPools": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "backendAddresses": [
            {
              "fqdn": "string",
              "ipAddress": "string"
            }
          ],
          "backendIPConfigurations": [
            {
              "id": "string"
            }
          ],
          "provisioningState": "string"
        }
      }
    ],
    "backendHttpSettingsCollection": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "cookieBasedAffinity": "string",
          "port": "int",
          "protocol": "string",
          "provisioningState": "string"
        }
      }
    ],
    "frontendIPConfigurations": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "privateIPAddress": "string",
          "privateIPAllocationMethod": "string",
          "provisioningState": "string",
          "publicIPAddress": {
            "id": "string"
          },
          "subnet": {
            "id": "string"
          }
        }
      }
    ],
    "frontendPorts": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "port": "int",
          "provisioningState": "string"
        }
      }
    ],
    "gatewayIPConfigurations": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "provisioningState": "string",
          "subnet": {
            "id": "string"
          }
        }
      }
    ],
    "httpListeners": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "frontendIPConfiguration": {
            "id": "string"
          },
          "frontendPort": {
            "id": "string"
          },
          "protocol": "string",
          "provisioningState": "string",
          "sslCertificate": {
            "id": "string"
          }
        }
      }
    ],
    "provisioningState": "string",
    "requestRoutingRules": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "backendAddressPool": {
            "id": "string"
          },
          "backendHttpSettings": {
            "id": "string"
          },
          "httpListener": {
            "id": "string"
          },
          "provisioningState": "string",
          "ruleType": "string"
        }
      }
    ],
    "resourceGuid": "string",
    "sku": {
      "capacity": "int",
      "name": "string",
      "tier": "string"
    },
    "sslCertificates": [
      {
        "etag": "string",
        "id": "string",
        "name": "string",
        "properties": {
          "data": "string",
          "password": "string",
          "provisioningState": "string",
          "publicCertData": "string"
        }
      }
    ]
  },
  "tags": {
    "{customized property}": "string"
  }
}

プロパティ値

Microsoft.Network/applicationGateways (アプリケーションゲートウェイ)

名前 形容 価値
apiVersion (英語) API のバージョン '2015-05-01-プレビュー'
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列を取得します。 文字列
位置 リソースの場所 string (必須)
名前 リソース名 string (必須)
プロパティ Application Gateway のプロパティ ApplicationGatewayPropertiesFormat の
タグ リソース タグ タグ名と値のディクショナリ。 テンプレート の タグを参照してください
リソースの種類 'Microsoft.Network/applicationGateways'

ApplicationGatewayBackendアドレス

名前 形容 価値
FQDNの DNS 名を取得または設定します。 文字列
IPアドレス IP アドレスを取得または設定します。 文字列

ApplicationGatewayBackendAddressPool

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プールのプロパティ ApplicationGatewayBackendAddressPoolPropertiesFormat の

ApplicationGatewayBackendAddressPoolPropertiesFormat

名前 形容 価値
バックエンドアドレス バックエンド アドレスを取得または設定します。 ApplicationGatewayBackendアドレス[]
バックエンドIPConfigurations アプリケーション ゲートウェイの backendIPConfiguration を取得または設定します。 サブリソース[]
プロビジョニング状態 バックエンド アドレス プール リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列

ApplicationGatewayBackendHttp設定

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プール設定のプロパティ ApplicationGatewayBackendHttpSettingsPropertiesFormat の

ApplicationGatewayBackendHttpSettingsPropertiesFormat

名前 形容 価値
cookieBasedアフィニティ Cookie アフィニティを取得または設定します。 「無効」
「有効」
ポート ポートを取得または設定します。 整数 (int)
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 バックエンド http 設定リソースのプロビジョニング状態を取得または設定更新中/削除中/失敗 文字列

ApplicationGatewayFrontendIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド IP 構成のプロパティ ApplicationGatewayFrontendIPConfigurationPropertiesFormat の

ApplicationGatewayFrontendIPConfigurationPropertiesFormat

名前 形容 価値
プライベートIPアドレス ネットワーク インターフェイス IP 構成の privateIPAddress を取得または設定します。 文字列
privateIPAllocationメソッド PrivateIP の割り当て方法 (Static/Dynamic) を取得または設定します。 「ダイナミック」
「静的」
プロビジョニング状態 PublicIP リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicIPアドレス PublicIP リソースの参照を取得または設定します。 SubResource の
サブネット サブネット リソースの参照を取得または設定します。 SubResource の

ApplicationGatewayフロントエンドポート

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド ポートのプロパティ ApplicationGatewayFrontendPortPropertiesFormat の

ApplicationGatewayFrontendPortPropertiesFormat

名前 形容 価値
ポート フロントエンド ポートを取得または設定します。 整数 (int)
プロビジョニング状態 フロントエンド ポート リソースのプロビジョニング状態の更新/削除/失敗を取得または設定します。 文字列

アプリケーションゲートウェイHttpListener

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの Http リスナーのプロパティ ApplicationGatewayHttpListenerPropertiesFormat の

ApplicationGatewayHttpListenerPropertiesFormat

名前 形容 価値
フロントエンドIPConfiguration アプリケーション ゲートウェイのフロントエンド IP 構成リソースを取得または設定します。 SubResource の
フロントエンドポート アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 http リスナー リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ssl証明書 アプリケーション ゲートウェイの SSL 証明書リソースを取得または設定します。 SubResource の

ApplicationGatewayIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの IP 構成のプロパティ ApplicationGatewayIPConfigurationPropertiesFormat の

ApplicationGatewayIPConfigurationPropertiesFormat

名前 形容 価値
プロビジョニング状態 アプリケーション ゲートウェイ サブネット リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
サブネット サブネット リソースの参照を取得または設定します。アプリケーション ゲートウェイがプライベート アドレスを取得するサブネット SubResource の

ApplicationGatewayPropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイ リソースのバックエンド アドレス プールを取得または設定します。 ApplicationGatewayBackendAddressPool[]
backendHttpSettingsCollection アプリケーション ゲートウェイ リソースのバックエンド http 設定を取得または設定します。 ApplicationGatewayBackendHttpSettings[]
フロントエンドIPConfigurations アプリケーション ゲートウェイ リソースのフロントエンド IP アドレスを取得または設定します。 ApplicationGatewayFrontendIPConfiguration[]
フロントエンドポート アプリケーション ゲートウェイ リソースのフロントエンド ポートを取得または設定します。 ApplicationGatewayフロントエンドポート[]
gatewayIPConfigurations アプリケーション ゲートウェイ リソースのサブネットを取得または設定します。 ApplicationGatewayIPConfiguration[]
httpリスナー アプリケーション ゲートウェイ リソースの HTTP リスナーを取得または設定します。 ApplicationGatewayHttpListener[]
プロビジョニング状態 ApplicationGateway リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
requestRoutingRules (リクエストルーティングルール) アプリケーション ゲートウェイ リソースの要求ルーティング規則を取得または設定します。 ApplicationGatewayRequestRoutingRule[]
リソースギッド ApplicationGateway リソースのリソース guid プロパティを取得または設定します。 文字列
エスケーユー アプリケーション ゲートウェイ リソースの SKU を取得または設定します。 ApplicationGatewaySku の
ssl証明書 アプリケーション ゲートウェイ リソースの SSL 証明書を取得または設定します。 ApplicationGatewaySsl証明書[]

ApplicationGatewayRequestRoutingRule

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの要求ルーティング規則のプロパティ ApplicationGatewayRequestRoutingRulePropertiesFormat の

ApplicationGatewayRequestRoutingRulePropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイのバックエンド アドレス プール リソースを取得または設定します。 SubResource の
バックエンドHttpSettings アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
httpリスナー アプリケーション ゲートウェイの http リスナー リソースを取得または設定します。 SubResource の
プロビジョニング状態 要求ルーティング 規則リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ルールタイプ 規則の種類を取得または設定します。 「ベーシック」

ApplicationGatewaySku の

名前 形容 価値
キャパシティ アプリケーション ゲートウェイの容量 (インスタンス数) を取得または設定します。 整数 (int)
名前 アプリケーション ゲートウェイ SKU の名前を取得または設定します。 「Standard_Large」
「Standard_Medium」
「Standard_Small」
レベル アプリケーション ゲートウェイの層を取得または設定します。 「スタンダード」

ApplicationGatewaySsl証明書

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの SSL 証明書のプロパティ ApplicationGatewaySslCertificatePropertiesFormat の

ApplicationGatewaySslCertificatePropertiesFormat

名前 形容 価値
データ 証明書データを取得または設定します。 文字列
パスワード 証明書のパスワードを取得または設定します。 文字列
プロビジョニング状態 Ssl 証明書リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicCertData の 証明書のパブリック データを取得または設定します。 文字列

リソースタグ

名前 形容 価値

サブリソース

名前 形容 価値
身分証明書 リソース ID 文字列

Terraform (AzAPI プロバイダー) リソース定義

applicationGateways リソースの種類は、次をターゲットとする操作と共にデプロイできます。

  • リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。

使用例

Terraformサンプル

Application Gateway のデプロイの基本的な例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "publicIPAddress" {
  type      = "Microsoft.Network/publicIPAddresses@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      ddosSettings = {
        protectionMode = "VirtualNetworkInherited"
      }
      idleTimeoutInMinutes     = 4
      publicIPAddressVersion   = "IPv4"
      publicIPAllocationMethod = "Static"
    }
    sku = {
      name = "Standard"
      tier = "Regional"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "virtualNetwork" {
  type      = "Microsoft.Network/virtualNetworks@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      addressSpace = {
        addressPrefixes = [
          "10.0.0.0/16",
        ]
      }
      dhcpOptions = {
        dnsServers = [
        ]
      }
      subnets = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
  lifecycle {
    ignore_changes = [body.properties.subnets]
  }
}

resource "azapi_resource" "subnet" {
  type      = "Microsoft.Network/virtualNetworks/subnets@2022-07-01"
  parent_id = azapi_resource.virtualNetwork.id
  name      = "subnet-230630033653837171"
  body = {
    properties = {
      addressPrefix = "10.0.0.0/24"
      delegations = [
      ]
      privateEndpointNetworkPolicies    = "Enabled"
      privateLinkServiceNetworkPolicies = "Disabled"
      serviceEndpointPolicies = [
      ]
      serviceEndpoints = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

data "azapi_resource_id" "applicationGateway" {
  type      = "Microsoft.Network/applicationGateways@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
}

data "azapi_resource_id" "frontendIPConfiguration" {
  type      = "Microsoft.Network/applicationGateways/frontendIPConfigurations@2022-07-01"
  parent_id = data.azapi_resource_id.applicationGateway.id
  name      = "${azapi_resource.virtualNetwork.name}-feip"
}

data "azapi_resource_id" "frontendPort" {
  type      = "Microsoft.Network/applicationGateways/frontendPorts@2022-07-01"
  parent_id = data.azapi_resource_id.applicationGateway.id
  name      = "${azapi_resource.virtualNetwork.name}-feport"
}

data "azapi_resource_id" "backendAddressPool" {
  type      = "Microsoft.Network/applicationGateways/backendAddressPools@2022-07-01"
  parent_id = data.azapi_resource_id.applicationGateway.id
  name      = "${azapi_resource.virtualNetwork.name}-beap"
}

data "azapi_resource_id" "backendHttpSettingsCollection" {
  type      = "Microsoft.Network/applicationGateways/backendHttpSettingsCollection@2022-07-01"
  parent_id = data.azapi_resource_id.applicationGateway.id
  name      = "${azapi_resource.virtualNetwork.name}-be-htst"
}

data "azapi_resource_id" "httpListener" {
  type      = "Microsoft.Network/applicationGateways/httpListeners@2022-07-01"
  parent_id = data.azapi_resource_id.applicationGateway.id
  name      = "${azapi_resource.virtualNetwork.name}-httplstn"
}

resource "azapi_resource" "applicationGateway" {
  type      = "Microsoft.Network/applicationGateways@2022-07-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      authenticationCertificates = [
      ]
      backendAddressPools = [
        {
          name = data.azapi_resource_id.backendAddressPool.name
          properties = {
            backendAddresses = [
            ]
          }
        },
      ]
      backendHttpSettingsCollection = [
        {
          name = data.azapi_resource_id.backendHttpSettingsCollection.name
          properties = {
            authenticationCertificates = [
            ]
            cookieBasedAffinity            = "Disabled"
            path                           = ""
            pickHostNameFromBackendAddress = false
            port                           = 80
            protocol                       = "Http"
            requestTimeout                 = 1
            trustedRootCertificates = [
            ]
          }
        },
      ]
      customErrorConfigurations = [
      ]
      enableHttp2 = false
      frontendIPConfigurations = [
        {
          name = data.azapi_resource_id.frontendIPConfiguration.name
          properties = {
            privateIPAllocationMethod = "Dynamic"
            publicIPAddress = {
              id = azapi_resource.publicIPAddress.id
            }
          }
        },
      ]
      frontendPorts = [
        {
          name = data.azapi_resource_id.frontendPort.name
          properties = {
            port = 80
          }
        },
      ]
      gatewayIPConfigurations = [
        {
          name = "my-gateway-ip-configuration"
          properties = {
            subnet = {
              id = azapi_resource.subnet.id
            }
          }
        },
      ]
      httpListeners = [
        {
          name = data.azapi_resource_id.httpListener.name
          properties = {
            customErrorConfigurations = [
            ]
            frontendIPConfiguration = {
              id = data.azapi_resource_id.frontendIPConfiguration.id
            }
            frontendPort = {
              id = data.azapi_resource_id.frontendPort.id
            }
            protocol                    = "Http"
            requireServerNameIndication = false
          }
        },
      ]
      privateLinkConfigurations = [
      ]
      probes = [
      ]
      redirectConfigurations = [
      ]
      requestRoutingRules = [
        {
          name = "${azapi_resource.virtualNetwork.name}-rqrt"
          properties = {
            backendAddressPool = {
              id = data.azapi_resource_id.backendAddressPool.id
            }
            backendHttpSettings = {
              id = data.azapi_resource_id.backendHttpSettingsCollection.id
            }
            httpListener = {
              id = data.azapi_resource_id.httpListener.id
            }
            ruleType = "Basic"
            priority = 10
          }
        },
      ]
      rewriteRuleSets = [
      ]
      sku = {
        capacity = 2
        name     = "Standard_v2"
        tier     = "Standard_v2"
      }
      sslCertificates = [
      ]
      sslPolicy = {
      }
      sslProfiles = [
      ]
      trustedClientCertificates = [
      ]
      trustedRootCertificates = [
      ]
      urlPathMaps = [
      ]
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

Azure 検証済みモジュール

次の Azure 検証済みモジュール を使用して、このリソースの種類をデプロイできます。

モジュール 形容
アプリケーションゲートウェイ Application Gateway 用 AVM リソース モジュール

リソースの形式

Microsoft.Network/applicationGateways リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/applicationGateways@2015-05-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    etag = "string"
    properties = {
      backendAddressPools = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            backendAddresses = [
              {
                fqdn = "string"
                ipAddress = "string"
              }
            ]
            backendIPConfigurations = [
              {
                id = "string"
              }
            ]
            provisioningState = "string"
          }
        }
      ]
      backendHttpSettingsCollection = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            cookieBasedAffinity = "string"
            port = int
            protocol = "string"
            provisioningState = "string"
          }
        }
      ]
      frontendIPConfigurations = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            privateIPAddress = "string"
            privateIPAllocationMethod = "string"
            provisioningState = "string"
            publicIPAddress = {
              id = "string"
            }
            subnet = {
              id = "string"
            }
          }
        }
      ]
      frontendPorts = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            port = int
            provisioningState = "string"
          }
        }
      ]
      gatewayIPConfigurations = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            provisioningState = "string"
            subnet = {
              id = "string"
            }
          }
        }
      ]
      httpListeners = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            frontendIPConfiguration = {
              id = "string"
            }
            frontendPort = {
              id = "string"
            }
            protocol = "string"
            provisioningState = "string"
            sslCertificate = {
              id = "string"
            }
          }
        }
      ]
      provisioningState = "string"
      requestRoutingRules = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            backendAddressPool = {
              id = "string"
            }
            backendHttpSettings = {
              id = "string"
            }
            httpListener = {
              id = "string"
            }
            provisioningState = "string"
            ruleType = "string"
          }
        }
      ]
      resourceGuid = "string"
      sku = {
        capacity = int
        name = "string"
        tier = "string"
      }
      sslCertificates = [
        {
          etag = "string"
          id = "string"
          name = "string"
          properties = {
            data = "string"
            password = "string"
            provisioningState = "string"
            publicCertData = "string"
          }
        }
      ]
    }
  }
}

プロパティ値

Microsoft.Network/applicationGateways (アプリケーションゲートウェイ)

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列を取得します。 文字列
位置 リソースの場所 string (必須)
名前 リソース名 string (必須)
プロパティ Application Gateway のプロパティ ApplicationGatewayPropertiesFormat の
タグ リソース タグ タグ名と値のディクショナリ。
リソースの種類 「Microsoft.Network/applicationGateways@2015-05-01-preview」

ApplicationGatewayBackendアドレス

名前 形容 価値
FQDNの DNS 名を取得または設定します。 文字列
IPアドレス IP アドレスを取得または設定します。 文字列

ApplicationGatewayBackendAddressPool

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プールのプロパティ ApplicationGatewayBackendAddressPoolPropertiesFormat の

ApplicationGatewayBackendAddressPoolPropertiesFormat

名前 形容 価値
バックエンドアドレス バックエンド アドレスを取得または設定します。 ApplicationGatewayBackendアドレス[]
バックエンドIPConfigurations アプリケーション ゲートウェイの backendIPConfiguration を取得または設定します。 サブリソース[]
プロビジョニング状態 バックエンド アドレス プール リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列

ApplicationGatewayBackendHttp設定

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのバックエンド アドレス プール設定のプロパティ ApplicationGatewayBackendHttpSettingsPropertiesFormat の

ApplicationGatewayBackendHttpSettingsPropertiesFormat

名前 形容 価値
cookieBasedアフィニティ Cookie アフィニティを取得または設定します。 「無効」
「有効」
ポート ポートを取得または設定します。 整数 (int)
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 バックエンド http 設定リソースのプロビジョニング状態を取得または設定更新中/削除中/失敗 文字列

ApplicationGatewayFrontendIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド IP 構成のプロパティ ApplicationGatewayFrontendIPConfigurationPropertiesFormat の

ApplicationGatewayFrontendIPConfigurationPropertiesFormat

名前 形容 価値
プライベートIPアドレス ネットワーク インターフェイス IP 構成の privateIPAddress を取得または設定します。 文字列
privateIPAllocationメソッド PrivateIP の割り当て方法 (Static/Dynamic) を取得または設定します。 「ダイナミック」
「静的」
プロビジョニング状態 PublicIP リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicIPアドレス PublicIP リソースの参照を取得または設定します。 SubResource の
サブネット サブネット リソースの参照を取得または設定します。 SubResource の

ApplicationGatewayフロントエンドポート

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイのフロントエンド ポートのプロパティ ApplicationGatewayFrontendPortPropertiesFormat の

ApplicationGatewayFrontendPortPropertiesFormat

名前 形容 価値
ポート フロントエンド ポートを取得または設定します。 整数 (int)
プロビジョニング状態 フロントエンド ポート リソースのプロビジョニング状態の更新/削除/失敗を取得または設定します。 文字列

アプリケーションゲートウェイHttpListener

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの Http リスナーのプロパティ ApplicationGatewayHttpListenerPropertiesFormat の

ApplicationGatewayHttpListenerPropertiesFormat

名前 形容 価値
フロントエンドIPConfiguration アプリケーション ゲートウェイのフロントエンド IP 構成リソースを取得または設定します。 SubResource の
フロントエンドポート アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
プロトコル プロトコルを取得または設定します。 'http'
「https」
プロビジョニング状態 http リスナー リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ssl証明書 アプリケーション ゲートウェイの SSL 証明書リソースを取得または設定します。 SubResource の

ApplicationGatewayIPConfiguration

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの IP 構成のプロパティ ApplicationGatewayIPConfigurationPropertiesFormat の

ApplicationGatewayIPConfigurationPropertiesFormat

名前 形容 価値
プロビジョニング状態 アプリケーション ゲートウェイ サブネット リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
サブネット サブネット リソースの参照を取得または設定します。アプリケーション ゲートウェイがプライベート アドレスを取得するサブネット SubResource の

ApplicationGatewayPropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイ リソースのバックエンド アドレス プールを取得または設定します。 ApplicationGatewayBackendAddressPool[]
backendHttpSettingsCollection アプリケーション ゲートウェイ リソースのバックエンド http 設定を取得または設定します。 ApplicationGatewayBackendHttpSettings[]
フロントエンドIPConfigurations アプリケーション ゲートウェイ リソースのフロントエンド IP アドレスを取得または設定します。 ApplicationGatewayFrontendIPConfiguration[]
フロントエンドポート アプリケーション ゲートウェイ リソースのフロントエンド ポートを取得または設定します。 ApplicationGatewayフロントエンドポート[]
gatewayIPConfigurations アプリケーション ゲートウェイ リソースのサブネットを取得または設定します。 ApplicationGatewayIPConfiguration[]
httpリスナー アプリケーション ゲートウェイ リソースの HTTP リスナーを取得または設定します。 ApplicationGatewayHttpListener[]
プロビジョニング状態 ApplicationGateway リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
requestRoutingRules (リクエストルーティングルール) アプリケーション ゲートウェイ リソースの要求ルーティング規則を取得または設定します。 ApplicationGatewayRequestRoutingRule[]
リソースギッド ApplicationGateway リソースのリソース guid プロパティを取得または設定します。 文字列
エスケーユー アプリケーション ゲートウェイ リソースの SKU を取得または設定します。 ApplicationGatewaySku の
ssl証明書 アプリケーション ゲートウェイ リソースの SSL 証明書を取得または設定します。 ApplicationGatewaySsl証明書[]

ApplicationGatewayRequestRoutingRule

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの要求ルーティング規則のプロパティ ApplicationGatewayRequestRoutingRulePropertiesFormat の

ApplicationGatewayRequestRoutingRulePropertiesFormat

名前 形容 価値
バックエンドアドレスプール アプリケーション ゲートウェイのバックエンド アドレス プール リソースを取得または設定します。 SubResource の
バックエンドHttpSettings アプリケーション ゲートウェイのフロントエンド ポート リソースを取得または設定します。 SubResource の
httpリスナー アプリケーション ゲートウェイの http リスナー リソースを取得または設定します。 SubResource の
プロビジョニング状態 要求ルーティング 規則リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
ルールタイプ 規則の種類を取得または設定します。 「ベーシック」

ApplicationGatewaySku の

名前 形容 価値
キャパシティ アプリケーション ゲートウェイの容量 (インスタンス数) を取得または設定します。 整数 (int)
名前 アプリケーション ゲートウェイ SKU の名前を取得または設定します。 「Standard_Large」
「Standard_Medium」
「Standard_Small」
レベル アプリケーション ゲートウェイの層を取得または設定します。 「スタンダード」

ApplicationGatewaySsl証明書

名前 形容 価値
ETAGの リソースが更新されるたびに変更される一意の読み取り専用文字列 文字列
身分証明書 リソース ID 文字列
名前 リソース グループ内で一意のリソースの名前を取得します。 この名前は、リソースへのアクセスに使用できます 文字列
プロパティ アプリケーション ゲートウェイの SSL 証明書のプロパティ ApplicationGatewaySslCertificatePropertiesFormat の

ApplicationGatewaySslCertificatePropertiesFormat

名前 形容 価値
データ 証明書データを取得または設定します。 文字列
パスワード 証明書のパスワードを取得または設定します。 文字列
プロビジョニング状態 Ssl 証明書リソースの更新/削除/失敗のプロビジョニング状態を取得または設定します。 文字列
publicCertData の 証明書のパブリック データを取得または設定します。 文字列

リソースタグ

名前 形容 価値

サブリソース

名前 形容 価値
身分証明書 リソース ID 文字列