Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
- Terbaru
- Pratinjau 06-01 2023
- 2021-09-01
- Pratinjau 07-01 2021
- pratinjau 10-17-2019
Definisi sumber daya Bicep
Jenis sumber daya privateLinkScopes/scopedResources dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya
- Lihat perintah penyebaran grup sumber daya
Untuk daftar properti yang diubah di setiap versi API, lihat mengubah log.
Contoh Penggunaan
Sampel Bicep
Contoh dasar penyebaran 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
}
}
Modul Terverifikasi Azure
Modul Terverifikasi Azure berikut dapat digunakan untuk menyebarkan jenis sumber daya ini.
| Module | Deskripsi |
|---|---|
| Azure Monitor Private Link Lingkup - Sumber Daya Terbatas | Modul Anak AVM untuk Lingkup Azure Monitor Private Link - Sumber Daya Terbatas |
Format sumber daya
Untuk membuat sumber daya Microsoft.Insights/privateLinkScopes/scopedResources, tambahkan Bicep berikut ke templat Anda.
resource symbolicname 'Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
linkedResourceId: 'string'
}
}
Nilai Properti
Microsoft.Insights/privateLinkScopes/scopedResources
| Nama | Deskripsi | Nilai |
|---|---|---|
| Nama | Nama sumber daya | string (diperlukan) |
| induk | Di Bicep, Anda dapat menentukan sumber daya induk untuk sumber daya anak. Anda hanya perlu menambahkan properti ini ketika sumber daya anak dideklarasikan di luar sumber daya induk. Untuk informasi selengkapnya, lihat sumber daya Turunan di luar sumber daya induk. |
Nama simbolis untuk sumber daya jenis: privateLinkScopes |
| Properti | Properti sumber daya. | ScopedResourceProperties |
ScopedResourceProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| linkedResourceId | Id sumber daya sumber daya sumber daya azure monitor terlingkup. | string |
Definisi sumber daya templat ARM
Jenis sumber daya privateLinkScopes/scopedResources dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya - Lihat perintah penyebaran grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Format sumber daya
Untuk membuat sumber daya Microsoft.Insights/privateLinkScopes/scopedResources, tambahkan JSON berikut ke templat Anda.
{
"type": "Microsoft.Insights/privateLinkScopes/scopedResources",
"apiVersion": "2021-07-01-preview",
"name": "string",
"properties": {
"linkedResourceId": "string"
}
}
Nilai Properti
Microsoft.Insights/privateLinkScopes/scopedResources
| Nama | Deskripsi | Nilai |
|---|---|---|
| apiVersion | Versi api | '2021-07-01-preview' |
| Nama | Nama sumber daya | string (diperlukan) |
| Properti | Properti sumber daya. | ScopedResourceProperties |
| jenis | Jenis sumber daya | 'Microsoft.Insights/privateLinkScopes/scopedResources' |
ScopedResourceProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| linkedResourceId | Id sumber daya sumber daya sumber daya azure monitor terlingkup. | string |
Definisi sumber daya Terraform (penyedia AzAPI)
Jenis sumber daya privateLinkScopes/scopedResources dapat disebarkan dengan operasi yang menargetkan:
- Grup sumber daya Untuk daftar properti yang diubah di setiap versi API, lihat log perubahan.
Contoh Penggunaan
Sampel Terraform
Contoh dasar penyebaran 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 = ["*"]
}
Format sumber daya
Untuk membuat sumber daya Microsoft.Insights/privateLinkScopes/scopedResources, tambahkan Terraform berikut ke templat Anda.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
linkedResourceId = "string"
}
}
}
Nilai Properti
Microsoft.Insights/privateLinkScopes/scopedResources
| Nama | Deskripsi | Nilai |
|---|---|---|
| Nama | Nama sumber daya | string (diperlukan) |
| parent_id | ID sumber daya yang merupakan induk untuk sumber daya ini. | ID untuk sumber daya jenis: privateLinkScopes |
| Properti | Properti sumber daya. | ScopedResourceProperties |
| jenis | Jenis sumber daya | "Microsoft.Insights/privateLinkScopes/scopedResources@2021-07-01-preview" |
ScopedResourceProperties
| Nama | Deskripsi | Nilai |
|---|---|---|
| linkedResourceId | Id sumber daya sumber daya sumber daya azure monitor terlingkup. | string |