Microsoft.AppPlatform Spring/apps/deployments 2022-04-01

Bicep リソース定義

Spring/apps/deployments リソースの種類は、次を対象とする操作でデプロイできます。

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

リソース形式

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

resource symbolicname 'Microsoft.AppPlatform/Spring/apps/deployments@2022-04-01' = {
  name: 'string'
  sku: {
    capacity: int
    name: 'string'
    tier: 'string'
  }
  parent: resourceSymbolicName
  properties: {
    active: bool
    deploymentSettings: {
      addonConfigs: {}
      environmentVariables: {}
      resourceRequests: {
        cpu: 'string'
        memory: 'string'
      }
    }
    source: {
      version: 'string'
      type: 'string'
      // For remaining properties, see UserSourceInfo objects
    }
  }
}

UserSourceInfo オブジェクト

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

BuildResult の場合は、次の値を使用します。

  type: 'BuildResult'
  buildResultId: 'string'

Jar の場合は、次の値を使用します。

  type: 'Jar'
  jvmOptions: 'string'
  relativePath: 'string'
  runtimeVersion: 'string'

NetCoreZip の場合は、次の値を使用します。

  type: 'NetCoreZip'
  netCoreMainEntryPath: 'string'
  relativePath: 'string'
  runtimeVersion: 'string'

[ソース] には、次の値を使用します。

  type: 'Source'
  artifactSelector: 'string'
  relativePath: 'string'
  runtimeVersion: 'string'

プロパティ値

Spring/apps/deployments

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
string (必須)
sku デプロイ リソースの SKU SKU
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部にある子リソース」を参照してください。
種類のリソースのシンボル名: アプリ
properties デプロイ リソースのプロパティ DeploymentResourceProperties

DeploymentResourceProperties

名前 説明
active 展開がアクティブかどうかを示します [bool]
deploymentSettings 展開の展開設定 DeploymentSettings
source デプロイのアップロードされたソース情報。 UserSourceInfo

DeploymentSettings

名前 説明
addonConfigs アドオンのコレクション object
environmentVariables 環境変数のコレクション object
resourceRequests 必要な CPU とメモリに対して要求されたリソース量。 このフィールドを使用して必要な CPU とメモリを表し、古いフィールド cpu と memoryInGB は後で非推奨とすることをお勧めします。 ResourceRequests

ResourceRequests

名前 説明
cpu 必要な CPU。 1 コアは 1 または 1000 m で表すことができます。 Basic レベルの場合は 500m または 1、Standard レベルの場合は {500m、1、2、3、4} である必要があります。 string
メモリ 必要なメモリ。 1 GB は、1Gi または 1024Mi で表すことができます。 Basic レベルの場合は {512Mi、1Gi、2Gi}、Standard レベルの場合は {512Mi、1Gi、2Gi、...、8Gi} です。 string

UserSourceInfo

名前 説明
version ソースのバージョン string
type オブジェクトの種類を設定する BuildResult

NetCoreZip
ソース (必須)

BuildResultUserSourceInfo

名前 説明
type アップロードされたソースの種類 'BuildResult' (必須)
buildResultId 同じ Spring インスタンスの下にある既存の成功したビルド結果のリソース ID。 string

JarUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'Jar' (必須)
jvmOptions JVM パラメーター string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion Jar ファイルのランタイム バージョン string

NetCoreZipUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'NetCoreZip' (必須)
netCoreMainEntryPath zip ルートを基準とした .NET 実行可能ファイルへのパス string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion .Net ファイルのランタイム バージョン string

SourceUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'Source' (必須)
artifactSelector マルチモジュール プロジェクトのデプロイに使用する成果物のセレクター。 これは次のようになります。
ターゲット モジュール/プロジェクトへの相対パス。
string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion ソース ファイルのランタイム バージョン string

Sku

名前 説明
capacity ターゲット リソースの現在の容量 INT
name Sku の名前 string
レベル Sku のレベル string

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

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

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

リソース形式

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

{
  "type": "Microsoft.AppPlatform/Spring/apps/deployments",
  "apiVersion": "2022-04-01",
  "name": "string",
  "sku": {
    "capacity": "int",
    "name": "string",
    "tier": "string"
  },
  "properties": {
    "active": "bool",
    "deploymentSettings": {
      "addonConfigs": {},
      "environmentVariables": {},
      "resourceRequests": {
        "cpu": "string",
        "memory": "string"
      }
    },
    "source": {
      "version": "string",
      "type": "string"
      // For remaining properties, see UserSourceInfo objects
    }
  }
}

UserSourceInfo オブジェクト

オブジェクトの を指定するには、type プロパティを設定します。

BuildResult の場合は、次の値を使用します。

  "type": "BuildResult",
  "buildResultId": "string"

Jar の場合は、次の値を使用します。

  "type": "Jar",
  "jvmOptions": "string",
  "relativePath": "string",
  "runtimeVersion": "string"

NetCoreZip の場合は、次の値を使用します。

  "type": "NetCoreZip",
  "netCoreMainEntryPath": "string",
  "relativePath": "string",
  "runtimeVersion": "string"

[ソース] には、次の値を使用します。

  "type": "Source",
  "artifactSelector": "string",
  "relativePath": "string",
  "runtimeVersion": "string"

プロパティ値

Spring/apps/deployments

名前 説明
type リソースの種類 'Microsoft.AppPlatform/Spring/apps/deployments'
apiVersion リソース API のバージョン '2022-04-01'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
string (必須)
sku デプロイ リソースの SKU SKU
properties デプロイ リソースのプロパティ DeploymentResourceProperties

DeploymentResourceProperties

名前 説明
active 展開がアクティブかどうかを示します [bool]
deploymentSettings デプロイの展開設定 DeploymentSettings
source デプロイのアップロードされたソース情報。 UserSourceInfo

DeploymentSettings

名前 説明
addonConfigs アドオンのコレクション object
environmentVariables 環境変数のコレクション object
resourceRequests 必要な CPU とメモリに対して要求されたリソース量。 必要な CPU とメモリを表すためにこのフィールドを使用することをお勧めします。古いフィールド cpu と memoryInGB は後で非推奨になります。 ResourceRequests

ResourceRequests

名前 説明
cpu 必要な CPU。 1コアは1または1000mで表すことができます。 Basic レベルの場合は 500m または 1、Standard レベルの場合は {500m、1、2、3、4} です。 string
メモリ 必要なメモリ。 1 GB は 1Gi または 1024Mi で表すことができます。 Basic レベルの場合は {512Mi、1Gi、2Gi}、Standard レベルの場合は {512Mi、1Gi、2Gi、...、8Gi} です。 string

UserSourceInfo

名前 説明
version ソースのバージョン string
type オブジェクトの種類を設定する BuildResult

NetCoreZip
ソース (必須)

BuildResultUserSourceInfo

名前 説明
type アップロードされたソースの種類 'BuildResult' (必須)
buildResultId 同じ Spring インスタンスの下にある既存の成功したビルド結果のリソース ID。 string

JarUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'Jar' (必須)
jvmOptions JVM パラメーター string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion Jar ファイルのランタイム バージョン string

NetCoreZipUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'NetCoreZip' (必須)
netCoreMainEntryPath zip ルートを基準とした .NET 実行可能ファイルへのパス string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion .Net ファイルのランタイム バージョン string

SourceUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 'Source' (必須)
artifactSelector マルチモジュール プロジェクトのデプロイに使用する成果物のセレクター。 これは、次のようになります。
ターゲット モジュール/プロジェクトへの相対パス。
string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion ソース ファイルのランタイム バージョン string

Sku

名前 説明
capacity ターゲット リソースの現在の容量 INT
name SKU の名前 string
レベル Sku のレベル string

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

Spring/apps/deployments リソースの種類は、次を対象とする操作でデプロイできます。

  • リソース グループ

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

リソース形式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AppPlatform/Spring/apps/deployments@2022-04-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      active = bool
      deploymentSettings = {
        addonConfigs = {}
        environmentVariables = {}
        resourceRequests = {
          cpu = "string"
          memory = "string"
        }
      }
      source = {
        version = "string"
        type = "string"
        // For remaining properties, see UserSourceInfo objects
      }
    }
    sku = {
      capacity = int
      name = "string"
      tier = "string"
    }
  })
}

UserSourceInfo オブジェクト

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

BuildResult の場合は、次の値を使用します。

  type = "BuildResult"
  buildResultId = "string"

Jar の場合は、次の値を使用します。

  type = "Jar"
  jvmOptions = "string"
  relativePath = "string"
  runtimeVersion = "string"

NetCoreZip の場合は、次の値を使用します。

  type = "NetCoreZip"
  netCoreMainEntryPath = "string"
  relativePath = "string"
  runtimeVersion = "string"

[ソース] には、次の値を使用します。

  type = "Source"
  artifactSelector = "string"
  relativePath = "string"
  runtimeVersion = "string"

プロパティ値

Spring/apps/deployments

名前 説明
type リソースの種類 "Microsoft.AppPlatform/Spring/apps/deployments@2022-04-01"
name リソース名 string (必須)
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: アプリ
sku デプロイ リソースの SKU SKU
properties デプロイ リソースのプロパティ DeploymentResourceProperties

DeploymentResourceProperties

名前 説明
active 展開がアクティブかどうかを示します [bool]
deploymentSettings 展開の展開設定 DeploymentSettings
source デプロイのアップロードされたソース情報。 UserSourceInfo

DeploymentSettings

名前 説明
addonConfigs アドオンのコレクション object
environmentVariables 環境変数のコレクション object
resourceRequests 必要な CPU とメモリに対して要求されたリソース量。 このフィールドを使用して必要な CPU とメモリを表し、古いフィールド cpu と memoryInGB は後で非推奨とすることをお勧めします。 ResourceRequests

ResourceRequests

名前 説明
cpu 必要な CPU。 1コアは1または1000mで表すことができます。 Basic レベルの場合は 500m または 1、Standard レベルの場合は {500m、1、2、3、4} です。 string
メモリ 必要なメモリ。 1 GB は 1Gi または 1024Mi で表すことができます。 Basic レベルの場合は {512Mi、1Gi、2Gi}、Standard レベルの場合は {512Mi、1Gi、2Gi、...、8Gi} です。 string

UserSourceInfo

名前 説明
version ソースのバージョン string
type オブジェクトの種類を設定する BuildResult

NetCoreZip
ソース (必須)

BuildResultUserSourceInfo

名前 説明
type アップロードされたソースの種類 "BuildResult" (必須)
buildResultId 同じ Spring インスタンスの下にある既存の成功したビルド結果のリソース ID。 string

JarUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 "Jar" (必須)
jvmOptions JVM パラメーター string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion Jar ファイルのランタイム バージョン string

NetCoreZipUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 "NetCoreZip" (必須)
netCoreMainEntryPath zip ルートを基準とした .NET 実行可能ファイルへのパス string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion .Net ファイルのランタイム バージョン string

SourceUploadedUserSourceInfo

名前 説明
type アップロードされたソースの種類 "Source" (必須)
artifactSelector マルチモジュール プロジェクトのデプロイに使用する成果物のセレクター。 これは次のようになります。
ターゲット モジュール/プロジェクトへの相対パス。
string
relativePath ソースを格納するストレージの相対パス string
runtimeVersion ソース ファイルのランタイム バージョン string

Sku

名前 説明
capacity ターゲット リソースの現在の容量 INT
name Sku の名前 string
レベル Sku のレベル string