-
[アーティクル]
-
-
Bicep リソース定義
Spring/apps リソースの種類は、次をターゲットとする操作でデプロイできます。
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
Microsoft.AppPlatform/Spring/apps リソースを作成するには、次の Bicep をテンプレートに追加します。
resource symbolicname 'Microsoft.AppPlatform/Spring/apps@2023-03-01-preview' = {
name: 'string'
location: 'string'
parent: resourceSymbolicName
identity: {
principalId: 'string'
tenantId: 'string'
type: 'string'
userAssignedIdentities: {}
}
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
}
vnetAddons: {
publicEndpoint: bool
}
}
}
CustomPersistentDiskProperties オブジェクト
type プロパティを設定して、オブジェクトの種類を指定します。
AzureFileVolume の場合は、次を使用します。
type: 'AzureFileVolume'
shareName: 'string'
プロパティ値
Spring/apps
ManagedIdentityProperties
名前 |
説明 |
値 |
principalId |
システム割り当てマネージド ID のプリンシパル ID。 |
string |
tenantId |
システム割り当てマネージド ID のテナント ID。 |
string |
type |
マネージド ID の種類 |
'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' |
userAssignedIdentities |
ユーザー割り当てマネージド ID のプロパティ |
object |
AppResourceProperties
CustomPersistentDiskResource
名前 |
説明 |
値 |
customPersistentDiskProperties |
カスタム永続ディスク リソース ペイロードのプロパティ。 |
CustomPersistentDiskProperties |
storageId |
Azure Spring Apps Storage リソースのリソース ID。 |
string (必須) |
CustomPersistentDiskProperties
名前 |
説明 |
値 |
enableSubPath |
true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 |
[bool] |
mountOptions |
永続ディスクのマウント オプションは次のとおりです。 |
string[] |
mountPath |
永続ディスクのマウント パス。 |
string (必須) |
readOnly |
永続ディスクが readOnly ディスクかどうかを示します。 |
[bool] |
型 |
オブジェクトの種類を設定する |
AzureFileVolume (必須) |
AzureFileVolume
名前 |
説明 |
値 |
type |
永続ディスクとしてマウントする基になるリソースの種類。 |
'AzureFileVolume' (必須) |
shareName |
Azure ファイル共有の共有名。 |
string |
IngressSettings
名前 |
説明 |
値 |
backendProtocol |
イングレスがこのアプリ バックエンド サービスと通信する方法。 |
'Default' 'GRPC' |
clientAuth |
Client-Certification 認証。 |
IngressSettingsClientAuth |
readTimeoutInSeconds |
イングレス読み取りタイムアウト (秒単位)。 |
INT |
sendTimeoutInSeconds |
イングレス送信タイムアウト (秒単位)。 |
INT |
sessionAffinity |
アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 |
'Cookie' 'None' |
sessionCookieMaxAge |
Cookie の有効期限が切れるまでの時間 (秒)。 |
INT |
IngressSettingsClientAuth
名前 |
説明 |
値 |
certificates |
証明書リソース ID のコレクション。 |
string[] |
LoadedCertificate
名前 |
説明 |
値 |
loadTrustStore |
証明書が既定の信頼ストアに読み込まれるかどうかを示します。Java ランタイムでのみ機能します。 |
[bool] |
resourceId |
読み込まれた証明書のリソース ID |
string (必須) |
PersistentDisk
名前 |
説明 |
値 |
mountPath |
永続ディスクのマウント パス |
string |
sizeInGB |
永続ディスクのサイズ (GB) |
INT |
Secret
名前 |
説明 |
値 |
name |
シークレット名。 |
string |
value |
シークレット値。 |
string |
TemporaryDisk
名前 |
説明 |
値 |
mountPath |
一時ディスクのマウント パス |
string |
sizeInGB |
一時ディスクのサイズ (GB 単位) |
INT |
AppVNetAddons
名前 |
説明 |
値 |
publicEndpoint |
vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 |
[bool] |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
ARM テンプレート リソース定義
Spring/apps リソースの種類は、次をターゲットとする操作でデプロイできます。
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
Microsoft.AppPlatform/Spring/apps リソースを作成するには、次の JSON をテンプレートに追加します。
{
"type": "Microsoft.AppPlatform/Spring/apps",
"apiVersion": "2023-03-01-preview",
"name": "string",
"location": "string",
"identity": {
"principalId": "string",
"tenantId": "string",
"type": "string",
"userAssignedIdentities": {}
},
"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"
},
"vnetAddons": {
"publicEndpoint": "bool"
}
}
}
CustomPersistentDiskProperties オブジェクト
オブジェクトの 型 を指定するには、type プロパティを設定します。
AzureFileVolume の場合は、次の値を使用します。
"type": "AzureFileVolume",
"shareName": "string"
プロパティ値
Spring/apps
名前 |
説明 |
値 |
type |
リソースの種類 |
'Microsoft.AppPlatform/Spring/apps' |
apiVersion |
リソース API のバージョン |
'2023-03-01-preview' |
name |
リソース名
JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。 |
string (必須) |
location |
アプリケーションの GEO の場所(親リソースと常に同じ) |
string |
identity |
アプリ リソースのマネージド ID の種類 |
ManagedIdentityProperties |
properties |
アプリ リソースのプロパティ |
AppResourceProperties |
ManagedIdentityProperties
名前 |
説明 |
値 |
principalId |
システム割り当てマネージド ID のプリンシパル ID。 |
string |
tenantId |
システム割り当てマネージド ID のテナント ID。 |
string |
type |
マネージド ID の種類 |
'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' |
userAssignedIdentities |
ユーザー割り当てマネージド ID のプロパティ |
object |
AppResourceProperties
CustomPersistentDiskResource
名前 |
説明 |
値 |
customPersistentDiskProperties |
カスタム永続ディスク リソース ペイロードのプロパティ。 |
CustomPersistentDiskProperties |
storageId |
Azure Spring Apps Storage リソースのリソース ID。 |
string (必須) |
CustomPersistentDiskProperties
名前 |
説明 |
値 |
enableSubPath |
true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 |
[bool] |
mountOptions |
永続ディスクのマウント オプションは次のとおりです。 |
string[] |
mountPath |
永続ディスクのマウント パス。 |
string (必須) |
readOnly |
永続ディスクが readOnly ディスクであるかどうかを示します。 |
[bool] |
型 |
オブジェクトの種類を設定する |
AzureFileVolume (必須) |
AzureFileVolume
名前 |
説明 |
値 |
type |
永続ディスクとしてマウントする基になるリソースの種類。 |
'AzureFileVolume' (必須) |
shareName |
Azure ファイル共有の共有名。 |
string |
IngressSettings
名前 |
説明 |
値 |
backendProtocol |
イングレスがこのアプリ バックエンド サービスと通信する方法。 |
'Default' 'GRPC' |
clientAuth |
Client-Certification 認証。 |
IngressSettingsClientAuth |
readTimeoutInSeconds |
イングレス読み取りタイムアウト (秒単位)。 |
INT |
sendTimeoutInSeconds |
イングレス送信タイムアウト (秒単位)。 |
INT |
sessionAffinity |
アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 |
'Cookie' 'None' |
sessionCookieMaxAge |
Cookie の有効期限が切れるまでの時間 (秒単位)。 |
INT |
IngressSettingsClientAuth
名前 |
説明 |
値 |
certificates |
証明書リソース ID のコレクション。 |
string[] |
LoadedCertificate
名前 |
説明 |
値 |
loadTrustStore |
証明書が既定の信頼ストアに読み込まれるかどうかを示します。Java ランタイムでのみ機能します。 |
[bool] |
resourceId |
読み込まれた証明書のリソース ID |
string (必須) |
PersistentDisk
名前 |
説明 |
値 |
mountPath |
永続ディスクのマウント パス |
string |
sizeInGB |
永続ディスクのサイズ (GB) |
INT |
Secret
名前 |
説明 |
値 |
name |
シークレット名。 |
string |
value |
シークレット値。 |
string |
TemporaryDisk
名前 |
説明 |
値 |
mountPath |
一時ディスクのマウント パス |
string |
sizeInGB |
一時ディスクのサイズ (GB 単位) |
INT |
AppVNetAddons
名前 |
説明 |
値 |
publicEndpoint |
vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 |
[bool] |
クイック スタート テンプレート
次のクイックスタート テンプレートでは、このリソースの種類をデプロイします。
Spring/apps リソースの種類は、次をターゲットとする操作でデプロイできます。
各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。
Microsoft.AppPlatform/Spring/apps リソースを作成するには、次の Terraform をテンプレートに追加します。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AppPlatform/Spring/apps@2023-03-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
}
vnetAddons = {
publicEndpoint = bool
}
}
})
}
CustomPersistentDiskProperties オブジェクト
オブジェクトの 型 を指定するには、type プロパティを設定します。
AzureFileVolume の場合は、次の値を使用します。
type = "AzureFileVolume"
shareName = "string"
プロパティ値
Spring/apps
名前 |
説明 |
値 |
type |
リソースの種類 |
"Microsoft.AppPlatform/Spring/apps@2023-03-01-preview" |
name |
リソース名 |
string (必須) |
location |
アプリケーションの GEO の場所(親リソースと常に同じ) |
string |
parent_id |
このリソースの親であるリソースの ID。 |
種類のリソースの ID: Spring |
identity |
アプリ リソースのマネージド ID の種類 |
ManagedIdentityProperties |
properties |
アプリ リソースのプロパティ |
AppResourceProperties |
ManagedIdentityProperties
名前 |
説明 |
値 |
type |
マネージド ID の種類 |
"SystemAssigned" "SystemAssigned,UserAssigned" "UserAssigned" |
identity_ids |
ユーザー割り当てマネージド ID のプロパティ |
ユーザー ID ID の配列。 |
AppResourceProperties
CustomPersistentDiskResource
名前 |
説明 |
値 |
customPersistentDiskProperties |
カスタム永続ディスク リソース ペイロードのプロパティ。 |
CustomPersistentDiskProperties |
storageId |
Azure Spring Apps Storage リソースのリソース ID。 |
string (必須) |
CustomPersistentDiskProperties
名前 |
説明 |
値 |
enableSubPath |
true に設定すると、個々のアプリ インスタンスごとに専用ディレクトリが作成され、マウントされます。 |
[bool] |
mountOptions |
永続ディスクのマウント オプションは次のとおりです。 |
string[] |
mountPath |
永続ディスクのマウント パス。 |
string (必須) |
readOnly |
永続ディスクが readOnly ディスクであるかどうかを示します。 |
[bool] |
型 |
オブジェクトの種類を設定する |
AzureFileVolume (必須) |
AzureFileVolume
名前 |
説明 |
値 |
type |
永続ディスクとしてマウントする基になるリソースの種類。 |
"AzureFileVolume" (必須) |
shareName |
Azure ファイル共有の共有名。 |
string |
IngressSettings
名前 |
説明 |
値 |
backendProtocol |
イングレスがこのアプリ バックエンド サービスと通信する方法。 |
"Default" "GRPC" |
clientAuth |
Client-Certification 認証。 |
IngressSettingsClientAuth |
readTimeoutInSeconds |
イングレス読み取りタイムアウト (秒単位)。 |
INT |
sendTimeoutInSeconds |
イングレス送信タイムアウト (秒単位)。 |
INT |
sessionAffinity |
アフィニティの種類を Cookie に設定して、セッション アフィニティを有効にします。 |
"Cookie" "None" |
sessionCookieMaxAge |
Cookie の有効期限が切れるまでの時間 (秒単位)。 |
INT |
IngressSettingsClientAuth
名前 |
説明 |
値 |
certificates |
証明書リソース ID のコレクション。 |
string[] |
LoadedCertificate
名前 |
説明 |
値 |
loadTrustStore |
証明書が既定の信頼ストアに読み込まれるかどうかを示します。Java ランタイムでのみ機能します。 |
[bool] |
resourceId |
読み込まれた証明書のリソース ID |
string (必須) |
PersistentDisk
名前 |
説明 |
値 |
mountPath |
永続ディスクのマウント パス |
string |
sizeInGB |
永続ディスクのサイズ (GB) |
INT |
Secret
名前 |
説明 |
値 |
name |
シークレット名。 |
string |
value |
シークレット値。 |
string |
TemporaryDisk
名前 |
説明 |
値 |
mountPath |
一時ディスクのマウント パス |
string |
sizeInGB |
一時ディスクのサイズ (GB 単位) |
INT |
AppVNetAddons
名前 |
説明 |
値 |
publicEndpoint |
vnet インジェクション インスタンス内のアプリが、インターネットからアクセスできるエンドポイントを公開するかどうかを示します。 |
[bool] |