Insights privateLinkScopes/scopedResources 2021-07-01-preview

Bicep-resursdefinition

Resurstypen privateLinkScopes/scopedResources kan distribueras med åtgärder som mål:

En lista över ändrade egenskaper i varje API-version finns i ändringsloggen.

Användningsexempel

Bicep-exempel

Ett grundläggande exempel på distribution av Azure Monitor Private Link Scoped Service.

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

resource component 'Microsoft.Insights/components@2020-02-02' = {
  name: resourceName
  location: location
  kind: 'web'
  properties: {
    Application_Type: 'web'
    DisableIpMasking: false
    DisableLocalAuth: false
    ForceCustomerStorageForProfiler: false
    RetentionInDays: 90
    SamplingPercentage: 100
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
  }
}

resource privateLinkScope 'Microsoft.Insights/privateLinkScopes@2019-10-17-preview' = {
  name: resourceName
  location: 'Global'
  properties: {}
}

resource scopedResource 'Microsoft.Insights/privateLinkScopes/scopedResources@2019-10-17-preview' = {
  name: resourceName
  parent: privateLinkScope
  properties: {
    linkedResourceId: component.id
  }
}

Azure-verifierade moduler

Följande Azure-verifierade moduler kan användas för att distribuera den här resurstypen.

Module Beskrivning
Azure Monitor Private Link Scope - Resurs med omfång AVM Child Module för Azure Monitor Private Link Scope - Scoped Resource

Resursformat

Om du vill skapa en Microsoft.Insights/privateLinkScopes/scopedResources-resurs lägger du till följande Bicep i mallen.

resource symbolicname 'Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    linkedResourceId: 'string'
  }
}

Egenskapsvärden

Microsoft.Insights/privateLinkScopes/scopedResources

Namn Beskrivning Värde
Namn Resursnamnet sträng (krävs)
förälder I Bicep kan du ange den överordnade resursen för en underordnad resurs. Du behöver bara lägga till den här egenskapen när den underordnade resursen deklareras utanför den överordnade resursen.

Mer information finns i Underordnad resurs utanför den överordnade resursen.
Symboliskt namn för resurs av typen: privateLinkScopes
Egenskaper Resursegenskaper. ScopedResourceProperties

ScopedResourceProperties

Namn Beskrivning Värde
linkedResourceId Resurs-ID för den begränsade Azure Monitor-resursen. sträng

Resursdefinition för ARM-mall

Resurstypen privateLinkScopes/scopedResources kan distribueras med åtgärder som mål:

Användningsexempel

Resursformat

Om du vill skapa en Microsoft.Insights/privateLinkScopes/scopedResources-resurs lägger du till följande JSON i mallen.

{
  "type": "Microsoft.Insights/privateLinkScopes/scopedResources",
  "apiVersion": "2021-07-01-preview",
  "name": "string",
  "properties": {
    "linkedResourceId": "string"
  }
}

Egenskapsvärden

Microsoft.Insights/privateLinkScopes/scopedResources

Namn Beskrivning Värde
apiVersion API-versionen "2021-07-01-preview"
Namn Resursnamnet sträng (krävs)
Egenskaper Resursegenskaper. ScopedResourceProperties
typ Resurstypen "Microsoft.Insights/privateLinkScopes/scopedResources"

ScopedResourceProperties

Namn Beskrivning Värde
linkedResourceId Resurs-ID för den begränsade Azure Monitor-resursen. sträng

Resursdefinition för Terraform (AzAPI-provider)

Resurstypen privateLinkScopes/scopedResources kan distribueras med åtgärder som mål:

  • Resursgrupper För en lista över ändrade egenskaper i varje API-version, se ändringslogg.

Användningsexempel

Terraform-exempel

Ett grundläggande exempel på distribution av Azure Monitor Private Link Scoped Service.

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" "component" {
  type      = "Microsoft.Insights/components@2020-02-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = var.location
  body = {
    kind = "web"
    properties = {
      Application_Type                = "web"
      DisableIpMasking                = false
      DisableLocalAuth                = false
      ForceCustomerStorageForProfiler = false
      RetentionInDays                 = 90
      SamplingPercentage              = 100
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "privateLinkScope" {
  type      = "Microsoft.Insights/privateLinkScopes@2019-10-17-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = "Global"
  body = {
    properties = {
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "scopedResource" {
  type      = "Microsoft.Insights/privateLinkScopes/scopedResources@2019-10-17-preview"
  parent_id = azapi_resource.privateLinkScope.id
  name      = var.resource_name
  body = {
    properties = {
      linkedResourceId = azapi_resource.component.id
    }
  }
  schema_validation_enabled = false
  ignore_casing             = true
  response_export_values    = ["*"]
}

Resursformat

Om du vill skapa en Microsoft.Insights/privateLinkScopes/scopedResources-resurs lägger du till följande Terraform i mallen.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      linkedResourceId = "string"
    }
  }
}

Egenskapsvärden

Microsoft.Insights/privateLinkScopes/scopedResources

Namn Beskrivning Värde
Namn Resursnamnet sträng (krävs)
parent_id ID för resursen som är överordnad för den här resursen. ID för resurs av typen: privateLinkScopes
Egenskaper Resursegenskaper. ScopedResourceProperties
typ Resurstypen "Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview"

ScopedResourceProperties

Namn Beskrivning Värde
linkedResourceId Resurs-ID för den begränsade Azure Monitor-resursen. sträng