powershell - Azure S2S VNet VPN Gateway -


we have setup 1 vnet site site vpn gateway between:

vm azure vnet <-> on premise site.

at end of azure gateway configuration obtain preshared key used in vpn on premise device configuration.

these device not in our control, have asked other preshared key want set on azure gateway.

it's possible web portal? , power-shell? how?

thanks in advance, regards

p.s.: can found complete guide of powershell commands manipulate vpn gateway?

for "classic" asm stack ("classic" vnet) i'm not aware of api allow modify pre-shared key on azure gateway.

for arm, hint in step 8 (-sharedkey parameter) https://azure.microsoft.com/en-in/documentation/articles/vpn-gateway-create-site-to-site-rm-powershell/

create vpn connection

next, you'll create site-to-site vpn connection between virtual network gateway , vpn device. sure replace values own. shared key must match value used vpn device configuration. note -connectiontype site-to-site ipsec.

$gateway1 = get-azurermvirtualnetworkgateway -name vnetgw1 -resourcegroupname testrg $local = get-azurermlocalnetworkgateway -name localsite -resourcegroupname testrg  new-azurermvirtualnetworkgatewayconnection -name localtovon `                                            -resourcegroupname testrg `                                            -location 'west us' `                                            -virtualnetworkgateway1 $gateway1 `                                            -localnetworkgateway2 $local `                                            -connectiontype ipsec `                                            -routingweight 10 `                                            -sharedkey 'abc123' 

note

you don't have use powershell create arm gateway. can using portal ui. you'll presented pre-shared key input box when following new "connection" wizard. first create gateway , site-to-site "connection".

if have arm virtual network gateway created, go https://resources.azure.com/ type in name of site-to-site "connection" in search box, key in json representation, edit, replace , save. wait few minutes gateway pick new key , you're done.

psk

to answer last question:

where can found complete guide of powershell commands manipulate vpn gateway?

resource explorer (https://resources.azure.com) has neat way of exploring -- check out powershell tab while browsing through resources.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -