Bicep 리소스 정의
webPubSub/sharedPrivateLinkResources 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 리소스 그룹 - 리소스 그룹 배포 명령 참조
각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.
사용 예제
Bicep 샘플
Web Pubsub 서비스에 대한 공유 Private Link 리소스를 배포하는 기본 예제입니다.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource vault 'Microsoft.KeyVault/vaults@2021-10-01' = {
name: resourceName
location: location
properties: {
accessPolicies: [
{
objectId: deployer().objectId
permissions: {
certificates: [
'ManageContacts'
]
keys: [
'Create'
]
secrets: [
'Set'
]
storage: []
}
tenantId: tenant().tenantId
}
]
createMode: 'default'
enableRbacAuthorization: false
enableSoftDelete: true
enabledForDeployment: false
enabledForDiskEncryption: false
enabledForTemplateDeployment: false
publicNetworkAccess: 'Enabled'
sku: {
family: 'A'
name: 'standard'
}
softDeleteRetentionInDays: 7
tenantId: tenant().tenantId
}
}
resource webPubSub 'Microsoft.SignalRService/webPubSub@2023-02-01' = {
name: resourceName
location: location
sku: {
capacity: 1
name: 'Standard_S1'
}
properties: {
disableAadAuth: false
disableLocalAuth: false
publicNetworkAccess: 'Enabled'
tls: {
clientCertEnabled: false
}
}
}
resource sharedPrivateLinkResource 'Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources@2023-02-01' = {
name: resourceName
parent: webPubSub
properties: {
groupId: 'vault'
privateLinkResourceId: vault.id
}
}
리소스 형식
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.
resource symbolicname 'Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources@2021-10-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
groupId: 'string'
privateLinkResourceId: 'string'
requestMessage: 'string'
}
}
속성 값
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources
| 이름 | 묘사 | 값 |
|---|---|---|
| 이름 | 리소스 이름 | string(필수) |
| 부모 | Bicep에서 자식 리소스에 대한 부모 리소스를 지정할 수 있습니다. 자식 리소스가 부모 리소스 외부에서 선언된 경우에만 이 속성을 추가해야 합니다. 자세한 내용은 부모 리소스외부의 자식 리소스 |
형식 리소스의 기호 이름: webPubSub |
| 속성 | 기존 공유 프라이빗 링크 리소스의 속성에 대해 설명합니다. | SharedPrivateLinkResourceProperties |
SharedPrivateLinkResourceProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| 그룹 ID | 공유 프라이빗 링크 리소스가 대상인 리소스 공급자의 그룹 ID | string(필수) |
| privateLinkResourceId | 공유 프라이빗 링크 리소스가 사용할 리소스의 리소스 ID입니다. | string(필수) |
| 요청 메시지 | 공유 프라이빗 링크 리소스의 승인을 요청하기 위한 요청 메시지 | 문자열 |
ARM 템플릿 리소스 정의
webPubSub/sharedPrivateLinkResources 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 리소스 그룹 - 리소스 그룹 배포 명령 어를 참조하세요. 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.
사용 예제
리소스 형식
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.
{
"type": "Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources",
"apiVersion": "2021-10-01",
"name": "string",
"properties": {
"groupId": "string",
"privateLinkResourceId": "string",
"requestMessage": "string"
}
}
속성 값
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources
| 이름 | 묘사 | 값 |
|---|---|---|
| API버전 | api 버전 | '2021-10-01' |
| 이름 | 리소스 이름 | string(필수) |
| 속성 | 기존 공유 프라이빗 링크 리소스의 속성에 대해 설명합니다. | SharedPrivateLinkResourceProperties |
| 형 | 리소스 종류 | 'Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources' |
SharedPrivateLinkResourceProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| 그룹 ID | 공유 프라이빗 링크 리소스가 대상인 리소스 공급자의 그룹 ID | string(필수) |
| privateLinkResourceId | 공유 프라이빗 링크 리소스가 사용할 리소스의 리소스 ID입니다. | string(필수) |
| 요청 메시지 | 공유 프라이빗 링크 리소스의 승인을 요청하기 위한 요청 메시지 | 문자열 |
Terraform(AzAPI 공급자) 리소스 정의
webPubSub/sharedPrivateLinkResources 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.
- 자원 그룹 각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.
사용 예제
Terraform 샘플
Web Pubsub 서비스에 대한 공유 Private Link 리소스를 배포하는 기본 예제입니다.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
azurerm = {
source = "hashicorp/azurerm"
}
}
}
provider "azurerm" {
features {
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
data "azurerm_client_config" "current" {
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "webPubSub" {
type = "Microsoft.SignalRService/webPubSub@2023-02-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
disableAadAuth = false
disableLocalAuth = false
publicNetworkAccess = "Enabled"
tls = {
clientCertEnabled = false
}
}
sku = {
capacity = 1
name = "Standard_S1"
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "vault" {
type = "Microsoft.KeyVault/vaults@2021-10-01"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
accessPolicies = [
{
objectId = data.azurerm_client_config.current.object_id
permissions = {
certificates = [
"ManageContacts",
]
keys = [
"Create",
]
secrets = [
"Set",
]
storage = [
]
}
tenantId = data.azurerm_client_config.current.tenant_id
},
]
createMode = "default"
enableRbacAuthorization = false
enableSoftDelete = true
enabledForDeployment = false
enabledForDiskEncryption = false
enabledForTemplateDeployment = false
publicNetworkAccess = "Enabled"
sku = {
family = "A"
name = "standard"
}
softDeleteRetentionInDays = 7
tenantId = data.azurerm_client_config.current.tenant_id
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "sharedPrivateLinkResource" {
type = "Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources@2023-02-01"
parent_id = azapi_resource.webPubSub.id
name = var.resource_name
body = {
properties = {
groupId = "vault"
privateLinkResourceId = azapi_resource.vault.id
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
리소스 형식
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources@2021-10-01"
name = "string"
parent_id = "string"
body = {
properties = {
groupId = "string"
privateLinkResourceId = "string"
requestMessage = "string"
}
}
}
속성 값
Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources
| 이름 | 묘사 | 값 |
|---|---|---|
| 이름 | 리소스 이름 | string(필수) |
| 부모 ID | 이 리소스의 부모인 리소스의 ID입니다. | 형식의 리소스 ID: webPubSub |
| 속성 | 기존 공유 프라이빗 링크 리소스의 속성에 대해 설명합니다. | SharedPrivateLinkResourceProperties |
| 형 | 리소스 종류 | "Microsoft.SignalRService/webPubSub/sharedPrivateLinkResources@2021-10-01" |
SharedPrivateLinkResourceProperties
| 이름 | 묘사 | 값 |
|---|---|---|
| 그룹 ID | 공유 프라이빗 링크 리소스가 대상인 리소스 공급자의 그룹 ID | string(필수) |
| privateLinkResourceId | 공유 프라이빗 링크 리소스가 사용할 리소스의 리소스 ID입니다. | string(필수) |
| 요청 메시지 | 공유 프라이빗 링크 리소스의 승인을 요청하기 위한 요청 메시지 | 문자열 |