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 Network Resource Provider가 있는 지리적 위치를 참조하는 "Location" 속성에 연결되지 않습니다 . 이 속성에 연결되지 않는 대신 회로의 피어링 위치와 지리적으로 가까운 네트워크 리소스 공급자를 선택 하는 것이 좋습니다.

    리소스 그룹 이름은 서비스 버스 네임스페이스 이름 끝에 rg가 추가된 것입니다.

  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

다음 단계

회로를 만든 후에 다음 단계를 진행합니다.