你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Web kubeEnvironments 2021-01-15

Bicep 资源定义

kubeEnvironments 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

备注

此资源类型已迁移到 Microsoft.App 命名空间。 有关新资源类型,请参阅 Microsoft.App managedEnvironments

有关迁移的信息,请参阅 所需的操作:2022 年 3 月将命名空间从 Microsoft.Web 迁移到 Microsoft.App

资源格式

若要创建 Microsoft.Web/kubeEnvironments 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Web/kubeEnvironments@2021-01-15' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  kind: 'string'
  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'
    }
    internalLoadBalancerEnabled: bool
    staticIp: 'string'
  }
}

属性值

kubeEnvironments

名称 说明 Value
name 资源名称 字符串 (必需)
location 资源位置。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
kind 资源类型。 string
extendedLocation 扩展位置。 ExtendedLocation
properties KubeEnvironment 资源特定的属性 KubeEnvironmentProperties

ExtendedLocation

名称 说明 Value
name 扩展位置的名称。 字符串

KubeEnvironmentProperties

名称 说明 Value
aksResourceID 字符串
appLogsConfiguration 使日志守护程序能够导出的群集配置
应用将日志记录到目标。 目前只有“log-analytics”是
受支持
AppLogsConfiguration
arcConfiguration 确定 ARC 群集的群集配置
组件类型。 例如:在 BuildService 类型之间进行选择,
FrontEnd Service ArtifactsStorageType 等。
ArcConfiguration
internalLoadBalancerEnabled 仅在 Vnet/子网中可见 bool
staticIp KubeEnvironment 的静态 IP string

AppLogsConfiguration

名称 说明 Value
destination 字符串
logAnalyticsConfiguration LogAnalyticsConfiguration

LogAnalyticsConfiguration

名称 说明 Value
customerId 字符串
sharedKey string

ArcConfiguration

名称 说明 Value
artifactsStorageType “LocalNode”
“NetworkFileSystem”
artifactStorageAccessMode 字符串
artifactStorageClassName 字符串
artifactStorageMountPath 字符串
artifactStorageNodeName 字符串
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字符串

FrontEndConfiguration

名称 说明 Value
kind “LoadBalancer”
“NodePort”

ARM 模板资源定义

kubeEnvironments 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

备注

此资源类型已迁移到 Microsoft.App 命名空间。 有关新资源类型,请参阅 Microsoft.App managedEnvironments

有关迁移的信息,请参阅 所需的操作:2022 年 3 月将命名空间从 Microsoft.Web 迁移到 Microsoft.App

资源格式

若要创建 Microsoft.Web/kubeEnvironments 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Web/kubeEnvironments",
  "apiVersion": "2021-01-15",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "kind": "string",
  "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"
    },
    "internalLoadBalancerEnabled": "bool",
    "staticIp": "string"
  }
}

属性值

kubeEnvironments

名称 说明 Value
type 资源类型 “Microsoft.Web/kubeEnvironments”
apiVersion 资源 API 版本 '2021-01-15'
name 资源名称 字符串 (必需)
location 资源位置。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
kind 资源类型。 字符串
extendedLocation 扩展位置。 ExtendedLocation
properties KubeEnvironment 资源特定的属性 KubeEnvironmentProperties

ExtendedLocation

名称 说明 Value
name 扩展位置的名称。 字符串

KubeEnvironmentProperties

名称 说明 Value
aksResourceID 字符串
appLogsConfiguration 使日志守护程序能够导出的群集配置
应用将日志记录到目标。 目前只有“log-analytics”是
受支持
AppLogsConfiguration
arcConfiguration 确定 ARC 群集的群集配置
组件类型。 例如:在 BuildService 类型之间进行选择,
FrontEnd Service ArtifactsStorageType 等。
ArcConfiguration
internalLoadBalancerEnabled 仅在 Vnet/子网中可见 bool
staticIp KubeEnvironment 的静态 IP 字符串

AppLogsConfiguration

名称 说明 Value
destination 字符串
logAnalyticsConfiguration LogAnalyticsConfiguration

LogAnalyticsConfiguration

名称 说明 Value
customerId string
sharedKey 字符串

ArcConfiguration

名称 说明 Value
artifactsStorageType “LocalNode”
“NetworkFileSystem”
artifactStorageAccessMode 字符串
artifactStorageClassName 字符串
artifactStorageMountPath 字符串
artifactStorageNodeName string
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字符串

FrontEndConfiguration

名称 说明 Value
kind “LoadBalancer”
“NodePort”

Terraform (AzAPI 提供程序) 资源定义

kubeEnvironments 资源类型可以使用面向以下对象的操作进行部署:

  • 资源组

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Web/kubeEnvironments 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Web/kubeEnvironments@2021-01-15"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    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"
      }
      internalLoadBalancerEnabled = bool
      staticIp = "string"
    }
    kind = "string"
    extendedLocation = {
      name = "string"
    }
  })
}

属性值

kubeEnvironments

名称 说明 Value
type 资源类型 “Microsoft.Web/kubeEnvironments@2021-01-15”
name 资源名称 字符串 (必需)
location 资源位置。 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记。 标记名称和值的字典。
kind 资源类型。 string
extendedLocation 扩展位置。 ExtendedLocation
properties KubeEnvironment 资源特定的属性 KubeEnvironmentProperties

ExtendedLocation

名称 说明 Value
name 扩展位置的名称。 字符串

KubeEnvironmentProperties

名称 说明 Value
aksResourceID 字符串
appLogsConfiguration 使日志守护程序能够导出的群集配置
应用将日志记录到目标。 目前只有“log-analytics”是
受支持
AppLogsConfiguration
arcConfiguration 确定 ARC 群集的群集配置
组件类型。 例如:在 BuildService 类型之间进行选择,
FrontEnd Service ArtifactsStorageType 等。
ArcConfiguration
internalLoadBalancerEnabled 仅在 Vnet/子网中可见 bool
staticIp KubeEnvironment 的静态 IP string

AppLogsConfiguration

名称 说明 Value
destination 字符串
logAnalyticsConfiguration LogAnalyticsConfiguration

LogAnalyticsConfiguration

名称 说明 Value
customerId string
sharedKey string

ArcConfiguration

名称 说明 Value
artifactsStorageType “LocalNode”
“NetworkFileSystem”
artifactStorageAccessMode 字符串
artifactStorageClassName 字符串
artifactStorageMountPath 字符串
artifactStorageNodeName string
frontEndServiceConfiguration FrontEndConfiguration
kubeConfig 字符串

FrontEndConfiguration

名称 说明 Value
kind “LoadBalancer”
“NodePort”