共用方式為


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

Bicep 資源定義

Spring/apps 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.AppPlatform/Spring/apps 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.AppPlatform/Spring/apps@2022-11-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
    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
    temporaryDisk: {
      mountPath: 'string'
      sizeInGB: int
    }
    vnetAddons: {
      publicEndpoint: bool
    }
  }
}

CustomPersistentDiskProperties 物件

設定 類型 屬性,以指定物件的類型。

針對 AzureFileVolume,請使用:

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

屬性值

AddonProfile

名字 描述 價值

AppResourceProperties

名字 描述 價值
addonConfigs 附加元件集合 AppResourcePropertiesAddonConfigs
customPersistentDisks 自定義永續性磁碟清單 CustomPersistentDiskResource[]
enableEndToEndTLS 指出端對端 TLS 是否已啟用。 bool
httpsOnly 指出是否只允許 HTTPs。 bool
ingressSettings 應用程式輸入設定承載。 IngressSettings
loadedCertificates 已載入憑證的集合 LoadedCertificate[]
persistentDisk 永續性磁碟設定 PersistentDisk
公共 指出應用程式是否公開公用端點 bool
temporaryDisk 暫存磁碟設定 TemporaryDisk
vnetAddons vnet 插入實例中的其他應用程式設定 AppVNetAddons

AppResourcePropertiesAddonConfigs

名字 描述 價值

AppVNetAddons

名字 描述 價值
publicEndpoint 指出 vnet 插入實例中的應用程式是否公開可從因特網存取的端點。 bool

AzureFileVolume

名字 描述 價值
shareName Azure 檔案共享的共享名稱。 字串 (必要)
類型 要掛接為永續性磁碟的基礎資源類型。 'AzureFileVolume' (必要)

CustomPersistentDiskProperties

名字 描述 價值
mountOptions 這些是永續性磁碟的掛接選項。 string[]
mountPath 永續性磁碟的掛接路徑。 字串 (必要)
readOnly 指出永續性磁碟是否為 readOnly 磁碟。 bool
類型 針對 AzureFileVolume 類型設定為 'AzureFileVolume', 'AzureFileVolume' (必要)

CustomPersistentDiskResource

名字 描述 價值
customPersistentDiskProperties 自定義永續性磁碟資源承載的屬性。 CustomPersistentDiskProperties
storageId Azure Spring Apps 記憶體資源的資源識別碼。 字串 (必要)

IngressSettings

名字 描述 價值
backendProtocol 輸入應該如何與這個應用程式後端服務通訊。 'Default'
'GRPC'
clientAuth Client-Certification 驗證。 IngressSettingsClientAuth
readTimeoutInSeconds 輸入讀取逾時,以秒為單位。 int
sendTimeoutInSeconds 輸入會以秒為單位傳送逾時。 int
sessionAffinity 親和性的類型,將此設定為 Cookie 以啟用工作階段親和性。 'Cookie'
'None'
sessionCookieMaxAge Cookie 到期的秒數。 int

IngressSettingsClientAuth

名字 描述 價值
證書 憑證資源標識碼的集合。 string[]

LoadedCertificate

名字 描述 價值
loadTrustStore 指出憑證是否會載入預設信任存放區,僅適用於 Java 運行時間。 bool
resourceId 已載入憑證的資源標識碼 字串 (必要)

ManagedIdentityProperties

名字 描述 價值
principalId 系統指派受控識別的主體標識碼。 字串
tenantId 系統指派受控識別的租用戶標識碼。 字串
類型 受控識別的類型 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派受控識別的屬性 UserAssignedManagedIdentities

Microsoft.AppPlatform/Spring/apps

名字 描述 價值
身份 應用程式資源的受控識別類型 ManagedIdentityProperties
位置 應用程式的地理位置,一律與其父資源相同 字串
名字 資源名稱 字串 (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱:Spring
性能 應用程式資源的屬性 AppResourceProperties

PersistentDisk

名字 描述 價值
mountPath 永續性磁碟的掛接路徑 字串
sizeInGB 以 GB 為單位的永續性磁碟大小 int

約束:
最小值 = 0
最大值 = 50

TemporaryDisk

名字 描述 價值
mountPath 暫存磁碟的掛接路徑 字串
sizeInGB GB 中的暫存磁碟大小 int

約束:
最小值 = 0
最大值 = 5

UserAssignedManagedIdentities

名字 描述 價值

UserAssignedManagedIdentity

名字 描述 價值

使用範例

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 描述
部署簡單的 Azure Spring Apps 微服務應用程式 此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。

ARM 樣本資源定義

Spring/apps 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.AppPlatform/Spring/apps 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.AppPlatform/Spring/apps",
  "apiVersion": "2022-11-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",
    "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",
    "temporaryDisk": {
      "mountPath": "string",
      "sizeInGB": "int"
    },
    "vnetAddons": {
      "publicEndpoint": "bool"
    }
  }
}

CustomPersistentDiskProperties 物件

設定 類型 屬性,以指定物件的類型。

針對 AzureFileVolume,請使用:

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

屬性值

AddonProfile

名字 描述 價值

AppResourceProperties

名字 描述 價值
addonConfigs 附加元件集合 AppResourcePropertiesAddonConfigs
customPersistentDisks 自定義永續性磁碟清單 CustomPersistentDiskResource[]
enableEndToEndTLS 指出端對端 TLS 是否已啟用。 bool
httpsOnly 指出是否只允許 HTTPs。 bool
ingressSettings 應用程式輸入設定承載。 IngressSettings
loadedCertificates 已載入憑證的集合 LoadedCertificate[]
persistentDisk 永續性磁碟設定 PersistentDisk
公共 指出應用程式是否公開公用端點 bool
temporaryDisk 暫存磁碟設定 TemporaryDisk
vnetAddons vnet 插入實例中的其他應用程式設定 AppVNetAddons

AppResourcePropertiesAddonConfigs

名字 描述 價值

AppVNetAddons

名字 描述 價值
publicEndpoint 指出 vnet 插入實例中的應用程式是否公開可從因特網存取的端點。 bool

AzureFileVolume

名字 描述 價值
shareName Azure 檔案共享的共享名稱。 字串 (必要)
類型 要掛接為永續性磁碟的基礎資源類型。 'AzureFileVolume' (必要)

CustomPersistentDiskProperties

名字 描述 價值
mountOptions 這些是永續性磁碟的掛接選項。 string[]
mountPath 永續性磁碟的掛接路徑。 字串 (必要)
readOnly 指出永續性磁碟是否為 readOnly 磁碟。 bool
類型 針對 AzureFileVolume 類型設定為 'AzureFileVolume', 'AzureFileVolume' (必要)

CustomPersistentDiskResource

名字 描述 價值
customPersistentDiskProperties 自定義永續性磁碟資源承載的屬性。 CustomPersistentDiskProperties
storageId Azure Spring Apps 記憶體資源的資源識別碼。 字串 (必要)

IngressSettings

名字 描述 價值
backendProtocol 輸入應該如何與這個應用程式後端服務通訊。 'Default'
'GRPC'
clientAuth Client-Certification 驗證。 IngressSettingsClientAuth
readTimeoutInSeconds 輸入讀取逾時,以秒為單位。 int
sendTimeoutInSeconds 輸入會以秒為單位傳送逾時。 int
sessionAffinity 親和性的類型,將此設定為 Cookie 以啟用工作階段親和性。 'Cookie'
'None'
sessionCookieMaxAge Cookie 到期的秒數。 int

IngressSettingsClientAuth

名字 描述 價值
證書 憑證資源標識碼的集合。 string[]

LoadedCertificate

名字 描述 價值
loadTrustStore 指出憑證是否會載入預設信任存放區,僅適用於 Java 運行時間。 bool
resourceId 已載入憑證的資源標識碼 字串 (必要)

ManagedIdentityProperties

名字 描述 價值
principalId 系統指派受控識別的主體標識碼。 字串
tenantId 系統指派受控識別的租用戶標識碼。 字串
類型 受控識別的類型 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派受控識別的屬性 UserAssignedManagedIdentities

Microsoft.AppPlatform/Spring/apps

名字 描述 價值
apiVersion API 版本 '2022-11-01-preview'
身份 應用程式資源的受控識別類型 ManagedIdentityProperties
位置 應用程式的地理位置,一律與其父資源相同 字串
名字 資源名稱 字串 (必要)
性能 應用程式資源的屬性 AppResourceProperties
類型 資源類型 'Microsoft.AppPlatform/Spring/apps'

PersistentDisk

名字 描述 價值
mountPath 永續性磁碟的掛接路徑 字串
sizeInGB 以 GB 為單位的永續性磁碟大小 int

約束:
最小值 = 0
最大值 = 50

TemporaryDisk

名字 描述 價值
mountPath 暫存磁碟的掛接路徑 字串
sizeInGB GB 中的暫存磁碟大小 int

約束:
最小值 = 0
最大值 = 5

UserAssignedManagedIdentities

名字 描述 價值

UserAssignedManagedIdentity

名字 描述 價值

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

範本 描述
部署簡單的 Azure Spring Apps 微服務應用程式

部署至 Azure
此範本會部署簡單的 Azure Spring Apps 微服務應用程式,以在 Azure 上執行。

Terraform (AzAPI 提供者) 資源定義

Spring/apps 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.AppPlatform/Spring/apps 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AppPlatform/Spring/apps@2022-11-01-preview"
  name = "string"
  identity = {
    principalId = "string"
    tenantId = "string"
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
      }
    }
  }
  location = "string"
  body = jsonencode({
    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
      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
      temporaryDisk = {
        mountPath = "string"
        sizeInGB = int
      }
      vnetAddons = {
        publicEndpoint = bool
      }
    }
  })
}

CustomPersistentDiskProperties 物件

設定 類型 屬性,以指定物件的類型。

針對 AzureFileVolume,請使用:

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

屬性值

AddonProfile

名字 描述 價值

AppResourceProperties

名字 描述 價值
addonConfigs 附加元件集合 AppResourcePropertiesAddonConfigs
customPersistentDisks 自定義永續性磁碟清單 CustomPersistentDiskResource[]
enableEndToEndTLS 指出端對端 TLS 是否已啟用。 bool
httpsOnly 指出是否只允許 HTTPs。 bool
ingressSettings 應用程式輸入設定承載。 IngressSettings
loadedCertificates 已載入憑證的集合 LoadedCertificate[]
persistentDisk 永續性磁碟設定 PersistentDisk
公共 指出應用程式是否公開公用端點 bool
temporaryDisk 暫存磁碟設定 TemporaryDisk
vnetAddons vnet 插入實例中的其他應用程式設定 AppVNetAddons

AppResourcePropertiesAddonConfigs

名字 描述 價值

AppVNetAddons

名字 描述 價值
publicEndpoint 指出 vnet 插入實例中的應用程式是否公開可從因特網存取的端點。 bool

AzureFileVolume

名字 描述 價值
shareName Azure 檔案共享的共享名稱。 字串 (必要)
類型 要掛接為永續性磁碟的基礎資源類型。 'AzureFileVolume' (必要)

CustomPersistentDiskProperties

名字 描述 價值
mountOptions 這些是永續性磁碟的掛接選項。 string[]
mountPath 永續性磁碟的掛接路徑。 字串 (必要)
readOnly 指出永續性磁碟是否為 readOnly 磁碟。 bool
類型 針對 AzureFileVolume 類型設定為 'AzureFileVolume', 'AzureFileVolume' (必要)

CustomPersistentDiskResource

名字 描述 價值
customPersistentDiskProperties 自定義永續性磁碟資源承載的屬性。 CustomPersistentDiskProperties
storageId Azure Spring Apps 記憶體資源的資源識別碼。 字串 (必要)

IngressSettings

名字 描述 價值
backendProtocol 輸入應該如何與這個應用程式後端服務通訊。 'Default'
'GRPC'
clientAuth Client-Certification 驗證。 IngressSettingsClientAuth
readTimeoutInSeconds 輸入讀取逾時,以秒為單位。 int
sendTimeoutInSeconds 輸入會以秒為單位傳送逾時。 int
sessionAffinity 親和性的類型,將此設定為 Cookie 以啟用工作階段親和性。 'Cookie'
'None'
sessionCookieMaxAge Cookie 到期的秒數。 int

IngressSettingsClientAuth

名字 描述 價值
證書 憑證資源標識碼的集合。 string[]

LoadedCertificate

名字 描述 價值
loadTrustStore 指出憑證是否會載入預設信任存放區,僅適用於 Java 運行時間。 bool
resourceId 已載入憑證的資源標識碼 字串 (必要)

ManagedIdentityProperties

名字 描述 價值
principalId 系統指派受控識別的主體標識碼。 字串
tenantId 系統指派受控識別的租用戶標識碼。 字串
類型 受控識別的類型 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'
userAssignedIdentities 使用者指派受控識別的屬性 UserAssignedManagedIdentities

Microsoft.AppPlatform/Spring/apps

名字 描述 價值
身份 應用程式資源的受控識別類型 ManagedIdentityProperties
位置 應用程式的地理位置,一律與其父資源相同 字串
名字 資源名稱 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:Spring
性能 應用程式資源的屬性 AppResourceProperties
類型 資源類型 “Microsoft.AppPlatform/Spring/apps@2022-11-01-preview”

PersistentDisk

名字 描述 價值
mountPath 永續性磁碟的掛接路徑 字串
sizeInGB 以 GB 為單位的永續性磁碟大小 int

約束:
最小值 = 0
最大值 = 50

TemporaryDisk

名字 描述 價值
mountPath 暫存磁碟的掛接路徑 字串
sizeInGB GB 中的暫存磁碟大小 int

約束:
最小值 = 0
最大值 = 5

UserAssignedManagedIdentities

名字 描述 價值

UserAssignedManagedIdentity

名字 描述 價值