Share via


Microsoft.Network virtualRouters 2022-07-01

Bicep 리소스 정의

virtualRouters 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

리소스 형식

Microsoft.Network/virtualRouters 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.

resource symbolicname 'Microsoft.Network/virtualRouters@2022-07-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    hostedGateway: {
      id: 'string'
    }
    hostedSubnet: {
      id: 'string'
    }
    virtualRouterAsn: int
    virtualRouterIps: [
      'string'
    ]
  }
}

속성 값

virtualRouters

Name Description
name 리소스 이름 string(필수)
위치 리소스 위치. 문자열
tags 리소스 태그. 태그 이름 및 값의 사전입니다. 템플릿의 태그를 참조하세요.
properties 가상 라우터의 속성입니다. VirtualRouterPropertiesFormat

VirtualRouterPropertiesFormat

Name Description
hostedGateway VirtualRouter가 호스트되는 게이트웨이입니다. SubResource
hostedSubnet VirtualRouter가 호스트되는 서브넷입니다. SubResource
virtualRouterAsn VirtualRouter ASN. int

제약 조건:
최소값 = 0
최대값 = 4294967295
virtualRouterIps VirtualRouter IP. string[]

SubResource

Name Description
id 리소스 ID입니다. string

ARM 템플릿 리소스 정의

virtualRouters 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

리소스 형식

Microsoft.Network/virtualRouters 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.

{
  "type": "Microsoft.Network/virtualRouters",
  "apiVersion": "2022-07-01",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "hostedGateway": {
      "id": "string"
    },
    "hostedSubnet": {
      "id": "string"
    },
    "virtualRouterAsn": "int",
    "virtualRouterIps": [ "string" ]
  }
}

속성 값

virtualRouters

Name Description
형식 리소스 종류 'Microsoft.Network/virtualRouters'
apiVersion 리소스 api 버전 '2022-07-01'
name 리소스 이름 string(필수)
위치 리소스 위치. 문자열
tags 리소스 태그. 태그 이름 및 값의 사전입니다. 템플릿의 태그를 참조하세요.
properties 가상 라우터의 속성입니다. VirtualRouterPropertiesFormat

VirtualRouterPropertiesFormat

Name Description
hostedGateway VirtualRouter가 호스트되는 게이트웨이입니다. SubResource
hostedSubnet VirtualRouter가 호스트되는 서브넷입니다. SubResource
virtualRouterAsn VirtualRouter ASN. int

제약 조건:
최소값 = 0
최대값 = 4294967295
virtualRouterIps VirtualRouter IP. string[]

SubResource

Name Description
id 리소스 ID입니다. string

Terraform(AzAPI 공급자) 리소스 정의

virtualRouters 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

  • 리소스 그룹

각 API 버전에서 변경된 속성 목록은 변경 로그를 참조하세요.

리소스 형식

Microsoft.Network/virtualRouters 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Network/virtualRouters@2022-07-01"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      hostedGateway = {
        id = "string"
      }
      hostedSubnet = {
        id = "string"
      }
      virtualRouterAsn = int
      virtualRouterIps = [
        "string"
      ]
    }
  })
}

속성 값

virtualRouters

Name Description
형식 리소스 종류 "Microsoft.Network/virtualRouters@2022-07-01"
name 리소스 이름 string(필수)
위치 리소스 위치. 문자열
parent_id 리소스 그룹에 배포하려면 해당 리소스 그룹의 ID를 사용합니다. string(필수)
tags 리소스 태그. 태그 이름 및 값의 사전입니다.
properties 가상 라우터의 속성입니다. VirtualRouterPropertiesFormat

VirtualRouterPropertiesFormat

Name Description
hostedGateway VirtualRouter가 호스트되는 게이트웨이입니다. SubResource
hostedSubnet VirtualRouter가 호스트되는 서브넷입니다. SubResource
virtualRouterAsn VirtualRouter ASN. int

제약 조건:
최소값 = 0
최대값 = 4294967295
virtualRouterIps VirtualRouter IP. string[]

SubResource

Name Description
id 리소스 ID입니다. string