1. 템플릿 배포 파일 못 찾음
오류: Cannot find path 'ManufacturingVMazuredeploy.json' 원인: 파일명에 (1) 과 공백이 있었음 해결: 따옴표로 감싸서 실행
powershell
-TemplateFile 'ManufacturingVMazuredeploy (1).json'
2. 배포 이름 패턴 오류
오류: 'deploymentName' does not match expected pattern 원인: 파일명에서 자동 생성된 배포 이름에 괄호/공백 포함 해결: -Name 파라미터로 직접 지정
powershell
-Name "ManufacturingVMDeploy4"
3. 서브넷 이름 오타
오류: ManufacturingSystemㄴSubnet / ManufacturingSystemsSubnet not found 원인: 파라미터 파일에 한글 ㄴ 삽입 및 s 오타 해결: 실제 서브넷 이름 확인 후 수정
powershell
Get-AzVirtualNetwork -Name "ManufacturingVnet" -ResourceGroupName $RGName | Select-Object -ExpandProperty Subnets | Select-Object Name
# 실제 이름: ManufacturingSystems
4. Public IP 중복 사용
오류: PublicIPAddressInUse 원인: ManufacturingVM-ip가 이미 다른 NIC에 할당됨 해결: 템플릿 JSON에서 IP 이름을 ManufacturingVM-ip2로 변경
5. 백틱 멀티라인 깨짐
오류: 파라미터가 따로따로 실행됨 원인: 터미널 환경에서 백틱(`) 줄바꿈 미지원 해결: 한 줄로 이어서 실행
powershell
New-AzResourceGroupDeployment -Name "..." -ResourceGroupName $RGName -TemplateFile '...' -TemplateParameterFile '...'
6. VPN Connection 배포 실패
오류: CORESERVICESVNETGATEWAY in ST715CONTOSORG not found 원인: Portal 배포 시 리소스 그룹명/Gateway명이 대문자로 잘못 참조됨 해결: PowerShell로 직접 Connection 생성
powershell
$gw1 = Get-AzVirtualNetworkGateway -Name "CoreServicesVnetGateway" -ResourceGroupName $RGName
$gw2 = Get-AzVirtualNetworkGateway -Name "ManufacturingVnetGateway" -ResourceGroupName $RGName
# CoreServices → Manufacturing (koreacentral)
New-AzVirtualNetworkGatewayConnection -Name "CoreServicesGW-to-ManufacturingGW" -ResourceGroupName $RGName -Location "koreacentral" -VirtualNetworkGateway1 $gw1 -VirtualNetworkGateway2 $gw2 -ConnectionType Vnet2Vnet -SharedKey "P@ssw0rd1234"
# Manufacturing → CoreServices (koreasouth)
New-AzVirtualNetworkGatewayConnection -Name "ManufacturingGW-to-CoreServicesGW" -ResourceGroupName $RGName -Location "koreasouth" -VirtualNetworkGateway1 $gw2 -VirtualNetworkGateway2 $gw1 -ConnectionType Vnet2Vnet -SharedKey "P@ssw0rd1234"
핵심: 두 Gateway의 Location이 달라서 각각 다른 Location으로 지정해야 했음
- CoreServicesVnetGateway: koreacentral
- ManufacturingVnetGateway: koreasouth
7. VNet 간 통신 불가 (TcpTestSucceeded: False)
원인: NSG 및 Windows 방화벽 차단 해결 순서:
- CoreServicesVM-nsg Inbound 규칙 추가
- Source: 10.30.0.0/16, Port: 3389, Protocol: TCP, Allow
- Portal Run command → RunPowerShellScript 로 방화벽 규칙 추가
powershell
netsh advfirewall firewall add rule name="RDP-from-Manufacturing" protocol=TCP dir=in localport=3389 action=allow
- ManufacturingVM에서 최종 확인
powershell
Test-NetConnection 10.20.20.4 -port 3389
# TcpTestSucceeded : True ✅

'[Microsoft] Cyber Security School 7기' 카테고리의 다른 글
| 침입탐지 분석 보고서 2 -Chainsaw + Sigma Rules (0) | 2026.06.02 |
|---|---|
| 침입탐지 분석 보고서 -Chainsaw + Sigma Rules (0) | 2026.06.02 |
| MySQL JOIN 과제 (0) | 2026.05.26 |
| CI/CD 과제 (0) | 2026.05.25 |
| 클라우드 기반 윈도우/리눅스 서버 과제-3...IDM(FreeIPA), Active Directory 과제 (0) | 2026.05.19 |