Azure 파일 동기화는 온프레미스 서버를 Azure Files에 연결하여 다중 사이트 동기화와 클라우드 계층화 기능을 가능하게 합니다. 따라서 온프레미스 서버는 인터넷에 연결되어야 합니다. IT 관리자는 서버가 Azure 클라우드 서비스에 도달할 수 있는 최적의 경로를 결정해야 합니다.
이 글에서는 서버를 Azure 파일 동기화에 안전하고 성공적으로 연결하는 데 필요한 특정 요구사항과 옵션에 대해 안내합니다.
이 사용 방법 가이드를 읽기 전에 Azure 파일 동기화 네트워킹 고려사항을 먼저 확인하세요.
Azure 파일 동기화 네트워크 개요
Azure 파일 동기화는 Windows Server, Azure 파일 공유, 그리고 여러 다른 Azure 서비스 간의 오케스트레이션 서비스 역할을 하여 동기화 그룹에 설명된 데이터를 동기화합니다. Azure 파일 동기화가 제대로 작동하려면, 다음 Azure 서비스와 통신할 수 있도록 서버를 구성해야 합니다:
- Azure Storage
- Azure 파일 동기화
- Azure 리소스 관리자
- 인증 서비스
메모
Windows Server의 Azure 파일 동기화 에이전트는 모든 클라우드 서비스를 요청하기 때문에 방화벽 관점에서 아웃바운드 트래픽만 고려하면 됩니다. 어떤 Azure 서비스도 Azure 파일 동기화 에이전트와의 연결을 시작하지 않습니다.
Azure 파일 동기화에 필요한 포트들
Azure 파일 동기화는 파일 데이터와 메타데이터를 HTTPS를 통해 전적으로 이동하며, 포트 443이 아웃바운드로 열려 있어야 합니다. 따라서 모든 트래픽이 암호화됩니다.
Azure와의 네트워크 및 특수 연결
Azure 파일 동기화 에이전트는 ExpressRoute 같은 Azure와의 특수 채널에 대한 요구사항이 없습니다.
Azure 파일 동기화는 Azure에 접근할 수 있는 모든 수단을 통해 작동합니다. 대역폭과 지연 시간 같은 네트워크 특성에 자동으로 적응하며, 미세 조정을 위한 관리자 제어도 제공합니다.
Azure 파일 동기화 프록시 설정
Azure 파일 동기화는 앱별 및 머신 차원의 프록시 설정을 지원합니다.
앱별 프록시 설정
앱별 프록시 설정은 Azure 파일 동기화 트래픽에 특화된 프록시 구성을 허용합니다. 앱별 프록시 설정은 에이전트 버전 4.0.1.0 이상에서 지원되며, 에이전트 설치 중이나 PowerShell 명령어를 사용하여 Set-StorageSyncProxyConfiguration 구성할 수 있습니다. 현재 설정된 프록시 설정을 반환하려면 cmdlet을 Get-StorageSyncProxyConfiguration 사용하세요. 결과가 비어 있으면 프록시 설정이 설정되어 있지 않음을 나타냅니다. 기존 프록시 구성을 제거하려면 cmdlet을 사용하세요 Remove-StorageSyncProxyConfiguration .
앱별 프록시 설정을 구성하기 위한 PowerShell 명령입니다.
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
Set-StorageSyncProxyConfiguration -Address <url> -Port <port number> -ProxyCredential <credentials>
예를 들어 프록시 서버에 사용자 이름과 암호를 사용한 인증이 필요한 경우 다음 PowerShell 명령을 실행합니다.
# IP address or name of the proxy server.
$Address="http://127.0.0.1"
# The port to use for the connection to the proxy.
$Port=8080
# The user name for a proxy.
$UserName="user_name"
# Please type or paste a string with a password for the proxy.
$SecurePassword = Read-Host -AsSecureString
$Creds = New-Object System.Management.Automation.PSCredential ($UserName, $SecurePassword)
# Please verify that you have entered the password correctly.
Write-Host $Creds.GetNetworkCredential().Password
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
Set-StorageSyncProxyConfiguration -Address $Address -Port $Port -ProxyCredential $Creds
머신 차원 프록시 설정
머신 전체 프록시 설정은 Azure 파일 동기화 에이전트에게 투명하며, 서버의 전체 트래픽이 프록시를 통해 라우팅됩니다.
기계 전체 프록시 설정을 설정하려면 다음 단계를 따르세요:
.NET 애플리케이션의 프록시 설정 설정
이 두 파일을 편집하세요:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.configmachine.config 파일에 <system.net> 섹션을 추가하세요(<system.serviceModel> 섹션 아래). 127.0.01:8888을 프록시 서버의 IP 주소와 포트로 변경합니다.
<system.net> <defaultProxy enabled="true" useDefaultCredentials="true"> <proxy autoDetect="false" bypassonlocal="false" proxyaddress="http://127.0.0.1:8888" usesystemdefault="false" /> </defaultProxy> </system.net>
WinHTTP 프록시 설정을 지정합니다.
메모
Windows Server가 프록시 서버를 사용하도록 설정하려면 WPAD, PAC file, netsh 등 여러 방법을 사용할 수 있습니다. 이 글의 단계에서는 .을 사용하여
netsh프록시 설정을 설정하는 방법을 설명합니다. 하지만 Windows 문서의 '프록시 서버 구성 설정'에 나와 있는 어떤 방법이든 사용할 수 있습니다.상위 명령 프롬프트나 PowerShell에서 다음 명령을 실행하면 기존 프록시 설정을 확인하세요:
netsh winhttp show proxy상위 명령 프롬프트나 PowerShell에서 다음 명령을 실행하여 프록시 설정을 설정하세요 (프록시 서버의 IP 주소와 포트로 127.0.01:8888을 변경하세요):
netsh winhttp set proxy 127.0.0.1:8888
상위 명령 프롬프트나 PowerShell에서 다음 명령을 실행하여 스토리지 싱크 에이전트 서비스를 재시작하세요:
net stop filesyncsvc메모
스토리지 싱크 에이전트(filesyncsvc) 서비스는 중단 후 자동으로 시작됩니다.
Azure 파일 동기화 방화벽 설정
앞서 언급했듯이, 443번 출구를 열어야 합니다. 데이터센터, 지점 또는 지역의 정책에 따라 이 포트를 통한 트래픽을 특정 도메인으로 더 제한해야 할 수도 있습니다.
다음 표는 통신에 필요한 도메인을 설명합니다:
| 서비스 | 퍼블릭 클라우드 엔드포인트 | Azure Government 엔드포인트 |
|---|---|---|
| Azure Resource Manager | https://management.azure.com |
https://management.usgovcloudapi.net |
| Microsoft Entra ID (인증) | https://login.windows.nethttps://login.microsoftonline.comhttps://aadcdn.msftauth.net |
https://login.microsoftonline.us |
| Microsoft Entra ID (service principal) | https://graph.microsoft.com/ |
https://graph.microsoft.com/ |
| Microsoft Entra ID (등록 UI) | https://secure.aadcdn.microsoftonline-p.com |
https://secure.aadcdn.microsoftonline-p.com(퍼블릭 클라우드 엔드포인트 URL과 동일) |
| Azure Storage | *.core.windows.net | *.core.usgovcloudapi.net |
| Azure 파일 동기화 | *.one.microsoft.com *.afs.azure.net |
*.afs.azure.us |
| Microsoft PKI | https://www.microsoft.com/pki/mscorp/cpshttp://crl.microsoft.com/pki/mscorp/crl/http://mscrl.microsoft.com/pki/mscorp/crl/http://ocsp.msocsp.comhttp://ocsp.digicert.com/http://crl3.digicert.com/ |
https://www.microsoft.com/pki/mscorp/cpshttp://crl.microsoft.com/pki/mscorp/crl/http://mscrl.microsoft.com/pki/mscorp/crl/http://ocsp.msocsp.comhttp://ocsp.digicert.com/http://crl3.digicert.com/ |
| Microsoft 업데이트 | *.update.microsoft.com *.download.windowsupdate.com *.ctldl.windowsupdate.com *.dl.delivery.mp.microsoft.com *.emdl.ws.microsoft.com |
*.update.microsoft.com *.download.windowsupdate.com *.ctldl.windowsupdate.com *.dl.delivery.mp.microsoft.com *.emdl.ws.microsoft.com |
다음 표는 각 엔드포인트가 어떤 용도로 사용되는지 설명합니다:
| 서비스 | Description |
|---|---|
| Azure Resource Manager | 모든 사용자 호출(예: PowerShell)은 이 URL로 또는 이 URL을 거쳐 전송되며, 초기 서버 등록 호출도 포함됩니다. |
| Microsoft Entra ID (인증) | Azure Resource Manager 호출은 인증된 사용자가 수행해야 합니다. 이 URL은 사용자 인증을 담당합니다. |
| Microsoft Entra ID (service principal) | Azure 파일 동기화 배포의 일환으로, 구독의 Microsoft Entra ID에 서비스 프린시펄이 생성됩니다. 이 원칙은 Azure 파일 동기화 서비스에 최소한의 권한을 위임합니다. 초기 설정을 수행하는 사용자는 구독 소유자 권한을 가져야 합니다. |
| Microsoft Entra ID (등록 UI) | 이 라이브러리는 Azure 파일 동기화 서버 등록 UI가 관리자 로그인에 사용하는 Active Directory 인증 라이브러리에서 접근됩니다. |
| Azure Storage | 서버는 특정 대상 파일 공유에만 액세스를 허용하는 SAS 키를 사용하여 스토리지 계정의 Azure 파일 공유와 직접 통신함으로써 데이터 이동을 더 효율적으로 수행합니다. |
| Azure 파일 동기화 | 초기 서버 등록 후, 서버는 해당 지역 내 Azure 파일 동기화 서비스 인스턴스의 지역 URL을 받아 직접적이고 효율적인 동기화 통신을 수행합니다. |
| Microsoft PKI | Azure 파일 동기화 서비스 및 Azure 파일 공유와 통신하는 데 필요한 중간 인증서를 다운로드합니다. OCSP URL은 인증서 상태를 확인합니다. |
| Microsoft 업데이트 | Azure 파일 동기화 에이전트 업데이트를 다운로드합니다. |
Important
트래픽을 *.afs.azure.net 로 허용할 때, 트래픽은 동기화 서비스에만 허용됩니다. 이 도메인을 사용하는 다른 Microsoft 서비스는 없습니다. *.one.microsoft.com에 대한 트래픽을 허용하면 서버에서 동기화 서비스뿐만 아니라 그 외의 트래픽도 발생할 수 있습니다. 서브도메인 아래에서 제공되는 훨씬 더 많은 Microsoft 서비스가 있습니다.
*.afs.azure.net 또는 *.one.microsoft.com이 너무 광범위한 경우 Azure 파일 동기화 서비스의 명시적 지역 인스턴스로만 통신을 허용하여 서버의 통신을 제한할 수 있습니다. 선택할 인스턴스는 서버를 배포 및 등록한 스토리지 동기화 서비스의 지역에 따라 다릅니다. 이 지역을 아래 표에서는 "기본 엔드포인트 URL"이라고 부릅니다.
비즈니스 연속성 및 재해 복구(BCDR) 이유로, 지리적 중복 저장소(GRS)로 구성된 스토리지 계정에서 Azure 파일 공유를 생성할 수 있습니다. 이 옵션을 선택하면 지속적인 지역 장애가 발생할 경우 Azure 파일 공유가 페어된 영역으로 페어오버됩니다. Azure 파일 동기화는 동일한 지역 쌍을 스토리지로 사용합니다. 따라서 GRS 스토리지 계정을 사용한다면, 서버가 페어링 리전과 통신할 수 있도록 추가 URL을 활성화해야 Azure 파일 동기화가 가능합니다. 다음 표에서는 이를 '쌍 영역(paired region)'이라고 부릅니다. 또한, 트래픽 관리자 프로필 URL도 활성화해야 합니다. 이 URL은 페일오버가 발생하는 경우 네트워크 트래픽이 페어링된 지역으로 원활하게 다시 라우팅되도록 보장하며, 표에서는 "Discovery URL"이라고 합니다.
퍼블릭 클라우드
- 로컬 중복 저장소(LRS) 또는 존 중복 저장소(ZRS)로 구성된 스토리지 계정을 사용한다면, "기본 엔드포인트 URL"에 표시된 URL만 활성화하면 됩니다.
- GRS로 설정된 스토리지 계정을 사용한다면, 세 개의 URL을 활성화하세요: 지역용 기본 엔드포인트 URL, 쌍으로 연결된 지역용 기본 엔드포인트 URL, 그리고 지역별 발견 URL.
예시: 스토리지 싱크 서비스를 "West US" 배포하고 서버를 등록합니다. 서버가 이 경우에 통신할 수 있도록 하는 URL은 다음과 같습니다.
- https://westus01.afs.azure.net (기본 엔드포인트: 미국 서부)
- https://eastus01.afs.azure.net(쌍을 이루는 빠른 장애 조치 지역: 미국 동부)
- https://tm-westus01.afs.azure.net (주 지역의 검색 URL)
다음 표는 Azure 공용 클라우드 영역에서 Azure 파일 동기화의 엔드포인트를 나열합니다.
| Region | 주요 엔드포인트 URL | 쌍을 이루는 지역 | 검색 URL |
|---|---|---|---|
| Australia East | https://australiaeast01.afs.azure.net https://kailani-aue.one.microsoft.com |
Australia Southeast | https://tm-australiaeast01.afs.azure.net https://tm-kailani-aue.one.microsoft.com |
| Australia Southeast | https://australiasoutheast01.afs.azure.net https://kailani-aus.one.microsoft.com |
Australia East | https://tm-australiasoutheast01.afs.azure.net https://tm-kailani-aus.one.microsoft.com |
| Brazil South | https://brazilsouth01.afs.azure.net | 미국 중남부 | https://tm-brazilsouth01.afs.azure.net |
| 캐나다 중부 | https://canadacentral01.afs.azure.net https://kailani-cac.one.microsoft.com |
Canada East | https://tm-canadacentral01.afs.azure.net https://tm-kailani-cac.one.microsoft.com |
| Canada East | https://canadaeast01.afs.azure.net https://kailani-cae.one.microsoft.com |
캐나다 중부 | https://tm-canadaeast01.afs.azure.net https://tm-kailani.cae.one.microsoft.com |
| 인도 중부 | https://centralindia01.afs.azure.net https://kailani-cin.one.microsoft.com |
South India | https://tm-centralindia01.afs.azure.net https://tm-kailani-cin.one.microsoft.com |
| Central US | https://centralus01.afs.azure.net https://kailani-cus.one.microsoft.com |
미국 동부 2 | https://tm-centralus01.afs.azure.net https://tm-kailani-cus.one.microsoft.com |
| East Asia | https://eastasia01.afs.azure.net https://kailani11.one.microsoft.com |
동남아시아 | https://tm-eastasia01.afs.azure.net https://tm-kailani11.one.microsoft.com |
| East US | https://eastus01.afs.azure.net https://kailani1.one.microsoft.com |
West US | https://tm-eastus01.afs.azure.net https://tm-kailani1.one.microsoft.com |
| 미국 동부 2 | https://eastus201.afs.azure.net https://kailani-ess.one.microsoft.com |
Central US | https://tm-eastus201.afs.azure.net https://tm-kailani-ess.one.microsoft.com |
| 독일 북부 | https://germanynorth01.afs.azure.net | 독일 중서부 | https://tm-germanywestcentral01.afs.azure.net |
| 독일 중서부 | https://germanywestcentral01.afs.azure.net | 독일 북부 | https://tm-germanynorth01.afs.azure.net |
| Japan East | https://japaneast01.afs.azure.net | 일본 서부 | https://tm-japaneast01.afs.azure.net |
| 일본 서부 | https://japanwest01.afs.azure.net | Japan East | https://tm-japanwest01.afs.azure.net |
| Korea Central | https://koreacentral01.afs.azure.net/ | 한국 남부 | https://tm-koreacentral01.afs.azure.net/ |
| 한국 남부 | https://koreasouth01.afs.azure.net/ | Korea Central | https://tm-koreasouth01.afs.azure.net/ |
| 미국 중북부 | https://northcentralus01.afs.azure.net | 미국 중남부 | https://tm-northcentralus01.afs.azure.net |
| 북유럽 | https://northeurope01.afs.azure.net https://kailani7.one.microsoft.com |
West Europe | https://tm-northeurope01.afs.azure.net https://tm-kailani7.one.microsoft.com |
| 미국 중남부 | https://southcentralus01.afs.azure.net | 미국 중북부 | https://tm-southcentralus01.afs.azure.net |
| South India | https://southindia01.afs.azure.net https://kailani-sin.one.microsoft.com |
인도 중부 | https://tm-southindia01.afs.azure.net https://tm-kailani-sin.one.microsoft.com |
| 동남아시아 | https://southeastasia01.afs.azure.net https://kailani10.one.microsoft.com |
East Asia | https://tm-southeastasia01.afs.azure.net https://tm-kailani10.one.microsoft.com |
| Switzerland North | https://switzerlandnorth01.afs.azure.net https://tm-switzerlandnorth01.afs.azure.net |
Switzerland West | https://switzerlandwest01.afs.azure.net https://tm-switzerlandwest01.afs.azure.net |
| Switzerland West | https://switzerlandwest01.afs.azure.net https://tm-switzerlandwest01.afs.azure.net |
Switzerland North | https://switzerlandnorth01.afs.azure.net https://tm-switzerlandnorth01.afs.azure.net |
| UAE Central | https://uaecentral01.afs.azure.net | UAE North | https://tm-uaecentral01.afs.azure.net |
| UAE North | https://uaenorth01.afs.azure.net | UAE Central | https://tm-uaenorth01.afs.azure.net |
| UK South | https://uksouth01.afs.azure.net https://kailani-uks.one.microsoft.com |
UK West | https://tm-uksouth01.afs.azure.net https://tm-kailani-uks.one.microsoft.com |
| UK West | https://ukwest01.afs.azure.net https://kailani-ukw.one.microsoft.com |
UK South | https://tm-ukwest01.afs.azure.net https://tm-kailani-ukw.one.microsoft.com |
| 미국 중서부 | https://westcentralus01.afs.azure.net | 미국 서부 2 | https://tm-westcentralus01.afs.azure.net |
| West Europe | https://westeurope01.afs.azure.net https://kailani6.one.microsoft.com |
북유럽 | https://tm-westeurope01.afs.azure.net https://tm-kailani6.one.microsoft.com |
| West US | https://westus01.afs.azure.net https://kailani.one.microsoft.com |
East US | https://tm-westus01.afs.azure.net https://tm-kailani1.one.microsoft.com |
| 미국 서부 2 | https://westus201.afs.azure.net | 미국 중서부 | https://tm-westus201.afs.azure.net |
Azure Government
다음 표는 Azure Government regions의 Azure 파일 동기화 엔드포인트를 나열합니다.
| Region | 주요 엔드포인트 URL | 쌍을 이루는 지역 | 검색 URL |
|---|---|---|---|
| 미국 정부 애리조나주 | https://usgovarizona01.afs.azure.us | 미국 정부 텍사스 | https://tm-usgovarizona01.afs.azure.us |
| 미국 정부 텍사스 | https://usgovtexas01.afs.azure.us | 미국 정부 애리조나주 | https://tm-usgovtexas01.afs.azure.us |
21Vianet에서 운영하는 Microsoft Azure
다음 표는 21Vianet 지역에서 운영되는 Microsoft Azure의 Azure 파일 동기화 엔드포인트를 나열합니다.
| Region | 주요 엔드포인트 URL | 쌍을 이루는 지역 | 검색 URL |
|---|---|---|---|
| 중국 동부 2 | https://chinaeast201.afs.azure.cn | 중국 북부 2 | https://tm-chinaeast201.afs.azure.cn |
| 중국 북부 2 | https://chinanorth201.afs.azure.cn | 중국 동부 2 | https://tm-chinanorth201.afs.azure.cn |
Azure 파일 동기화 IP 주소에 대한 허용 목록
Azure 파일 동기화는 지정된 Azure 서비스에 대한 IP 주소 접두사 그룹을 나타내는 서비스 태그 사용을 지원합니다. 서비스 태그를 사용하여 Azure 파일 동기화 서비스와 통신할 수 있는 방화벽 규칙을 만들 수 있습니다. Azure 파일 동기화의 서비스 태그는 StorageSyncService.
Azure 내에서 Azure 파일 동기화를 사용한다면, 네트워크 보안 그룹에서 서비스 이름 태그를 직접 사용해 트래픽을 허용할 수 있습니다. 이 방법에 대해 더 알고 싶다면 네트워크 보안 그룹을 참조하세요.
온프레미스에서 Azure 파일 동기화를 사용 중이라면, 서비스 태그 API를 사용해 방화벽의 허용 목록에 맞는 특정 IP 주소 범위를 얻을 수 있습니다. 이 정보를 가져오는 방법에는 다음 두 가지가 있습니다.
- 서비스 태그를 지원하는 모든 Azure 서비스에 대한 IP 주소 범위의 현재 목록은 Microsoft 다운로드 센터에서 JSON 문서 형식으로 매주 게시됩니다. 각 Azure 클라우드는 해당 클라우드와 관련된 IP 주소 범위를 포함하는 자체 JSON 문서를 포함합니다.
- 서비스 태그 검색 API는 현재 서비스 태그 목록을 프로그래밍적으로 검색할 수 있게 해줍니다. 자동화 기본 설정에 따라 API surface를 사용할 수 있습니다.
서비스 태그 검색 API가 Microsoft 다운로드 센터에 게시된 JSON 문서만큼 자주 업데이트되지 않을 수 있으므로, 온프레미스 방화벽의 허용 목록을 업데이트할 때 JSON 문서를 사용하는 것을 권장합니다. 이는 다음을 따라 수행할 수 있습니다.
# The specific region to get the IP address ranges for. Replace westus2 with the desired region code
# from Get-AzLocation.
$region = "westus2"
# The service tag for Azure File Sync. Don't change unless you're adapting this
# script for another service.
$serviceTag = "StorageSyncService"
# Download date is the string matching the JSON document on the Download Center.
$possibleDownloadDates = 0..7 | `
ForEach-Object { [System.DateTime]::Now.AddDays($_ * -1).ToString("yyyyMMdd") }
# Verify the provided region
$validRegions = Get-AzLocation | `
Where-Object { $_.Providers -contains "Microsoft.StorageSync" } | `
Select-Object -ExpandProperty Location
if ($validRegions -notcontains $region) {
Write-Error `
-Message "The specified region $region isn't available. Either Azure File Sync isn't deployed there or the region doesn't exist." `
-ErrorAction Stop
}
# Get the Azure cloud. This should automatically based on the context of
# your Az PowerShell login, however if you manually need to populate, you can find
# the correct values using Get-AzEnvironment.
$azureCloud = Get-AzContext | `
Select-Object -ExpandProperty Environment | `
Select-Object -ExpandProperty Name
# Build the download URI
$downloadUris = @()
switch($azureCloud) {
"AzureCloud" {
$downloadUris = $possibleDownloadDates | ForEach-Object {
"https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_$_.json"
}
}
"AzureUSGovernment" {
$downloadUris = $possibleDownloadDates | ForEach-Object {
"https://download.microsoft.com/download/6/4/D/64DB03BF-895B-4173-A8B1-BA4AD5D4DF22/ServiceTags_AzureGovernment_$_.json"
}
}
"AzureChinaCloud" {
$downloadUris = $possibleDownloadDates | ForEach-Object {
"https://download.microsoft.com/download/9/D/0/9D03B7E2-4B80-4BF3-9B91-DA8C7D3EE9F9/ServiceTags_China_$_.json"
}
}
"AzureGermanCloud" {
$downloadUris = $possibleDownloadDates | ForEach-Object {
"https://download.microsoft.com/download/0/7/6/076274AB-4B0B-4246-A422-4BAF1E03F974/ServiceTags_AzureGermany_$_.json"
}
}
default {
Write-Error -Message "Unrecognized Azure Cloud: $_" -ErrorAction Stop
}
}
# Find most recent file
$found = $false
foreach($downloadUri in $downloadUris) {
try { $response = Invoke-WebRequest -Uri $downloadUri -UseBasicParsing } catch { }
if ($response.StatusCode -eq 200) {
$found = $true
break
}
}
if ($found) {
# Get the raw JSON
$content = [System.Text.Encoding]::UTF8.GetString($response.Content)
# Parse the JSON
$serviceTags = ConvertFrom-Json -InputObject $content -Depth 100
# Get the specific $ipAddressRanges
$ipAddressRanges = $serviceTags | `
Select-Object -ExpandProperty values | `
Where-Object { $_.id -eq "$serviceTag.$region" } | `
Select-Object -ExpandProperty properties | `
Select-Object -ExpandProperty addressPrefixes
} else {
# If the file cannot be found, that means there hasn't been an update in
# more than a week. Please verify the download URIs are still accurate
# by checking https://learn.microsoft.com/azure/virtual-network/service-tags-overview
Write-Verbose -Message "JSON service tag file not found."
return
}
그 후 IP $ipAddressRanges 주소 범위를 이용해 방화벽을 업데이트할 수 있습니다. 방화벽 업데이트 방법에 대한 자세한 내용은 방화벽/네트워크 어플라이언스의 웹 사이트를 확인하세요.
서비스 엔드포인트에 대한 네트워크 연결 테스트
서버가 Azure 파일 동기화 서비스에 등록되면, Test-StorageSyncNetworkConnectivity cmdlet과 ServerRegistration.exe를 사용하여 해당 서버에 특화된 모든 엔드포인트(URL)와의 통신을 테스트할 수 있습니다. 이 cmdlet은 불완전한 통신으로 인해 서버가 Azure 파일 동기화를 완전히 작동하지 못할 때 문제 해결에 도움을 주며, 프록시 및 방화벽 구성을 미세 조정하는 데도 활용될 수 있습니다.
네트워크 연결 테스트를 실행하려면 다음 PowerShell 명령을 실행합니다.
Import-Module "C:\Program Files\Azure\StorageSyncAgent\StorageSync.Management.ServerCmdlets.dll"
Test-StorageSyncNetworkConnectivity
테스트가 실패하면 WinHTTP 디버그 트레이스를 수집하여 문제 해결을 하세요: netsh trace start scenario=InternetClient_dbg capture=yes overwrite=yes maxsize=1024
네트워크 연결 테스트를 다시 실행한 후 추적 수집을 중단하세요: netsh trace stop
생성된 NetTrace.etl 파일을 ZIP 아카이브에 넣고, 지원 케이스를 열어 지원팀과 파일을 공유하세요.
방화벽 및 프록시 요구사항 요약
이 문서의 앞부분에 나열된 목록에는 Azure 파일 동기화가 통신하는 URL들이 포함되어 있습니다. 방화벽은 이러한 도메인으로의 아웃바운드 트래픽을 허용해야 합니다. Microsoft는 이 목록을 지속적으로 업데이트하기 위해 노력하고 있습니다.
도메인 제한 방화벽 규칙을 설정하는 것은 보안을 향상시키는 조치가 될 수 있습니다. 이러한 방화벽 구성을 사용할 경우, URL이 추가되고 시간이 지나면서 변경될 수 있다는 점을 유념하세요. 이 글을 주기적으로 확인해 보세요.