言論
此資源類型已移轉至 Microsoft.App 命名空間。 如需新的資源類型,請參閱 Microsoft.App managedEnvironments。
如需移轉的相關信息,請參閱需要 動作:Namespace從 Microsoft.Web 移轉至 2022 年 3 月的 Microsoft.App。
Bicep 資源定義
kubeEnvironments 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Web/kubeEnvironments 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Web/kubeEnvironments@2021-01-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'
}
internalLoadBalancerEnabled: bool
staticIp: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.Web/kubeEnvironments
| 名字 | 描述 | 價值 |
|---|---|---|
| extendedLocation | 擴充位置。 | 擴展位置 |
| 類 | 資源種類。 | 字串 |
| 位置 | 資源位置。 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | KubeEnvironment 資源特定屬性 | KubeEnvironmentProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
AppLogsConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| 目的地 | 字串 | |
| logAnalyticsConfiguration | LogAnalytics配置 |
ArcConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| artifactsStorageType | '本地節點' 'NetworkFileSystem' |
|
| artifactStorageAccessMode | 字串 | |
| artifactStorageClassName | 字串 | |
| artifactStorageMountPath | 字串 | |
| artifactStorageNodeName | 字串 | |
| frontEndServiceConfiguration | 前端配置 | |
| kubeConfig 配置 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
擴展位置
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 擴充位置的名稱。 | 字串 |
前端配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | '負載均衡器' '節點埠' |
KubeEnvironmentProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| aksResourceID | 字串 | |
| appLogsConfiguration | 可讓記錄精靈導出的叢集組態 應用程式記錄至目的地。 目前只有 「log-analytics」 是 支援 |
AppLogsConfiguration |
| arcConfiguration | 決定 ARC 叢集的叢集組態 元件類型。 例如:在 BuildService 種類之間選擇, FrontEnd 服務 ArtifactsStorageType 等 |
ArcConfiguration |
| internalLoadBalancer已啟用 | 只有在 Vnet/子網內才顯示 | 布爾 (bool) |
| 靜態Ip | KubeEnvironment 的靜態 IP | 字串 |
LogAnalytics配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 客戶ID | 字串 | |
| 共享密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
資源標籤
| 名字 | 描述 | 價值 |
|---|
ARM 樣本資源定義
kubeEnvironments 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.Web/kubeEnvironments 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Web/kubeEnvironments",
"apiVersion": "2021-01-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"
},
"internalLoadBalancerEnabled": "bool",
"staticIp": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.Web/kubeEnvironments
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | '2021-01-01' |
| extendedLocation | 擴充位置。 | 擴展位置 |
| 類 | 資源種類。 | 字串 |
| 位置 | 資源位置。 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | KubeEnvironment 資源特定屬性 | KubeEnvironmentProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | “Microsoft.Web/kubeEnvironments” |
AppLogsConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| 目的地 | 字串 | |
| logAnalyticsConfiguration | LogAnalytics配置 |
ArcConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| artifactsStorageType | '本地節點' 'NetworkFileSystem' |
|
| artifactStorageAccessMode | 字串 | |
| artifactStorageClassName | 字串 | |
| artifactStorageMountPath | 字串 | |
| artifactStorageNodeName | 字串 | |
| frontEndServiceConfiguration | 前端配置 | |
| kubeConfig 配置 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
擴展位置
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 擴充位置的名稱。 | 字串 |
前端配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | '負載均衡器' '節點埠' |
KubeEnvironmentProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| aksResourceID | 字串 | |
| appLogsConfiguration | 可讓記錄精靈導出的叢集組態 應用程式記錄至目的地。 目前只有 「log-analytics」 是 支援 |
AppLogsConfiguration |
| arcConfiguration | 決定 ARC 叢集的叢集組態 元件類型。 例如:在 BuildService 種類之間選擇, FrontEnd 服務 ArtifactsStorageType 等 |
ArcConfiguration |
| internalLoadBalancer已啟用 | 只有在 Vnet/子網內才顯示 | 布爾 (bool) |
| 靜態Ip | KubeEnvironment 的靜態 IP | 字串 |
LogAnalytics配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 客戶ID | 字串 | |
| 共享密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
資源標籤
| 名字 | 描述 | 價值 |
|---|
Terraform (AzAPI 提供者) 資源定義
kubeEnvironments 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Microsoft.Web/kubeEnvironments 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/kubeEnvironments@2021-01-01"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
}
kind = "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"
}
}
}
屬性值
Microsoft.Web/kubeEnvironments
| 名字 | 描述 | 價值 |
|---|---|---|
| extendedLocation | 擴充位置。 | 擴展位置 |
| 類 | 資源種類。 | 字串 |
| 位置 | 資源位置。 | 字串 (必要) |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | KubeEnvironment 資源特定屬性 | KubeEnvironmentProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | “Microsoft.Web/kubeEnvironments@2021-01-01” |
AppLogsConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| 目的地 | 字串 | |
| logAnalyticsConfiguration | LogAnalytics配置 |
ArcConfiguration
| 名字 | 描述 | 價值 |
|---|---|---|
| artifactsStorageType | '本地節點' 'NetworkFileSystem' |
|
| artifactStorageAccessMode | 字串 | |
| artifactStorageClassName | 字串 | |
| artifactStorageMountPath | 字串 | |
| artifactStorageNodeName | 字串 | |
| frontEndServiceConfiguration | 前端配置 | |
| kubeConfig 配置 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
擴展位置
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 擴充位置的名稱。 | 字串 |
前端配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 類 | '負載均衡器' '節點埠' |
KubeEnvironmentProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| aksResourceID | 字串 | |
| appLogsConfiguration | 可讓記錄精靈導出的叢集組態 應用程式記錄至目的地。 目前只有 「log-analytics」 是 支援 |
AppLogsConfiguration |
| arcConfiguration | 決定 ARC 叢集的叢集組態 元件類型。 例如:在 BuildService 種類之間選擇, FrontEnd 服務 ArtifactsStorageType 等 |
ArcConfiguration |
| internalLoadBalancer已啟用 | 只有在 Vnet/子網內才顯示 | 布爾 (bool) |
| 靜態Ip | KubeEnvironment 的靜態 IP | 字串 |
LogAnalytics配置
| 名字 | 描述 | 價值 |
|---|---|---|
| 客戶ID | 字串 | |
| 共享密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
資源標籤
| 名字 | 描述 | 價值 |
|---|