다음을 통해 공유


Azure Resource Manager 템플릿을 사용하여 ExpressRoute 회로 만들기

Azure PowerShell을 사용하여 Azure Resource Manager 템플릿을 배포하여 ExpressRoute 회로를 만드는 방법을 알아봅니다. Resource Manager 템플릿 개발에 대한 자세한 내용은 Resource Manager 설명서템플릿 참조를 참조하세요.

시작하기 전 주의 사항:

  • 구성을 시작하기 전에 필수 조건워크플로를 검토합니다.
  • 새 네트워킹 리소스를 만들 수 있는 권한이 있는지 확인합니다. 올바른 권한이 없는 경우 계정 관리자에게 문의하세요.

ExpressRoute 회로 만들기 및 프로비전

Azure 빠른 시작 템플릿 에는 Resource Manager 템플릿의 적절한 컬렉션이 있습니다. 기존 템플릿 중 하나를 사용하여 ExpressRoute 회로를 만듭니다.

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "metadata": {
    "_generator": {
      "name": "bicep",
      "version": "0.5.6.12127",
      "templateHash": "14062891962288443864"
    }
  },
  "parameters": {
    "circuitName": {
      "type": "string",
      "metadata": {
        "description": "This is the name of the ExpressRoute circuit"
      }
    },
    "serviceProviderName": {
      "type": "string",
      "metadata": {
        "description": "This is the name of the ExpressRoute Service Provider. It must exactly match one of the Service Providers from List ExpressRoute Service Providers API call."
      }
    },
    "peeringLocation": {
      "type": "string",
      "metadata": {
        "description": "This is the name of the peering ___location and not the ARM resource ___location. It must exactly match one of the available peering locations from List ExpressRoute Service Providers API call."
      }
    },
    "bandwidthInMbps": {
      "type": "int",
      "metadata": {
        "description": "This is the bandwidth in Mbps of the circuit being created. It must exactly match one of the available bandwidth offers List ExpressRoute Service Providers API call."
      }
    },
    "skuTier": {
      "type": "string",
      "defaultValue": "Standard",
      "allowedValues": [
        "Standard",
        "Premium"
      ],
      "metadata": {
        "description": "Chosen SKU Tier of ExpressRoute circuit. Choose from Premium or Standard SKU tiers."
      }
    },
    "skuFamily": {
      "type": "string",
      "defaultValue": "MeteredData",
      "allowedValues": [
        "MeteredData",
        "UnlimitedData"
      ],
      "metadata": {
        "description": "Chosen SKU family of ExpressRoute circuit. Choose from MeteredData or UnlimitedData SKU families."
      }
    },
    "___location": {
      "type": "string",
      "defaultValue": "[resourceGroup().___location]",
      "metadata": {
        "description": "Location for all resources."
      }
    }
  },
  "resources": [
    {
      "type": "Microsoft.Network/expressRouteCircuits",
      "apiVersion": "2021-02-01",
      "name": "[parameters('circuitName')]",
      "___location": "[parameters('___location')]",
      "sku": {
        "name": "[format('{0}_{1}', parameters('skuTier'), parameters('skuFamily'))]",
        "tier": "[parameters('skuTier')]",
        "family": "[parameters('skuFamily')]"
      },
      "properties": {
        "serviceProviderProperties": {
          "serviceProviderName": "[parameters('serviceProviderName')]",
          "peeringLocation": "[parameters('peeringLocation')]",
          "bandwidthInMbps": "[parameters('bandwidthInMbps')]"
        }
      }
    }
  ]
}

더 많은 관련 템플릿을 보려면 여기를 선택합니다.

템플릿을 배포하여 ExpressRoute 회로를 만들려면 다음을 수행합니다.

  1. 다음 코드 블록에서 사용해 보세요 를 선택한 다음 지침에 따라 Azure Cloud Shell에 로그인합니다.

    $circuitName = Read-Host -Prompt "Enter a circuit name"
    $___location = Read-Host -Prompt "Enter the ___location (i.e. centralus)"
    $resourceGroupName = "${circuitName}rg"
    $templateUri = "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.network/expressroute-circuit-create/azuredeploy.json"
    $serviceProviderName = "Equinix"
    $peeringLocation = "Silicon Valley"
    $bandwidthInMbps = 500
    $sku_tier = "Premium"
    $sku_family = "MeteredData"
    
    New-AzResourceGroup -Name $resourceGroupName -Location $___location
    New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri $templateUri -circuitName $circuitName -serviceProviderName $serviceProviderName -peeringLocation $peeringLocation -bandwidthInMbps $bandwidthInMbps -sku_tier $sku_tier -sku_family $sku_family
    
    Write-Host "Press [ENTER] to continue ..."
    
    • SKU 계층 은 ExpressRoute 회로가 로컬, 표준 또는 프리미엄인지 여부를 결정합니다. 로컬, *표준 또는 프리미엄을 지정할 수 있습니다.

    • SKU 패밀리 는 청구 유형을 결정합니다. 데이터 요금제에 Metereddata를 지정하고 무제한 데이터 요금제의 경우 Unlimiteddata를 지정할 수 있습니다. 청구 유형을 Metereddata 에서 Unlimiteddata로 변경할 수 있지만 형식을 Unlimiteddata 에서 Metereddata로 변경할 수는 없습니다. 로컬 회로는 Unlimiteddata 전용입니다.

    • 피어링 위치 는 Microsoft와 피어링하는 실제 위치입니다.

      중요합니다

      피어링 위치는 Microsoft와 피어링하는 실제 위치를 나타냅니다. 이 피어링 위치는 Azure 네트워크 리소스 공급자가 있는 지역을 참조하는 "위치" 속성에 연결 되지 않습니다 . 연결되지는 않지만 회로의 피어링 위치에 지리적으로 가까운 네트워크 리소스 공급자를 선택하는 것이 좋습니다.

    리소스 그룹 이름은 rg 가 추가된 Service Bus 네임스페이스 이름입니다.

  2. 복사를 선택하여 PowerShell 스크립트를 복사합니다.

  3. 셸 콘솔 창을 마우스 오른쪽 단추로 클릭하고 붙여넣기를 선택합니다.

이벤트 허브를 만드는 데 몇 분 정도 걸립니다.

Azure PowerShell은 이 자습서에서 템플릿을 배포하는 데 사용됩니다. 다른 템플릿 배포 방법은 다음을 참조하세요.

ExpressRoute 회로 프로비저닝 해제 및 삭제

삭제 아이콘을 선택하여 ExpressRoute 회로를 삭제 할 수 있습니다. 다음 정보에 유의하세요.

  • 모든 가상 네트워크를 ExpressRoute 회로에서 연결 해제해야 합니다. 이 작업에 실패한 경우 회로에 연결된 가상 네트워크가 있는지 확인하세요.
  • ExpressRoute 회로 서비스 공급자 프로비전 상태가 프로비전 중 또는 프로비전됨인 경우에는 서비스 공급자에게 회로 프로비전 해제를 요청해야 합니다. 서비스 공급자가 회로의 프로비전을 해제한 다음 통지를 보낼 때까지 리소스가 계속 예약되며 요금이 청구됩니다.
  • 서비스 공급자 프로비전 상태가 프로비전되지 않음으로 설정되면 회로를 삭제할 수 있습니다. 회로가 삭제되면 해당 청구도 중지됩니다.

다음 PowerShell 명령을 실행하여 ExpressRoute 회로를 삭제할 수 있습니다.

$circuitName = Read-Host -Prompt "Enter the same circuit name that you used earlier"
$resourceGroupName = "${circuitName}rg"

Remove-AzExpressRouteCircuit -ResourceGroupName $resourceGroupName -Name $circuitName

다음 단계

회로를 만든 후 다음 단계를 계속합니다.