Microsoft.App managedEnvironments 2022-03-01
Bicep 資源定義
managedEnvironments 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.App/managedEnvironments@2022-03-01' = {
location: 'string'
name: 'string'
properties: {
appLogsConfiguration: {
destination: 'string'
logAnalyticsConfiguration: {
customerId: 'string'
sharedKey: 'string'
}
}
daprAIConnectionString: 'string'
daprAIInstrumentationKey: 'string'
vnetConfiguration: {
dockerBridgeCidr: 'string'
infrastructureSubnetId: 'string'
internal: bool
platformReservedCidr: 'string'
platformReservedDnsIP: 'string'
runtimeSubnetId: 'string'
}
zoneRedundant: bool
}
tags: {
{customized property}: 'string'
}
}
屬性值
AppLogsConfiguration
名字 | 描述 | 價值 |
---|---|---|
目的地 | 記錄目的地可以是 'log-analytics'、'azure-monitor' 或 'none' | 字串 |
logAnalyticsConfiguration | 只有在目的地設定為 「log-analytics」 時,才提供 Log Analytics 組態 | LogAnalyticsConfiguration |
LogAnalyticsConfiguration
名字 | 描述 | 價值 |
---|---|---|
customerId | Log Analytics 客戶標識碼 | 字串 |
sharedKey | Log Analytics 客戶金鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
ManagedEnvironmentProperties
名字 | 描述 | 價值 |
---|---|---|
appLogsConfiguration | 叢集設定,可讓記錄精靈將應用程式記錄導出至已設定的目的地。 | AppLogsConfiguration |
daprAIConnectionString | Dapr 用來將服務導出至服務通訊遙測的 Application Insights 連接字串 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
daprAIInstrumentationKey | Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
vnetConfiguration | 環境的 Vnet 組態 | VnetConfiguration |
zoneRedundant | 此受控環境是否為區域備援。 | bool |
Microsoft.App/managedEnvironments
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 受控環境資源特定屬性 | ManagedEnvironmentProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
VnetConfiguration
名字 | 描述 | 價值 |
---|---|---|
dockerBridgeCidr | 指派給 Docker 網橋網路之 CIDR 表示法 IP 範圍。 不得與任何其他提供的IP範圍重疊。 | 字串 |
infrastructureSubnetId | 基礎結構元件子網的資源標識符。 此子網必須與 runtimeSubnetId 中所定義的子網位於相同的 VNET 中。 不得與任何其他提供的IP範圍重疊。 | 字串 |
內部 | 布爾值,表示環境只有內部負載平衡器。 這些環境沒有公用靜態 IP 資源。 如果啟用此屬性,則必須提供 runtimeSubnetId 和 infrastructureSubnetId | bool |
platformReservedCidr | CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 不得與任何其他提供的IP範圍重疊。 | 字串 |
platformReservedDnsIP | 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器。 | 字串 |
runtimeSubnetId | 此欄位已被取代且未使用。 如果您想要提供容器應用程式容器插入到自己的子網,則您應該利用 infrastructureSubnetId。 | 字串 |
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
應用程式受控環境 | 應用程式受控環境的AVM資源模組 |
Azure 快速入門範例
下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。
Bicep 檔案 | 描述 |
---|---|
使用登錄建立容器應用程式和環境 | 使用 Azure Container Registry 的基本容器應用程式建立容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用定義的 HTTP 調整規則建立容器應用程式 | 使用以 HTTP 流量為基礎的基本容器應用程式來建立容器應用程式環境。 |
在容器應用程式環境內建立容器應用程式 | 使用基本容器應用程式建立容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用 Container Apps 建立 Dapr 微服務應用程式 | 使用 Container Apps 建立 Dapr 微服務應用程式。 |
使用 Container Apps 建立 Dapr pub-sub servicebus 應用程式 | 使用 Container Apps 建立 Dapr pub-sub servicebus 應用程式。 |
使用容器應用程式環境建立兩個容器應用程式 | 使用基本容器應用程式建立兩個容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用 VNET 建立外部容器應用程式環境 | 使用 VNET 建立外部容器應用程式環境。 |
使用 VNET 建立內部容器應用程式環境 | 使用 VNET 建立內部容器應用程式環境。 |
ARM 樣本資源定義
managedEnvironments 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.App/managedEnvironments",
"apiVersion": "2022-03-01",
"name": "string",
"location": "string",
"properties": {
"appLogsConfiguration": {
"destination": "string",
"logAnalyticsConfiguration": {
"customerId": "string",
"sharedKey": "string"
}
},
"daprAIConnectionString": "string",
"daprAIInstrumentationKey": "string",
"vnetConfiguration": {
"dockerBridgeCidr": "string",
"infrastructureSubnetId": "string",
"internal": "bool",
"platformReservedCidr": "string",
"platformReservedDnsIP": "string",
"runtimeSubnetId": "string"
},
"zoneRedundant": "bool"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
AppLogsConfiguration
名字 | 描述 | 價值 |
---|---|---|
目的地 | 記錄目的地可以是 'log-analytics'、'azure-monitor' 或 'none' | 字串 |
logAnalyticsConfiguration | 只有在目的地設定為 「log-analytics」 時,才提供 Log Analytics 組態 | LogAnalyticsConfiguration |
LogAnalyticsConfiguration
名字 | 描述 | 價值 |
---|---|---|
customerId | Log Analytics 客戶標識碼 | 字串 |
sharedKey | Log Analytics 客戶金鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
ManagedEnvironmentProperties
名字 | 描述 | 價值 |
---|---|---|
appLogsConfiguration | 叢集設定,可讓記錄精靈將應用程式記錄導出至已設定的目的地。 | AppLogsConfiguration |
daprAIConnectionString | Dapr 用來將服務導出至服務通訊遙測的 Application Insights 連接字串 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
daprAIInstrumentationKey | Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
vnetConfiguration | 環境的 Vnet 組態 | VnetConfiguration |
zoneRedundant | 此受控環境是否為區域備援。 | bool |
Microsoft.App/managedEnvironments
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2022-03-01' |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 受控環境資源特定屬性 | ManagedEnvironmentProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.App/managedEnvironments' |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
VnetConfiguration
名字 | 描述 | 價值 |
---|---|---|
dockerBridgeCidr | 指派給 Docker 網橋網路之 CIDR 表示法 IP 範圍。 不得與任何其他提供的IP範圍重疊。 | 字串 |
infrastructureSubnetId | 基礎結構元件子網的資源標識符。 此子網必須與 runtimeSubnetId 中所定義的子網位於相同的 VNET 中。 不得與任何其他提供的IP範圍重疊。 | 字串 |
內部 | 布爾值,表示環境只有內部負載平衡器。 這些環境沒有公用靜態 IP 資源。 如果啟用此屬性,則必須提供 runtimeSubnetId 和 infrastructureSubnetId | bool |
platformReservedCidr | CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 不得與任何其他提供的IP範圍重疊。 | 字串 |
platformReservedDnsIP | 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器。 | 字串 |
runtimeSubnetId | 此欄位已被取代且未使用。 如果您想要提供容器應用程式容器插入到自己的子網,則您應該利用 infrastructureSubnetId。 | 字串 |
使用範例
Azure 快速入門範本
下列 Azure 快速入門範本 部署此資源類型。
範本 | 描述 |
---|---|
使用登錄建立容器應用程式和環境 |
使用 Azure Container Registry 的基本容器應用程式建立容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用定義的 HTTP 調整規則建立容器應用程式 |
使用以 HTTP 流量為基礎的基本容器應用程式來建立容器應用程式環境。 |
在容器應用程式環境內建立容器應用程式 |
使用基本容器應用程式建立容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用 Container Apps 建立 Dapr 微服務應用程式 |
使用 Container Apps 建立 Dapr 微服務應用程式。 |
使用 Container Apps 建立 Dapr pub-sub servicebus 應用程式 |
使用 Container Apps 建立 Dapr pub-sub servicebus 應用程式。 |
使用容器應用程式環境建立兩個容器應用程式 |
使用基本容器應用程式建立兩個容器應用程式環境。 它也會部署Log Analytics工作區來儲存記錄。 |
使用 VNET 建立外部容器應用程式環境 |
使用 VNET 建立外部容器應用程式環境。 |
使用 VNET 建立內部容器應用程式環境 |
使用 VNET 建立內部容器應用程式環境。 |
Terraform (AzAPI 提供者) 資源定義
managedEnvironments 資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.App/managedEnvironments 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/managedEnvironments@2022-03-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
appLogsConfiguration = {
destination = "string"
logAnalyticsConfiguration = {
customerId = "string"
sharedKey = "string"
}
}
daprAIConnectionString = "string"
daprAIInstrumentationKey = "string"
vnetConfiguration = {
dockerBridgeCidr = "string"
infrastructureSubnetId = "string"
internal = bool
platformReservedCidr = "string"
platformReservedDnsIP = "string"
runtimeSubnetId = "string"
}
zoneRedundant = bool
}
})
}
屬性值
AppLogsConfiguration
名字 | 描述 | 價值 |
---|---|---|
目的地 | 記錄目的地可以是 'log-analytics'、'azure-monitor' 或 'none' | 字串 |
logAnalyticsConfiguration | 只有在目的地設定為 「log-analytics」 時,才提供 Log Analytics 組態 | LogAnalyticsConfiguration |
LogAnalyticsConfiguration
名字 | 描述 | 價值 |
---|---|---|
customerId | Log Analytics 客戶標識碼 | 字串 |
sharedKey | Log Analytics 客戶金鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
ManagedEnvironmentProperties
名字 | 描述 | 價值 |
---|---|---|
appLogsConfiguration | 叢集設定,可讓記錄精靈將應用程式記錄導出至已設定的目的地。 | AppLogsConfiguration |
daprAIConnectionString | Dapr 用來將服務導出至服務通訊遙測的 Application Insights 連接字串 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
daprAIInstrumentationKey | Dapr 用來將服務匯出至服務通訊遙測的 Azure 監視器檢測密鑰 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
vnetConfiguration | 環境的 Vnet 組態 | VnetConfiguration |
zoneRedundant | 此受控環境是否為區域備援。 | bool |
Microsoft.App/managedEnvironments
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 受控環境資源特定屬性 | ManagedEnvironmentProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.App/managedEnvironments@2022-03-01” |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
VnetConfiguration
名字 | 描述 | 價值 |
---|---|---|
dockerBridgeCidr | 指派給 Docker 網橋網路之 CIDR 表示法 IP 範圍。 不得與任何其他提供的IP範圍重疊。 | 字串 |
infrastructureSubnetId | 基礎結構元件子網的資源標識符。 此子網必須與 runtimeSubnetId 中所定義的子網位於相同的 VNET 中。 不得與任何其他提供的IP範圍重疊。 | 字串 |
內部 | 布爾值,表示環境只有內部負載平衡器。 這些環境沒有公用靜態 IP 資源。 如果啟用此屬性,則必須提供 runtimeSubnetId 和 infrastructureSubnetId | bool |
platformReservedCidr | CIDR 表示法中的IP範圍,可以保留給環境基礎結構IP位址。 不得與任何其他提供的IP範圍重疊。 | 字串 |
platformReservedDnsIP | 由 platformReservedCidr 定義的 IP 位址,將保留給內部 DNS 伺服器。 | 字串 |
runtimeSubnetId | 此欄位已被取代且未使用。 如果您想要提供容器應用程式容器插入到自己的子網,則您應該利用 infrastructureSubnetId。 | 字串 |
使用範例
Azure 已驗證的模組
下列 Azure 驗證模組 可用來部署此資源類型。
模組 | 描述 |
---|---|
應用程式受控環境 | 應用程式受控環境的AVM資源模組 |