Microsoft. Ambienti gestiti/dotNetComponents 2026-07-01

Definizione di risorsa Bicep

Il tipo di risorsa managedEnvironments/dotNetComponents può essere distribuito con operazioni destinate a:

  • Resource groups - Vedi resource group

Per un elenco delle proprietà modificate in ogni versione dell'API, vedere log delle modifiche.

Esempi di utilizzo

Esempi di Bicep

Esempio di base della distribuzione di componenti .NET di ambienti gestiti da app.

param location string = 'westeurope'
param resourceName string = 'acctest0001'

resource managedEnvironment 'Microsoft.App/managedEnvironments@2022-03-01' = {
  name: resourceName
  location: location
  properties: {
    appLogsConfiguration: {
      destination: 'log-analytics'
      logAnalyticsConfiguration: {
        customerId: workspace.properties.customerId
        sharedKey: workspace.listKeys().primarySharedKey
      }
    }
    vnetConfiguration: {}
  }
}

resource workspace 'Microsoft.OperationalInsights/workspaces@2022-10-01' = {
  name: resourceName
  location: location
  properties: {
    features: {
      disableLocalAuth: false
      enableLogAccessUsingOnlyResourcePermissions: true
    }
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
    retentionInDays: 30
    sku: {
      name: 'PerGB2018'
    }
    workspaceCapping: {
      dailyQuotaGb: -1
    }
  }
}

resource aspireDashboard 'Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview' = {
  name: resourceName
  parent: managedEnvironment
  properties: {
    componentType: 'AspireDashboard'
    configurations: []
    serviceBinds: []
  }
}

Formato risorsa

Per creare una risorsa Microsoft.App/managedEnvironments/dotNetComponents, aggiungere il bicep seguente al modello.

resource symbolicname 'Microsoft.App/managedEnvironments/dotNetComponents@2026-07-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    componentType: 'string'
    configurations: [
      {
        propertyName: 'string'
        value: 'string'
      }
    ]
    serviceBinds: [
      {
        name: 'string'
        serviceId: 'string'
      }
    ]
  }
}

Valori delle proprietà

Microsoft.App/managedEnvironments/dotNetComponents

Nome Descrizione Value
nome Nome della risorsa string

Vincoli:
Pattern = ^[-\w\._\(\)]+$ (obbligatorio)
parent In Bicep è possibile specificare la risorsa padre per una risorsa figlio. È necessario aggiungere questa proprietà solo quando la risorsa figlio viene dichiarata all'esterno della risorsa padre.

Per altre informazioni, vedere risorsa figlio all'esterno della risorsa padre.
Nome simbolico per la risorsa di tipo: managedEnvironments
properties Proprietà specifiche della risorsa componente .NET Proprietà DotNetComponent

Proprietà DotNetComponentConfigurationProperty

Nome Descrizione Value
Nome della Proprietà Nome della proprietà. string
valore Valore della proprietà string

Proprietà DotNetComponent

Nome Descrizione Value
componentType Tipo del componente .NET. 'Cruscotto Aspire'
Configurazioni Elenco delle proprietà di configurazione dei componenti .NET DotNetComponentConfigurationProperty[]
serviceBinds Elenco di componenti .NET associati al componente .NET DotNetComponentServiceBind[]

DotNetComponentServiceBind

Nome Descrizione Value
nome Nome dell'associazione del servizio string
serviceId ID risorsa del servizio di destinazione string

Definizione di risorsa del modello di Resource Manager

Il tipo di risorsa managedEnvironments/dotNetComponents può essere distribuito con operazioni destinate a:

Esempi di utilizzo

Formato risorsa

Per creare una risorsa Microsoft.App/managedEnvironments/dotNetComponents, aggiungere il codice JSON seguente al modello.

{
  "type": "Microsoft.App/managedEnvironments/dotNetComponents",
  "apiVersion": "2026-07-01",
  "name": "string",
  "properties": {
    "componentType": "string",
    "configurations": [
      {
        "propertyName": "string",
        "value": "string"
      }
    ],
    "serviceBinds": [
      {
        "name": "string",
        "serviceId": "string"
      }
    ]
  }
}

Valori delle proprietà

Microsoft.App/managedEnvironments/dotNetComponents

Nome Descrizione Value
apiVersion Versione dell'API '2026-07-01'
nome Nome della risorsa string

Vincoli:
Pattern = ^[-\w\._\(\)]+$ (obbligatorio)
properties Proprietà specifiche della risorsa componente .NET Proprietà DotNetComponent
type Tipo di risorsa 'Microsoft.App/managedEnvironments/dotNetComponents'

Proprietà DotNetComponentConfigurationProperty

Nome Descrizione Value
Nome della Proprietà Nome della proprietà. string
valore Valore della proprietà string

Proprietà DotNetComponent

Nome Descrizione Value
componentType Tipo del componente .NET. 'Cruscotto Aspire'
Configurazioni Elenco delle proprietà di configurazione dei componenti .NET DotNetComponentConfigurationProperty[]
serviceBinds Elenco di componenti .NET associati al componente .NET DotNetComponentServiceBind[]

DotNetComponentServiceBind

Nome Descrizione Value
nome Nome dell'associazione del servizio string
serviceId ID risorsa del servizio di destinazione string

Definizione di risorsa Terraform (provider AzAPI)

Il tipo di risorsa managedEnvironments/dotNetComponents può essere distribuito con operazioni destinate a:

  • Gruppi di risorse Per un elenco delle proprietà modificate in ogni versione dell'API, vedi il registro modifiche.

Esempi di utilizzo

Esempi di Terraform

Esempio di base della distribuzione di componenti .NET di ambienti gestiti da app.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "workspace" {
  type      = "Microsoft.OperationalInsights/workspaces@2022-10-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      features = {
        disableLocalAuth                            = false
        enableLogAccessUsingOnlyResourcePermissions = true
      }
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
      retentionInDays                 = 30
      sku = {
        name = "PerGB2018"
      }
      workspaceCapping = {
        dailyQuotaGb = -1
      }
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

data "azapi_resource_action" "sharedKeys" {
  type                   = "Microsoft.OperationalInsights/workspaces@2020-08-01"
  resource_id            = azapi_resource.workspace.id
  action                 = "sharedKeys"
  response_export_values = ["*"]
}

resource "azapi_resource" "managedEnvironment" {
  type      = "Microsoft.App/managedEnvironments@2022-03-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    properties = {
      appLogsConfiguration = {
        destination = "log-analytics"
        logAnalyticsConfiguration = {
          customerId = azapi_resource.workspace.output.properties.customerId
          sharedKey  = data.azapi_resource_action.sharedKeys.output.primarySharedKey
        }
      }
      vnetConfiguration = {
      }
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "aspireDashboard" {
  type      = "Microsoft.App/managedEnvironments/dotNetComponents@2024-10-02-preview"
  name      = var.resource_name
  parent_id = azapi_resource.managedEnvironment.id
  body = {
    properties = {
      componentType  = "AspireDashboard"
      configurations = []
      serviceBinds   = []
    }
  }
}

Formato risorsa

Per creare una risorsa Microsoft.App/managedEnvironments/dotNetComponents, aggiungere il modello Terraform seguente.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/managedEnvironments/dotNetComponents@2026-07-01"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      componentType = "string"
      configurations = [
        {
          propertyName = "string"
          value = "string"
        }
      ]
      serviceBinds = [
        {
          name = "string"
          serviceId = "string"
        }
      ]
    }
  }
}

Valori delle proprietà

Microsoft.App/managedEnvironments/dotNetComponents

Nome Descrizione Value
nome Nome della risorsa string

Vincoli:
Pattern = ^[-\w\._\(\)]+$ (obbligatorio)
parent_id ID della risorsa padre per questa risorsa. ID per la risorsa di tipo: managedEnvironments
properties Proprietà specifiche della risorsa componente .NET Proprietà DotNetComponent
type Tipo di risorsa "Microsoft. App/Ambienti gestiti/dotNetComponents@2026-07-01"

Proprietà DotNetComponentConfigurationProperty

Nome Descrizione Value
Nome della Proprietà Nome della proprietà. string
valore Valore della proprietà string

Proprietà DotNetComponent

Nome Descrizione Value
componentType Tipo del componente .NET. 'Cruscotto Aspire'
Configurazioni Elenco delle proprietà di configurazione dei componenti .NET DotNetComponentConfigurationProperty[]
serviceBinds Elenco di componenti .NET associati al componente .NET DotNetComponentServiceBind[]

DotNetComponentServiceBind

Nome Descrizione Value
nome Nome dell'associazione del servizio string
serviceId ID risorsa del servizio di destinazione string