Microsoft.AppPlatform Spring/apps

Bicep リソース定義

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

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

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

リソースの形式

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

resource symbolicname 'Microsoft.AppPlatform/Spring/apps@2024-05-01-preview' = {
  name: 'string'
  location: 'string'
  parent: resourceSymbolicName
  identity: {
    principalId: 'string'
    tenantId: 'string'
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  properties: {
    addonConfigs: {
      {customized property}: any()
    }
    customPersistentDisks: [
      {
        customPersistentDiskProperties: {
          enableSubPath: bool
          mountOptions: [
            'string'
          ]
          mountPath: 'string'
          readOnly: bool
          type: 'string'
          // For remaining properties, see CustomPersistentDiskProperties objects
        }
        storageId: 'string'
      }
    ]
    enableEndToEndTLS: bool
    httpsOnly: bool
    ingressSettings: {
      backendProtocol: 'string'
      clientAuth: {
        certificates: [
          'string'
        ]
      }
      readTimeoutInSeconds: int
      sendTimeoutInSeconds: int
      sessionAffinity: 'string'
      sessionCookieMaxAge: int
    }
    loadedCertificates: [
      {
        loadTrustStore: bool
        resourceId: 'string'
      }
    ]
    persistentDisk: {
      mountPath: 'string'
      sizeInGB: int
    }
    public: bool
    secrets: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    temporaryDisk: {
      mountPath: 'string'
      sizeInGB: int
    }
    testEndpointAuthState: 'string'
    vnetAddons: {
      publicEndpoint: bool
    }
    workloadProfileName: 'string'
  }
}

CustomPersistentDiskProperties オブジェクト

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

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

  type: 'AzureFileVolume'
  shareName: 'string'

プロパティ値

Spring/apps

名前 形容 価値
名前 リソース名

Bicepで子リソースの名前と種類 設定する方法を参照してください。
string (必須)
場所 アプリケーションの GEO の場所 (親リソースと常に同じ)
Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

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

ManagedIdentityProperties

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

UserAssignedManagedIdentities

名前 形容 価値
{カスタマイズされたプロパティ} UserAssignedManagedIdentity の

UserAssignedManagedIdentity

このオブジェクトには、配置時に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 bool
httpsOnly https のみが許可されているかどうかを示します。 bool
ingressSettings アプリのイングレス設定ペイロード。 IngressSettings の
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します bool
秘密 認証シークレットのコレクション シークレット[]
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
testEndpointAuthState テスト エンドポイント認証の状態。 'Disabled'
'Enabled'
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の
workloadProfileName このアプリに使用されるワークロード プロファイル。 従量課金 + 専用プランでサポートされます。

AppResourcePropertiesAddonConfigs

名前 形容 価値
{カスタマイズされたプロパティ} Bicep の場合は、any() 関数を使用できます。

CustomPersistentDiskResource

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

CustomPersistentDiskProperties

名前 形容 価値
enableSubPath true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 bool
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 bool
種類 オブジェクトの種類を設定する AzureFileVolume (必須)

AzureFileVolume

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

IngressSettings

名前 形容 価値
backendProtocol イングレスがこのアプリ バックエンド サービスと通信する方法。 'Default'
'GRPC'
clientAuth Client-Certification 認証。 IngressSettingsClientAuth の
readTimeoutInSeconds イングレス読み取りタイムアウト (秒単位)。 int
sendTimeoutInSeconds イングレス送信タイムアウト (秒単位)。 int
sessionAffinity アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 'Cookie'
'None'
sessionCookieMaxAge Cookie の有効期限が切れるまでの時間 (秒単位)。 int

IngressSettingsClientAuth

名前 形容 価値
証明 書 証明書リソース ID のコレクション。 string[]

LoadedCertificate

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

PersistentDisk

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

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

秘密

名前 形容 価値
名前 シークレット名。
価値 シークレット値。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

TemporaryDisk

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

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

AppVNetAddons

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

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

次のクイック スタート テンプレートでは、このリソースの種類をデプロイします。

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

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

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

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

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

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

リソースの形式

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

{
  "type": "Microsoft.AppPlatform/Spring/apps",
  "apiVersion": "2024-05-01-preview",
  "name": "string",
  "location": "string",
  "identity": {
    "principalId": "string",
    "tenantId": "string",
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {}
    }
  },
  "properties": {
    "addonConfigs": {
      "{customized property}": {}
    },
    "customPersistentDisks": [
      {
        "customPersistentDiskProperties": {
          "enableSubPath": "bool",
          "mountOptions": [ "string" ],
          "mountPath": "string",
          "readOnly": "bool",
          "type": "string"
          // For remaining properties, see CustomPersistentDiskProperties objects
        },
        "storageId": "string"
      }
    ],
    "enableEndToEndTLS": "bool",
    "httpsOnly": "bool",
    "ingressSettings": {
      "backendProtocol": "string",
      "clientAuth": {
        "certificates": [ "string" ]
      },
      "readTimeoutInSeconds": "int",
      "sendTimeoutInSeconds": "int",
      "sessionAffinity": "string",
      "sessionCookieMaxAge": "int"
    },
    "loadedCertificates": [
      {
        "loadTrustStore": "bool",
        "resourceId": "string"
      }
    ],
    "persistentDisk": {
      "mountPath": "string",
      "sizeInGB": "int"
    },
    "public": "bool",
    "secrets": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "temporaryDisk": {
      "mountPath": "string",
      "sizeInGB": "int"
    },
    "testEndpointAuthState": "string",
    "vnetAddons": {
      "publicEndpoint": "bool"
    },
    "workloadProfileName": "string"
  }
}

CustomPersistentDiskProperties オブジェクト

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

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

  "type": "AzureFileVolume",
  "shareName": "string"

プロパティ値

Spring/apps

名前 形容 価値
種類 リソースの種類 'Microsoft.AppPlatform/Spring/apps'
apiVersion リソース API のバージョン '2024-05-01-preview'
名前 リソース名

JSON ARM テンプレートで子リソースの名前と型 設定する方法を参照してください。
string (必須)
場所 アプリケーションの GEO の場所 (親リソースと常に同じ)
同一性 アプリ リソースのマネージド ID の種類 ManagedIdentityProperties
プロパティ アプリ リソースのプロパティ AppResourceProperties の

ManagedIdentityProperties

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

UserAssignedManagedIdentities

名前 形容 価値
{カスタマイズされたプロパティ} UserAssignedManagedIdentity の

UserAssignedManagedIdentity

このオブジェクトには、配置時に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 bool
httpsOnly https のみが許可されているかどうかを示します。 bool
ingressSettings アプリのイングレス設定ペイロード。 IngressSettings の
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します bool
秘密 認証シークレットのコレクション シークレット[]
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
testEndpointAuthState テスト エンドポイント認証の状態。 'Disabled'
'Enabled'
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の
workloadProfileName このアプリに使用されるワークロード プロファイル。 従量課金 + 専用プランでサポートされます。

AppResourcePropertiesAddonConfigs

名前 形容 価値
{カスタマイズされたプロパティ}

CustomPersistentDiskResource

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

CustomPersistentDiskProperties

名前 形容 価値
enableSubPath true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 bool
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 bool
種類 オブジェクトの種類を設定する AzureFileVolume (必須)

AzureFileVolume

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

IngressSettings

名前 形容 価値
backendProtocol イングレスがこのアプリ バックエンド サービスと通信する方法。 'Default'
'GRPC'
clientAuth Client-Certification 認証。 IngressSettingsClientAuth の
readTimeoutInSeconds イングレス読み取りタイムアウト (秒単位)。 int
sendTimeoutInSeconds イングレス送信タイムアウト (秒単位)。 int
sessionAffinity アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 'Cookie'
'None'
sessionCookieMaxAge Cookie の有効期限が切れるまでの時間 (秒単位)。 int

IngressSettingsClientAuth

名前 形容 価値
証明 書 証明書リソース ID のコレクション。 string[]

LoadedCertificate

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

PersistentDisk

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

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

秘密

名前 形容 価値
名前 シークレット名。
価値 シークレット値。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

TemporaryDisk

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

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

AppVNetAddons

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

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

次のクイック スタート テンプレートでは、このリソースの種類をデプロイします。

テンプレート 形容
単純な 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@2024-05-01-preview"
  name = "string"
  location = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = []
  }
  body = jsonencode({
    properties = {
      addonConfigs = {}
      customPersistentDisks = [
        {
          customPersistentDiskProperties = {
            enableSubPath = bool
            mountOptions = [
              "string"
            ]
            mountPath = "string"
            readOnly = bool
            type = "string"
            // For remaining properties, see CustomPersistentDiskProperties objects
          }
          storageId = "string"
        }
      ]
      enableEndToEndTLS = bool
      httpsOnly = bool
      ingressSettings = {
        backendProtocol = "string"
        clientAuth = {
          certificates = [
            "string"
          ]
        }
        readTimeoutInSeconds = int
        sendTimeoutInSeconds = int
        sessionAffinity = "string"
        sessionCookieMaxAge = int
      }
      loadedCertificates = [
        {
          loadTrustStore = bool
          resourceId = "string"
        }
      ]
      persistentDisk = {
        mountPath = "string"
        sizeInGB = int
      }
      public = bool
      secrets = [
        {
          name = "string"
          value = "string"
        }
      ]
      temporaryDisk = {
        mountPath = "string"
        sizeInGB = int
      }
      testEndpointAuthState = "string"
      vnetAddons = {
        publicEndpoint = bool
      }
      workloadProfileName = "string"
    }
  })
}

CustomPersistentDiskProperties オブジェクト

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

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

  type = "AzureFileVolume"
  shareName = "string"

プロパティ値

Spring/apps

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

ManagedIdentityProperties

名前 形容 価値
種類 マネージド ID の種類 "SystemAssigned"
"SystemAssigned,UserAssigned"
"UserAssigned"
identity_ids ユーザー割り当てマネージド ID のプロパティ ユーザー ID ID の配列。

UserAssignedManagedIdentities

名前 形容 価値
{カスタマイズされたプロパティ} UserAssignedManagedIdentity の

UserAssignedManagedIdentity

このオブジェクトには、配置時に設定するプロパティは含まれません。 すべてのプロパティは ReadOnly です。

AppResourceProperties

名前 形容 価値
addonConfigs アドオンのコレクション AppResourcePropertiesAddonConfigs
customPersistentDisks カスタム永続ディスクの一覧 CustomPersistentDiskResource[]
enableEndToEndTLS エンド ツー エンド TLS が有効になっているかどうかを示します。 bool
httpsOnly https のみが許可されているかどうかを示します。 bool
ingressSettings アプリのイングレス設定ペイロード。 IngressSettings の
loadedCertificates 読み込まれた証明書のコレクション LoadedCertificate[]
persistentDisk 永続ディスクの設定 PersistentDisk の
公共 アプリがパブリック エンドポイントを公開するかどうかを示します bool
秘密 認証シークレットのコレクション シークレット[]
temporaryDisk 一時ディスクの設定 TemporaryDisk を する
testEndpointAuthState テスト エンドポイント認証の状態。 "無効"
"有効"
vnetAddons vnet インジェクション インスタンスの追加のアプリ設定 AppVNetAddons の
workloadProfileName このアプリに使用されるワークロード プロファイル。 従量課金 + 専用プランでサポートされます。

AppResourcePropertiesAddonConfigs

名前 形容 価値
{カスタマイズされたプロパティ}

CustomPersistentDiskResource

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

CustomPersistentDiskProperties

名前 形容 価値
enableSubPath true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 bool
mountOptions 永続ディスクのマウント オプションは次のとおりです。 string[]
mountPath 永続ディスクのマウント パス。 string (必須)
readOnly 永続ディスクが readOnly ディスクかどうかを示します。 bool
種類 オブジェクトの種類を設定する AzureFileVolume (必須)

AzureFileVolume

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

IngressSettings

名前 形容 価値
backendProtocol イングレスがこのアプリ バックエンド サービスと通信する方法。 "Default"
"GRPC"
clientAuth Client-Certification 認証。 IngressSettingsClientAuth の
readTimeoutInSeconds イングレス読み取りタイムアウト (秒単位)。 int
sendTimeoutInSeconds イングレス送信タイムアウト (秒単位)。 int
sessionAffinity アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 "Cookie"
"なし"
sessionCookieMaxAge Cookie の有効期限が切れるまでの時間 (秒単位)。 int

IngressSettingsClientAuth

名前 形容 価値
証明 書 証明書リソース ID のコレクション。 string[]

LoadedCertificate

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

PersistentDisk

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

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

秘密

名前 形容 価値
名前 シークレット名。
価値 シークレット値。

制約:
機密性の高い値。 セキュリティで保護されたパラメーターとして渡します。

TemporaryDisk

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

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

AppVNetAddons

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