Update-AzVpnSite
구문
ByVpnSiteNameNoVirtualWanUpdate (기본값)
Update-AzVpnSite
-ResourceGroupName <String>
-Name <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteNameByVirtualWanName
Update-AzVpnSite
-ResourceGroupName <String>
-Name <String>
-VirtualWanResourceGroupName <String>
-VirtualWanName <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteNameByVirtualWanResourceId
Update-AzVpnSite
-ResourceGroupName <String>
-Name <String>
-VirtualWanId <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteNameByVirtualWanObject
Update-AzVpnSite
-ResourceGroupName <String>
-Name <String>
-VirtualWan <PSVirtualWan>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteObjectByVirtualWanName
Update-AzVpnSite
-InputObject <PSVpnSite>
-VirtualWanResourceGroupName <String>
-VirtualWanName <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteObjectByVirtualWanResourceId
Update-AzVpnSite
-InputObject <PSVpnSite>
-VirtualWanId <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteObjectByVirtualWanObject
Update-AzVpnSite
-InputObject <PSVpnSite>
-VirtualWan <PSVirtualWan>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteObjectNoVirtualWanUpdate
Update-AzVpnSite
-InputObject <PSVpnSite>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteResourceIdByVirtualWanName
Update-AzVpnSite
-ResourceId <String>
-VirtualWanResourceGroupName <String>
-VirtualWanName <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteResourceIdByVirtualWanResourceId
Update-AzVpnSite
-ResourceId <String>
-VirtualWanId <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteResourceIdByVirtualWanObject
Update-AzVpnSite
-ResourceId <String>
-VirtualWan <PSVirtualWan>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByVpnSiteResourceIdNoVirtualWanUpdate
Update-AzVpnSite
-ResourceId <String>
[-IpAddress <String>]
[-AddressSpace <String[]>]
[-DeviceModel <String>]
[-DeviceVendor <String>]
[-LinkSpeedInMbps <UInt32>]
[-BgpAsn <UInt32>]
[-BgpPeeringAddress <String>]
[-BgpPeeringWeight <UInt32>]
[-VpnSiteLink <PSVpnSiteLink[]>]
[-O365Policy <PSO365PolicyProperties>]
[-Tag <Hashtable>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update-AzVpnSite cmdlet은 VPN 사이트를 업데이트합니다.
예제
예제 1
New-AzResourceGroup -Location "West US" -Name "testRG"
$virtualWan = New-AzVirtualWan -ResourceGroupName testRG -Name myVirtualWAN -Location "West US"
$vpnSiteAddressSpaces = New-Object string[] 2
$vpnSiteAddressSpaces[0] = "192.168.2.0/24"
$vpnSiteAddressSpaces[1] = "192.168.3.0/24"
New-AzVpnSite -ResourceGroupName "testRG" -Name "testVpnSite" -Location "West US" -VirtualWan $virtualWan -IpAddress "1.2.3.4" -AddressSpace $vpnSiteAddressSpaces -DeviceModel "SomeDevice" -DeviceVendor "SomeDeviceVendor" -LinkSpeedInMbps "10"
New-AzVpnSite -ResourceGroupName "testRG" -Name "testVpnSite" -Location "West US" -VirtualWan $virtualWan -IpAddress "2.3.5.5"
ResourceGroupName : testRG
Name : testVpnSite
Id : /subscriptions/{subscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/vpnSites/testVpnSite
Location : eastus2euap
IpAddress : 2.3.4.5
VirtualWan : /subscriptions/{subscriptionId}/resourceGroups/testRG/providers/Microsoft.Network/virtualWans/myVirtualWAN
AddressSpace : {192.168.2.0/24, 192.168.3.0/24}
BgpSettings :
Type : Microsoft.Network/vpnSites
ProvisioningState : Succeeded
위의 내용은 Azure의 "testRG" 리소스 그룹에 미국 서부의 Virtual WAN이라는 리소스 그룹을 만듭니다.
그런 다음 고객 분기를 나타내는 VpnSite를 만들어 Virtual WAN에 연결합니다.
사이트가 만들어지면 Set-AzVpnSite 명령을 사용하여 사이트의 IpAddress를 업데이트합니다.
매개 변수
-AddressSpace
가상 네트워크의 주소 접두사입니다.
이 또는 AddressSpaceObject를 사용하지만 둘 다 사용하지는 않습니다.
매개 변수 속성
형식: String [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-AsJob
백그라운드에서 cmdlet 실행
매개 변수 속성
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-BgpAsn
이 VpnSite에 대한 BGP ASN입니다.
매개 변수 속성
형식: UInt32
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-BgpPeeringAddress
이 VpnSite의 BGP 피어링 주소입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-BgpPeeringWeight
이 VpnSite의 BGP 피어링 가중치입니다.
매개 변수 속성
형식: UInt32
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-Confirm
cmdlet을 실행하기 전에 확인 메시지를 표시합니다.
매개 변수 속성
형식: SwitchParameter
Default value: None
와일드카드 지원: False
DontShow: False
별칭: cf(cf)
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
매개 변수 속성
형식: IAzureContextContainer
Default value: None
와일드카드 지원: False
DontShow: False
별칭: AzContext, AzureRmContext, AzureCredential
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DeviceModel
원격 vpn 디바이스의 디바이스 모델입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-DeviceVendor
원격 vpn 디바이스의 디바이스 공급업체입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
수정할 vpn 사이트 개체
형식: PSVpnSite
Default value: None
와일드카드 지원: False
DontShow: False
별칭: VpnSite
ByVpnSiteObjectByVirtualWanName
Position: Named
필수: True
파이프라인의 값: True
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: True
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: True
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectNoVirtualWanUpdate
Position: Named
필수: True
파이프라인의 값: True
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-IpAddress
로컬 네트워크 게이트웨이의 IP 주소입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-LinkSpeedInMbps
원격 vpn 디바이스의 디바이스 모델입니다.
매개 변수 속성
형식: UInt32
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-Name
리소스 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
별칭: 자원명, VpnSiteName
매개 변수 집합
ByVpnSiteNameNoVirtualWanUpdate
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-O365Policy
이 VpnSite에 대한 Office 365 트래픽 중단 정책입니다.
매개 변수 속성
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-ResourceGroupName
리소스 그룹 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ByVpnSiteNameNoVirtualWanUpdate
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteNameByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-ResourceId
vpn 사이트의 Azure 리소스 ID입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
별칭: VpnSiteId
매개 변수 집합
ByVpnSiteResourceIdByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
ByVpnSiteResourceIdNoVirtualWanUpdate
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: True
나머지 인수의 값: False
-Tag
리소스 태그를 나타내는 해시 테이블입니다.
매개 변수 속성
형식: Hashtable
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-VirtualWan
이 VpnSite를 연결해야 하는 VirtualWan입니다.
매개 변수 속성
형식: PSVirtualWan
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ByVpnSiteNameByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanObject
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-VirtualWanId
이 VpnSite를 연결해야 하는 ResourceId VirtualWan입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ByVpnSiteNameByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanResourceId
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-VirtualWanName
이 VpnSite에 연결해야 하는 VirtualWan의 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ByVpnSiteNameByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-VirtualWanResourceGroupName
이 VpnSite를 연결해야 하는 VirtualWan의 리소스 그룹 이름입니다.
매개 변수 속성
형식: String
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
ByVpnSiteNameByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteObjectByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
ByVpnSiteResourceIdByVirtualWanName
Position: Named
필수: True
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-VpnSiteLink
이 VpnSite에 있는 VpnSiteLink 목록입니다.
매개 변수 속성
형식: PSVpnSiteLink [ ]
Default value: None
와일드카드 지원: False
DontShow: False
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
-WhatIf
cmdlet이 실행되면 어떻게 되는지 보여 주세요.
cmdlet이 실행되지 않습니다.
매개 변수 속성
형식: SwitchParameter
Default value: None
와일드카드 지원: False
DontShow: False
별칭: 위스콘신
매개 변수 집합
(All)
Position: Named
필수: False
파이프라인의 값: False
속성 이름별 파이프라인의 값: False
나머지 인수의 값: False
CommonParameters
이 cmdlet은 일반적인 매개 변수인 -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction 및 -WarningVariable 매개 변수를 지원합니다. 자세한 내용은 about_CommonParameters 를 참조하세요.
출력