共用方式為


Microsoft.Web kubeEnvironments

言論

此資源類型已移轉至 Microsoft.App 命名空間。 如需新的資源類型,請參閱 Microsoft.App managedEnvironments

如需移轉的相關信息,請參閱需要 動作:Namespace從 Microsoft.Web 移轉至 2022 年 3 月的 Microsoft.App

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.Web/kubeEnvironments@2024-04-01' = {
  extendedLocation: {
    name: 'string'
  }
  kind: 'string'
  location: 'string'
  name: 'string'
  properties: {
    aksResourceID: 'string'
    appLogsConfiguration: {
      destination: 'string'
      logAnalyticsConfiguration: {
        customerId: 'string'
        sharedKey: 'string'
      }
    }
    arcConfiguration: {
      artifactsStorageType: 'string'
      artifactStorageAccessMode: 'string'
      artifactStorageClassName: 'string'
      artifactStorageMountPath: 'string'
      artifactStorageNodeName: 'string'
      frontEndServiceConfiguration: {
        kind: 'string'
      }
      kubeConfig: 'string'
    }
    containerAppsConfiguration: {
      appSubnetResourceId: 'string'
      controlPlaneSubnetResourceId: 'string'
      daprAIInstrumentationKey: 'string'
      dockerBridgeCidr: 'string'
      platformReservedCidr: 'string'
      platformReservedDnsIP: 'string'
    }
    environmentType: 'string'
    internalLoadBalancerEnabled: bool
    staticIp: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

AppLogsConfiguration

名字 描述 價值
目的地 字串
logAnalyticsConfiguration LogAnalyticsConfiguration

ArcConfiguration

名字 描述 價值
artifactsStorageType 'LocalNode'
'NetworkFileSystem'
artifactStorageAccessMode 字串
artifactStorageClassName 字串
artifactStorageMountPath 字串
artifactStorageNodeName 字串
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字串

約束:
敏感性值。 以安全參數的形式傳入。

ContainerAppsConfiguration

名字 描述 價值
appSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
controlPlaneSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
daprAIInstrumentationKey Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 字串
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 如果已定義,它不得與 platformReservedCidr 中定義的任何子網 IP 範圍或 IP 範圍重疊。 字串
platformReservedCidr CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 它不得與任何其他子網IP範圍重疊。 字串
platformReservedDnsIP 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器 字串

ExtendedLocation

名字 描述 價值
名字 擴充位置的名稱。 字串

FrontEndConfiguration

名字 描述 價值
'LoadBalancer'
'NodePort'

KubeEnvironmentProperties

名字 描述 價值
aksResourceID 字串
appLogsConfiguration 可讓記錄精靈導出的叢集組態
應用程式記錄至目的地。 目前只有 「log-analytics」 是
支援
AppLogsConfiguration
arcConfiguration 決定 ARC 叢集的叢集組態
元件類型。 例如:在 BuildService 種類之間選擇,
FrontEnd 服務 ArtifactsStorageType 等
ArcConfiguration
containerAppsConfiguration 容器應用程式環境的叢集設定,以設定 Dapr 檢測金鑰和 VNET 組態 ContainerAppsConfiguration
environmentType Kubernetes Environment 的類型。 僅支援容器應用程式環境,其值為受控 字串
internalLoadBalancerEnabled 只有在 Vnet/子網內才顯示 bool
staticIp KubeEnvironment 的靜態 IP 字串

LogAnalyticsConfiguration

名字 描述 價值
customerId 字串
sharedKey 字串

約束:
敏感性值。 以安全參數的形式傳入。

Microsoft.Web/kubeEnvironments

名字 描述 價值
extendedLocation 擴充位置。 ExtendedLocation
資源種類。 如果資源是應用程式,您可以參考 https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference 以取得種類支援的詳細值。 字串
位置 資源位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 KubeEnvironment 資源特定屬性 KubeEnvironmentProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ResourceTags

名字 描述 價值

ARM 樣本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.Web/kubeEnvironments",
  "apiVersion": "2024-04-01",
  "name": "string",
  "extendedLocation": {
    "name": "string"
  },
  "kind": "string",
  "location": "string",
  "properties": {
    "aksResourceID": "string",
    "appLogsConfiguration": {
      "destination": "string",
      "logAnalyticsConfiguration": {
        "customerId": "string",
        "sharedKey": "string"
      }
    },
    "arcConfiguration": {
      "artifactsStorageType": "string",
      "artifactStorageAccessMode": "string",
      "artifactStorageClassName": "string",
      "artifactStorageMountPath": "string",
      "artifactStorageNodeName": "string",
      "frontEndServiceConfiguration": {
        "kind": "string"
      },
      "kubeConfig": "string"
    },
    "containerAppsConfiguration": {
      "appSubnetResourceId": "string",
      "controlPlaneSubnetResourceId": "string",
      "daprAIInstrumentationKey": "string",
      "dockerBridgeCidr": "string",
      "platformReservedCidr": "string",
      "platformReservedDnsIP": "string"
    },
    "environmentType": "string",
    "internalLoadBalancerEnabled": "bool",
    "staticIp": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

AppLogsConfiguration

名字 描述 價值
目的地 字串
logAnalyticsConfiguration LogAnalyticsConfiguration

ArcConfiguration

名字 描述 價值
artifactsStorageType 'LocalNode'
'NetworkFileSystem'
artifactStorageAccessMode 字串
artifactStorageClassName 字串
artifactStorageMountPath 字串
artifactStorageNodeName 字串
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字串

約束:
敏感性值。 以安全參數的形式傳入。

ContainerAppsConfiguration

名字 描述 價值
appSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
controlPlaneSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
daprAIInstrumentationKey Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 字串
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 如果已定義,它不得與 platformReservedCidr 中定義的任何子網 IP 範圍或 IP 範圍重疊。 字串
platformReservedCidr CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 它不得與任何其他子網IP範圍重疊。 字串
platformReservedDnsIP 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器 字串

ExtendedLocation

名字 描述 價值
名字 擴充位置的名稱。 字串

FrontEndConfiguration

名字 描述 價值
'LoadBalancer'
'NodePort'

KubeEnvironmentProperties

名字 描述 價值
aksResourceID 字串
appLogsConfiguration 可讓記錄精靈導出的叢集組態
應用程式記錄至目的地。 目前只有 「log-analytics」 是
支援
AppLogsConfiguration
arcConfiguration 決定 ARC 叢集的叢集組態
元件類型。 例如:在 BuildService 種類之間選擇,
FrontEnd 服務 ArtifactsStorageType 等
ArcConfiguration
containerAppsConfiguration 容器應用程式環境的叢集設定,以設定 Dapr 檢測金鑰和 VNET 組態 ContainerAppsConfiguration
environmentType Kubernetes Environment 的類型。 僅支援容器應用程式環境,其值為受控 字串
internalLoadBalancerEnabled 只有在 Vnet/子網內才顯示 bool
staticIp KubeEnvironment 的靜態 IP 字串

LogAnalyticsConfiguration

名字 描述 價值
customerId 字串
sharedKey 字串

約束:
敏感性值。 以安全參數的形式傳入。

Microsoft.Web/kubeEnvironments

名字 描述 價值
apiVersion API 版本 '2024-04-01'
extendedLocation 擴充位置。 ExtendedLocation
資源種類。 如果資源是應用程式,您可以參考 https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference 以取得種類支援的詳細值。 字串
位置 資源位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 KubeEnvironment 資源特定屬性 KubeEnvironmentProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.Web/kubeEnvironments'

ResourceTags

名字 描述 價值

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/kubeEnvironments@2024-04-01"
  name = "string"
  kind = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    extendedLocation = {
      name = "string"
    }
    properties = {
      aksResourceID = "string"
      appLogsConfiguration = {
        destination = "string"
        logAnalyticsConfiguration = {
          customerId = "string"
          sharedKey = "string"
        }
      }
      arcConfiguration = {
        artifactsStorageType = "string"
        artifactStorageAccessMode = "string"
        artifactStorageClassName = "string"
        artifactStorageMountPath = "string"
        artifactStorageNodeName = "string"
        frontEndServiceConfiguration = {
          kind = "string"
        }
        kubeConfig = "string"
      }
      containerAppsConfiguration = {
        appSubnetResourceId = "string"
        controlPlaneSubnetResourceId = "string"
        daprAIInstrumentationKey = "string"
        dockerBridgeCidr = "string"
        platformReservedCidr = "string"
        platformReservedDnsIP = "string"
      }
      environmentType = "string"
      internalLoadBalancerEnabled = bool
      staticIp = "string"
    }
  })
}

屬性值

AppLogsConfiguration

名字 描述 價值
目的地 字串
logAnalyticsConfiguration LogAnalyticsConfiguration

ArcConfiguration

名字 描述 價值
artifactsStorageType 'LocalNode'
'NetworkFileSystem'
artifactStorageAccessMode 字串
artifactStorageClassName 字串
artifactStorageMountPath 字串
artifactStorageNodeName 字串
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字串

約束:
敏感性值。 以安全參數的形式傳入。

ContainerAppsConfiguration

名字 描述 價值
appSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
controlPlaneSubnetResourceId 控制平面基礎結構元件的子網資源標識碼。 此子網必須與 appSubnetResourceId 中所定義的子網位於相同的 VNET 中。 如果已定義,不得與 platformReservedCidr 中定義的 IP 範圍重疊。 字串
daprAIInstrumentationKey Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 字串
dockerBridgeCidr 指派給 Docker 網橋網路的 CIDR 表示法 IP 範圍。 如果已定義,它不得與 platformReservedCidr 中定義的任何子網 IP 範圍或 IP 範圍重疊。 字串
platformReservedCidr CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 它不得與任何其他子網IP範圍重疊。 字串
platformReservedDnsIP 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器 字串

ExtendedLocation

名字 描述 價值
名字 擴充位置的名稱。 字串

FrontEndConfiguration

名字 描述 價值
'LoadBalancer'
'NodePort'

KubeEnvironmentProperties

名字 描述 價值
aksResourceID 字串
appLogsConfiguration 可讓記錄精靈導出的叢集組態
應用程式記錄至目的地。 目前只有 「log-analytics」 是
支援
AppLogsConfiguration
arcConfiguration 決定 ARC 叢集的叢集組態
元件類型。 例如:在 BuildService 種類之間選擇,
FrontEnd 服務 ArtifactsStorageType 等
ArcConfiguration
containerAppsConfiguration 容器應用程式環境的叢集設定,以設定 Dapr 檢測金鑰和 VNET 組態 ContainerAppsConfiguration
environmentType Kubernetes Environment 的類型。 僅支援容器應用程式環境,其值為受控 字串
internalLoadBalancerEnabled 只有在 Vnet/子網內才顯示 bool
staticIp KubeEnvironment 的靜態 IP 字串

LogAnalyticsConfiguration

名字 描述 價值
customerId 字串
sharedKey 字串

約束:
敏感性值。 以安全參數的形式傳入。

Microsoft.Web/kubeEnvironments

名字 描述 價值
extendedLocation 擴充位置。 ExtendedLocation
資源種類。 如果資源是應用程式,您可以參考 https://github.com/Azure/app-service-linux-docs/blob/master/Things_You_Should_Know/kind_property.md#app-service-resource-kind-reference 以取得種類支援的詳細值。 字串
位置 資源位置。 字串 (必要)
名字 資源名稱 字串 (必要)
性能 KubeEnvironment 資源特定屬性 KubeEnvironmentProperties
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.Web/kubeEnvironments@2024-04-01”

ResourceTags

名字 描述 價值