Microsoft.AppPlatform Spring/apps 2022-05-01-preview

注釈

注:Azure Spring Apps Applications(Microsoft.AppPlatform/Spring/apps)は現在推奨終了となり、2028年5月31日に廃止されます。 詳細については、https://aka.ms/asaretirement を参照してください。

Bicep リソース定義

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

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

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

リソースの形式

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

resource symbolicname 'Microsoft.AppPlatform/Spring/apps@2022-05-01-preview' = {
  parent: resourceSymbolicName
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    addonConfigs: {
      {customized property}: {
        {customized property}: any(...)
      }
    }
    customPersistentDisks: [
      {
        customPersistentDiskProperties: {
          mountOptions: [
            'string'
          ]
          mountPath: 'string'
          readOnly: bool
          type: 'string'
          // For remaining properties, see CustomPersistentDiskProperties objects
        }
        storageId: 'string'
      }
    ]
    enableEndToEndTLS: bool
    fqdn: 'string'
    httpsOnly: bool
    loadedCertificates: [
      {
        loadTrustStore: bool
        resourceId: 'string'
      }
    ]
    persistentDisk: {
      mountPath: 'string'
      sizeInGB: int
    }
    public: bool
    temporaryDisk: {
      mountPath: 'string'
      sizeInGB: int
    }
    vnetAddons: {
      publicEndpoint: bool
    }
  }
}

CustomPersistentDiskProperties オブジェクト

プロパティを設定して、オブジェクトの型を指定します。

AzureFileVolumeを する場合は、次を使用します。

{
  shareName: 'string'
  type: 'AzureFileVolume'
}

プロパティ値

Microsoft.AppPlatform/Spring/apps

名前 形容 価値
ID アプリ リソースのマネージド ID の種類 ManagedIdentityProperties
位置 アプリケーションの GEO の場所 (親リソースと常に同じ) 文字列
名前 リソース名 string (必須)
Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「親リソースの外部 子リソース」を参照してください。
種類のリソースのシンボリック名: Spring
プロパティ アプリ リソースのプロパティ AppResourceProperties の

AddonProfile

名前 形容 価値

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 ブール (bool)
fqdn 完全修飾 DNS 名。 文字列
httpsOnly https のみが許可されているかどうかを示します。 ブール (bool)
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します ブール (bool)
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の

AppResourcePropertiesAddonConfigs

名前 形容 価値

AppVNetAddons

名前 形容 価値
publicEndpoint vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 ブール (bool)

AzureFileVolume

名前 形容 価値
shareName Azure ファイル共有の共有名。 string (必須)
永続ディスクとしてマウントする基になるリソースの種類。 'AzureFileVolume' (必須)

CustomPersistentDiskProperties

名前 形容 価値
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 ブール (bool)
AzureFileVolumeの種類 'AzureFileVolume' に設定します。 'AzureFileVolume' (必須)

CustomPersistentDiskResource

名前 形容 価値
customPersistentDiskProperties カスタム永続ディスク リソース ペイロードのプロパティ。 CustomPersistentDiskProperties の
storageId Azure Spring Apps Storage リソースのリソース ID。 string (必須)

LoadedCertificate

名前 形容 価値
loadTrustStore 証明書を既定の信頼ストアに読み込むかどうかを示します。Java ランタイムでのみ機能します。 ブール (bool)
リソースID 読み込まれた証明書のリソース ID string (必須)

ManagedIdentityProperties

名前 形容 価値
プリンシパルID システム割り当てマネージド ID のプリンシパル ID。 文字列
テナントID システム割り当てマネージド ID のテナント ID。 文字列
マネージド ID の種類 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities ユーザー割り当てマネージド ID のプロパティ UserAssignedManagedIdentities の

PersistentDisk

名前 形容 価値
mountPath 永続ディスクのマウント パス 文字列
sizeInGB 永続ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 50

TemporaryDisk

名前 形容 価値
mountPath 一時ディスクのマウント パス 文字列
sizeInGB 一時ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 5

UserAssignedManagedIdentities

名前 形容 価値

UserAssignedManagedIdentity

名前 形容 価値

使用例

Bicep サンプル

Azure Spring Cloud アプリケーションをデプロイする基本的な例。

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

resource spring 'Microsoft.AppPlatform/Spring@2023-05-01-preview' = {
  name: resourceName
  location: location
  properties: {
    zoneRedundant: false
  }
  sku: {
    name: 'E0'
  }
}

resource app 'Microsoft.AppPlatform/Spring/apps@2023-05-01-preview' = {
  parent: spring
  name: resourceName
  location: location
  properties: {
    customPersistentDisks: []
    enableEndToEndTLS: false
    public: false
  }
}

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

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

Bicep ファイル 形容
単純な Azure Spring Apps マイクロサービス アプリケーション をデプロイする このテンプレートは、Azure 上で実行する単純な Azure Spring Apps マイクロサービス アプリケーションをデプロイします。

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

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

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

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

リソースの形式

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

{
  "type": "Microsoft.AppPlatform/Spring/apps",
  "apiVersion": "2022-05-01-preview",
  "name": "string",
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "addonConfigs": {
      "{customized property}": {
        "{customized property}": {}
      }
    },
    "customPersistentDisks": [
      {
        "customPersistentDiskProperties": {
          "mountOptions": [ "string" ],
          "mountPath": "string",
          "readOnly": "bool",
          "type": "string"
          // For remaining properties, see CustomPersistentDiskProperties objects
        },
        "storageId": "string"
      }
    ],
    "enableEndToEndTLS": "bool",
    "fqdn": "string",
    "httpsOnly": "bool",
    "loadedCertificates": [
      {
        "loadTrustStore": "bool",
        "resourceId": "string"
      }
    ],
    "persistentDisk": {
      "mountPath": "string",
      "sizeInGB": "int"
    },
    "public": "bool",
    "temporaryDisk": {
      "mountPath": "string",
      "sizeInGB": "int"
    },
    "vnetAddons": {
      "publicEndpoint": "bool"
    }
  }
}

CustomPersistentDiskProperties オブジェクト

プロパティを設定して、オブジェクトの型を指定します。

AzureFileVolumeを する場合は、次を使用します。

{
  "shareName": "string",
  "type": "AzureFileVolume"
}

プロパティ値

Microsoft.AppPlatform/Spring/apps

名前 形容 価値
apiVersion API のバージョン '2022-05-01-preview'
ID アプリ リソースのマネージド ID の種類 ManagedIdentityProperties
位置 アプリケーションの GEO の場所 (親リソースと常に同じ) 文字列
名前 リソース名 string (必須)
プロパティ アプリ リソースのプロパティ AppResourceProperties の
リソースの種類 'Microsoft.AppPlatform/Spring/apps'

AddonProfile

名前 形容 価値

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 ブール (bool)
fqdn 完全修飾 DNS 名。 文字列
httpsOnly https のみが許可されているかどうかを示します。 ブール (bool)
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します ブール (bool)
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の

AppResourcePropertiesAddonConfigs

名前 形容 価値

AppVNetAddons

名前 形容 価値
publicEndpoint vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 ブール (bool)

AzureFileVolume

名前 形容 価値
shareName Azure ファイル共有の共有名。 string (必須)
永続ディスクとしてマウントする基になるリソースの種類。 'AzureFileVolume' (必須)

CustomPersistentDiskProperties

名前 形容 価値
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 ブール (bool)
AzureFileVolumeの種類 'AzureFileVolume' に設定します。 'AzureFileVolume' (必須)

CustomPersistentDiskResource

名前 形容 価値
customPersistentDiskProperties カスタム永続ディスク リソース ペイロードのプロパティ。 CustomPersistentDiskProperties の
storageId Azure Spring Apps Storage リソースのリソース ID。 string (必須)

LoadedCertificate

名前 形容 価値
loadTrustStore 証明書を既定の信頼ストアに読み込むかどうかを示します。Java ランタイムでのみ機能します。 ブール (bool)
リソースID 読み込まれた証明書のリソース ID string (必須)

ManagedIdentityProperties

名前 形容 価値
プリンシパルID システム割り当てマネージド ID のプリンシパル ID。 文字列
テナントID システム割り当てマネージド ID のテナント ID。 文字列
マネージド ID の種類 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities ユーザー割り当てマネージド ID のプロパティ UserAssignedManagedIdentities の

PersistentDisk

名前 形容 価値
mountPath 永続ディスクのマウント パス 文字列
sizeInGB 永続ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 50

TemporaryDisk

名前 形容 価値
mountPath 一時ディスクのマウント パス 文字列
sizeInGB 一時ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 5

UserAssignedManagedIdentities

名前 形容 価値

UserAssignedManagedIdentity

名前 形容 価値

使用例

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

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

テンプレート 形容
単純な Azure Spring Apps マイクロサービス アプリケーション をデプロイする

Azure にデプロイする
このテンプレートは、Azure 上で実行する単純な Azure Spring Apps マイクロサービス アプリケーションをデプロイします。

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

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

  • リソース グループ

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

リソースの形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AppPlatform/Spring/apps@2022-05-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  body = {
    properties = {
      addonConfigs = {
        {customized property} = {
          {customized property} = ?
        }
      }
      customPersistentDisks = [
        {
          customPersistentDiskProperties = {
            mountOptions = [
              "string"
            ]
            mountPath = "string"
            readOnly = bool
            type = "string"
            // For remaining properties, see CustomPersistentDiskProperties objects
          }
          storageId = "string"
        }
      ]
      enableEndToEndTLS = bool
      fqdn = "string"
      httpsOnly = bool
      loadedCertificates = [
        {
          loadTrustStore = bool
          resourceId = "string"
        }
      ]
      persistentDisk = {
        mountPath = "string"
        sizeInGB = int
      }
      public = bool
      temporaryDisk = {
        mountPath = "string"
        sizeInGB = int
      }
      vnetAddons = {
        publicEndpoint = bool
      }
    }
  }
}

CustomPersistentDiskProperties オブジェクト

プロパティを設定して、オブジェクトの型を指定します。

AzureFileVolumeを する場合は、次を使用します。

{
  shareName = "string"
  type = "AzureFileVolume"
}

プロパティ値

Microsoft.AppPlatform/Spring/apps

名前 形容 価値
ID アプリ リソースのマネージド ID の種類 ManagedIdentityProperties
位置 アプリケーションの GEO の場所 (親リソースと常に同じ) 文字列
名前 リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: Spring
プロパティ アプリ リソースのプロパティ AppResourceProperties の
リソースの種類 "Microsoft.AppPlatform/Spring/apps@2022-05-01-preview"

AddonProfile

名前 形容 価値

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 ブール (bool)
fqdn 完全修飾 DNS 名。 文字列
httpsOnly https のみが許可されているかどうかを示します。 ブール (bool)
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します ブール (bool)
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の

AppResourcePropertiesAddonConfigs

名前 形容 価値

AppVNetAddons

名前 形容 価値
publicEndpoint vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 ブール (bool)

AzureFileVolume

名前 形容 価値
shareName Azure ファイル共有の共有名。 string (必須)
永続ディスクとしてマウントする基になるリソースの種類。 'AzureFileVolume' (必須)

CustomPersistentDiskProperties

名前 形容 価値
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 ブール (bool)
AzureFileVolumeの種類 'AzureFileVolume' に設定します。 'AzureFileVolume' (必須)

CustomPersistentDiskResource

名前 形容 価値
customPersistentDiskProperties カスタム永続ディスク リソース ペイロードのプロパティ。 CustomPersistentDiskProperties の
storageId Azure Spring Apps Storage リソースのリソース ID。 string (必須)

LoadedCertificate

名前 形容 価値
loadTrustStore 証明書を既定の信頼ストアに読み込むかどうかを示します。Java ランタイムでのみ機能します。 ブール (bool)
リソースID 読み込まれた証明書のリソース ID string (必須)

ManagedIdentityProperties

名前 形容 価値
プリンシパルID システム割り当てマネージド ID のプリンシパル ID。 文字列
テナントID システム割り当てマネージド ID のテナント ID。 文字列
マネージド ID の種類 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities ユーザー割り当てマネージド ID のプロパティ UserAssignedManagedIdentities の

PersistentDisk

名前 形容 価値
mountPath 永続ディスクのマウント パス 文字列
sizeInGB 永続ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 50

TemporaryDisk

名前 形容 価値
mountPath 一時ディスクのマウント パス 文字列
sizeInGB 一時ディスクのサイズ (GB) int

制約:
最小値 = 0
最大値 = 5

UserAssignedManagedIdentities

名前 形容 価値

UserAssignedManagedIdentity

名前 形容 価値

使用例

Terraformサンプル

Azure Spring Cloud アプリケーションをデプロイする基本的な例。

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" "Spring" {
  type      = "Microsoft.AppPlatform/Spring@2023-05-01-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      zoneRedundant = false
    }
    sku = {
      name = "E0"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "app" {
  type      = "Microsoft.AppPlatform/Spring/apps@2023-05-01-preview"
  parent_id = azapi_resource.Spring.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      customPersistentDisks = [
      ]
      enableEndToEndTLS = false
      public            = false
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}