Azure / Azure/azure-powershell

New-AzureRmVirtualNetworkGatewayConnection Vnet2Vnet error

Open
#3,823 6 comments 0 reactions 1 assignee Claimed by @Nilambari View on GitHub
act-quality-productivity-squad customer-reported Network - VPN Gateway Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

Hi,
I'm trying to establish vnet2vnet connection between West Europe Subscription and China East subscription. Following the guide on:
https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vnet-vnet-rm-ps:

Add-AzureRmAccount -EnvironmentName AzureCloud -SubscriptionId 7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7 -TenantId 62105228-2a82-465c-ad18-278cc6455cb5

$vnet1gw = Get-AzureRmVirtualNetworkGateway -Name "ALT-P-GW" -ResourceGroupName "ALT-VNET"

$vnet1gw.Name
$vnet1gw.Id
ALT-P-GW
/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/virtualNetworkGateways/ALT-P-GW

Add-AzureRmAccount -EnvironmentName AzureChinaCloud -SubscriptionId a05123e2-61fe-41a2-a350-1efc59b44c40 -TenantId 67989d6f-7949-4eaf-8f32-f8c47781fab2
$vnet2gw = Get-AzureRmVirtualNetworkGateway -Name "altcn-gw2" -ResourceGroupName "ALTCN-VNET2"

$vnet2gw.Name
$vnet2gw.Id
altcn-gw2
/subscriptions/a05123e2-61fe-41a2-a350-1efc59b44c40/resourceGroups/altcn-vnet2/providers/Microsoft.Network/virtualNetworkGateways/altcn-gw2

$vnet2gw = New-Object Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGateway
$vnet2gw.Name = "altcn-gw2"
$vnet2gw.Id = "/subscriptions/a05123e2-61fe-41a2-a350-1efc59b44c40/resourceGroups/altcn-vnet2/providers/Microsoft.Network/virtualNetworkGateways/altcn-gw2"
$Connection1 = "EuropeToChina"
New-AzureRmVirtualNetworkGatewayConnection -Name $Connection1 -ResourceGroupName "ALT-VNET" -VirtualNetworkGateway1 $vnet1gw -VirtualNetworkGateway2 $vnet2gw -Location "West Europe" -ConnectionType Vnet2Vnet -SharedKey "jkr8R8ZY5F9h53F" -Debug

$vnet1gw = New-Object Microsoft.Azure.Commands.Network.Models.PSVirtualNetworkGateway
$vnet1gw.Name = "ALT-P-GW"
$vnet1gw.Id = "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/virtualNetworkGateways/ALT-P-GW"
$Connection2 = "ChinaToEurope"
New-AzureRmVirtualNetworkGatewayConnection -Name $Connection2 -ResourceGroupName "ALTCN-VNET2" -VirtualNetworkGateway1 $vnet2gw -VirtualNetworkGateway2 $vnet1gw -Location "ChinaEast" -ConnectionType "Vnet2Vnet" -SharedKey "jkr8R8ZY5F9h53F"

Error occurs when running the New-AzureRmVirtualNetworkGatewayConnection cmdlet:

PS C:\Users\sentia-admin> New-AzureRmVirtualNetworkGatewayConnection -Name $Connection1 -ResourceGroupName "ALT-VNET" -VirtualNetworkGateway1 $vnet1gw -VirtualNetworkGateway2 $vnet2gw -Location "West Europe" -ConnectionType Vnet2Vnet -SharedKey "jkr8R8ZY5F9h53F" -Debug

DEBUG: 12:12:31 AM - NewAzureVirtualNetworkGatewayConnectionCommand begin processing with ParameterSet 'SetByResource'.
DEBUG: 12:12:33 AM - using account id 'foxtrot-sentia@outlook.com'...
WARNING: The output object type of this cmdlet will be modified in a future release.
DEBUG: [Common.Authentication]: Authenticating using Account: 'foxtrot-sentia@outlook.com', environment: 'AzureCloud', tenant: '62105228-2a82-465c-ad18-278cc6455cb5'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: - TokenCache: Deserialized 2 items to token cache.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/62105228-2a82-465c-ad18-278cc6455cb5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (2 items)
Authentication Target: User

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - TokenCache: 39.7711853416667 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: b58f1419-8ec6-4f83-a3a2-cde78f71438c - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:

Access Token Hash: qJA+YfIVPK/BsCLhaQ6DWdL8B51FdEV1zlCflHKNEBM=
Refresh Token Hash: 3w9kaKJjrMgdHIVrbRxPvS1CmewIXIC7SQyp3Mfq2nE=
Expiration Time: 04/25/2017 22:52:20 +00:00
User Hash: m4Zid+foUgorlI0TfSe4l4oOA3ICLo8Ym0SKh9nIrzA=

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: - TokenCache: Serializing token cache with 2 items.

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/62105228-2a82-465c-ad18-278cc6455cb5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (2 items)
Authentication Target: User

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - TokenCache: 39.7711853416667 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:34: 57c2276d-a916-45d8-923b-900aef5116aa - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:

Access Token Hash: qJA+YfIVPK/BsCLhaQ6DWdL8B51FdEV1zlCflHKNEBM=
Refresh Token Hash: 3w9kaKJjrMgdHIVrbRxPvS1CmewIXIC7SQyp3Mfq2nE=
Expiration Time: 04/25/2017 22:52:20 +00:00
User Hash: m4Zid+foUgorlI0TfSe4l4oOA3ICLo8Ym0SKh9nIrzA=

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/connections/EuropeToChina?api-ver
sion=2017-03-01

Headers:
x-ms-client-request-id : 4d330bc3-7128-4e94-b538-b041e4816b76
accept-language : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma : no-cache
x-ms-request-id : f417e719-4092-4970-8690-e4b273228037
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 14999
x-ms-correlation-request-id : 58156d0b-0d9e-4ba8-b4d2-ff5940b058bf
x-ms-routing-request-id : WESTEUROPE:20170425T221234Z:58156d0b-0d9e-4ba8-b4d2-ff5940b058bf
Date : Tue, 25 Apr 2017 22:12:33 GMT

Body:
{
"name": "EuropeToChina",
"id": "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/connections/EuropeToChina",
"etag": "W/\"9b0bc682-f093-4a89-9eb6-e33fb51afc53\"",
"type": "Microsoft.Network/connections",
"location": "westeurope",
"properties": {
"provisioningState": "Failed",
"resourceGuid": "7e131c4a-1c5c-4fff-8d51-85444188b189",
"virtualNetworkGateway1": {
"id": "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/virtualNetworkGateways/ALT-P-GW"
},
"virtualNetworkGateway2": {
"id": "/subscriptions/a05123e2-61fe-41a2-a350-1efc59b44c40/resourceGroups/altcn-vnet2/providers/Microsoft.Network/virtualNetworkGateways/altcn-gw2"
},
"connectionType": "Vnet2Vnet",
"routingWeight": 0,
"sharedKey": "3082019806092A864886F70D010703A0820189308201850201003182014930820145020100302D3019311730150603550403130E6E72702D656E6372797074696F6E02101AB732F8BB2
180BE42B34E9392F004E3300D06092A864886F70D01010105000482010058768BC12830A7C97A61B9C99ED4C01CCD17CB557F8C23C093CE9F8DC635B6F0B9B615F9FB9F1D57381A041C4D839B807B62D78D4C
035BC8B854DBE314CEBCD05DFC2FD3CCAA948E033A35072805CA8E7E0CC6D8C79730693DDD6B32CA2930C5FABE469D5B30A65D97417A1820C8274DD51F0F1F2633AC83FA69CDD558FE46B6A8770F7FE7CE834
70B20D6666C3165295777AD8B42823C50B0B12157EF16A4DDE9B64C61F340A4C39397BEDF164BE80AFC20C5BD622C7DD646BCCB5B9CEE2C79C78EBBAE2C16947DE6F1F35B87B09651988D81E4BCF4172270C6
8E9DAADAC1B4B2210105F70CF3E824C635378248A8B92903FD5771E19B9AF72AF0D7089B0312303306092A864886F70D010701301406082A864886F70D0307040870F8BC739B8338CA80107BF40034B2CE725
4ACFF772D12AD0669",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0,
"tunnelConnectionStatus": []
}
}

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/62105228-2a82-465c-ad18-278cc6455cb5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (2 items)
Authentication Target: User

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - TokenCache: 39.73747736 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:12:36: 65de1365-6bf9-4dea-8b8b-3f01a9bb799f - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:

Access Token Hash: qJA+YfIVPK/BsCLhaQ6DWdL8B51FdEV1zlCflHKNEBM=
Refresh Token Hash: 3w9kaKJjrMgdHIVrbRxPvS1CmewIXIC7SQyp3Mfq2nE=
Expiration Time: 04/25/2017 22:52:20 +00:00
User Hash: m4Zid+foUgorlI0TfSe4l4oOA3ICLo8Ym0SKh9nIrzA=

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/connections/EuropeToChina?api-ver
sion=2017-03-01

Headers:
x-ms-client-request-id : 87f73b61-6802-41d1-8346-3306095bb87a
accept-language : en-US

Body:
{
"properties": {
"virtualNetworkGateway1": {
"properties": {
"ipConfigurations": [],
"enableBgp": false,
"activeActive": false
},
"id": "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/virtualNetworkGateways/ALT-P-GW",
"name": "ALT-P-GW"
},
"virtualNetworkGateway2": {
"properties": {
"ipConfigurations": [],
"enableBgp": false,
"activeActive": false
},
"id": "/subscriptions/a05123e2-61fe-41a2-a350-1efc59b44c40/resourceGroups/altcn-vnet2/providers/Microsoft.Network/virtualNetworkGateways/altcn-gw2",
"name": "altcn-gw2"
},
"connectionType": "Vnet2Vnet",
"routingWeight": 0,
"sharedKey": "jkr8R8ZY5F9h53F",
"tunnelConnectionStatus": [],
"egressBytesTransferred": 0,
"ingressBytesTransferred": 0,
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": []
},
"name": "EuropeToChina",
"location": "West Europe"
}

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma : no-cache
Retry-After : 10
x-ms-request-id : 49b1f8ec-152e-4d5f-897c-c4a301caef12
Azure-AsyncOperation : https://management.azure.com/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/providers/Microsoft.Network/locations/westeurope/oper
ations/49b1f8ec-152e-4d5f-897c-c4a301caef12?api-version=2017-03-01
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : b99187b4-de20-4d2c-b47c-0054c39835fe
x-ms-routing-request-id : WESTEUROPE:20170425T221236Z:b99187b4-de20-4d2c-b47c-0054c39835fe
Date : Tue, 25 Apr 2017 22:12:35 GMT

Body:
{
"name": "EuropeToChina",
"id": "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/connections/EuropeToChina",
"etag": "W/\"615a5149-2fe0-4013-857e-c63dc36cfaa1\"",
"type": "Microsoft.Network/connections",
"location": "westeurope",
"properties": {
"provisioningState": "Updating",
"resourceGuid": "7e131c4a-1c5c-4fff-8d51-85444188b189",
"virtualNetworkGateway1": {
"id": "/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/resourceGroups/ALT-VNET/providers/Microsoft.Network/virtualNetworkGateways/ALT-P-GW"
},
"virtualNetworkGateway2": {
"id": "/subscriptions/a05123e2-61fe-41a2-a350-1efc59b44c40/resourceGroups/altcn-vnet2/providers/Microsoft.Network/virtualNetworkGateways/altcn-gw2"
},
"connectionType": "Vnet2Vnet",
"routingWeight": 0,
"sharedKey": "3082019806092A864886F70D010703A0820189308201850201003182014930820145020100302D3019311730150603550403130E6E72702D656E6372797074696F6E02101AB732F8BB2
180BE42B34E9392F004E3300D06092A864886F70D0101010500048201000F4C837C9F9CB6CA3DEB986B03EB0ED7D035E8206D32ABE63C7F564C447423387D84BB9F9DA349FF9D8DA753838F1867305D3B0647
2C878D07D473C26EE1DCA693F8C0947968D1957D1AD2CAEA16B21953D23C816BBB881A65C1CFB281FF95B063CBCE368C3A8E3E7BA5616C07B2D6DB59C8BA2694679D628399ED6B7964F6A59C6C29DCE6A31AA
A49E2995B68AEAE194542D21775C24D7744E6892C40CE4B3AB515A38CF06D32B9FBC5B72DDA2F70D3A6EA9AAC08B2DD25D03BF05EE2141B2FCBE30B0D26F4BEDFE3D6675DF689FAB8040D418FF989CA2D9299
D58D22928D46BE482FC1185D9C2901A8168C10F7C79B8B7A79A9BA1541E0472597F05560690B303306092A864886F70D010701301406082A864886F70D0307040888593EE5966997C680109F41173873A20FB
E3E86405E57C8FF69",
"enableBgp": false,
"usePolicyBasedTrafficSelectors": false,
"ipsecPolicies": [],
"ingressBytesTransferred": 0,
"egressBytesTransferred": 0,
"tunnelConnectionStatus": []
}
}

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/62105228-2a82-465c-ad18-278cc6455cb5/
Resource: https://management.core.windows.net/
ClientId: 1950a258-227b-4e31-a9cf-717495945fc2
CacheType: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache (2 items)
Authentication Target: User

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - TokenCache: Looking up cache for a token...

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - TokenCache: An item matching the requested resource was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Verbose: 1 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - TokenCache: 39.2321321183333 minutes left until token in cache expires

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - TokenCache: A matching item (access token or refresh token or both) was found in the cache

DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 04/25/2017 22:13:06: ee124d73-5f3f-4919-ba1f-ef4dfe4ad9c4 - AcquireTokenHandlerBase: === Token Acquisition finished successfully. An access token was retuned:

Access Token Hash: qJA+YfIVPK/BsCLhaQ6DWdL8B51FdEV1zlCflHKNEBM=
Refresh Token Hash: 3w9kaKJjrMgdHIVrbRxPvS1CmewIXIC7SQyp3Mfq2nE=
Expiration Time: 04/25/2017 22:52:20 +00:00
User Hash: m4Zid+foUgorlI0TfSe4l4oOA3ICLo8Ym0SKh9nIrzA=

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/7abdac23-f45e-4cc0-a9e6-6652ac9cf1a7/providers/Microsoft.Network/locations/westeurope/operations/49b1f8ec-152e-4d5f-897c-c
4a301caef12?api-version=2017-03-01

Headers:

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma : no-cache
x-ms-request-id : 05739aaf-dd5e-4292-8629-256a13dccd26
Strict-Transport-Security : max-age=31536000; includeSubDomains
Cache-Control : no-cache
Server : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 14998
x-ms-correlation-request-id : 84a3d57f-9f4a-480a-8a36-87a4296d4a00
x-ms-routing-request-id : WESTEUROPE:20170425T221306Z:84a3d57f-9f4a-480a-8a36-87a4296d4a00
Date : Tue, 25 Apr 2017 22:13:05 GMT

Body:
{
"status": "Failed",
"error": {
"code": "InternalServerError",
"message": "An error occured.",
"details": []
}
}

New-AzureRmVirtualNetworkGatewayConnection : Long running operation failed with status 'Failed'.
Status: Failed
ErrorMessage: An error occured.
At line:1 char:1
+ New-AzureRmVirtualNetworkGatewayConnection -Name $Connection1 -Resour ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmVirt...tewayConnection], NetworkCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.NewAzureVirtualNetworkGatewayConnectionCommand

DEBUG: 12:13:11 AM - NewAzureVirtualNetworkGatewayConnectionCommand end processing.
DEBUG: 12:13:11 AM - NewAzureVirtualNetworkGatewayConnectionCommand end processing

PS C:\Users\sentia-admin> Get-Module -ListAvailable -Name Azure* -Refresh

Directory: C:\Program Files (x86)\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 0.2.0 Azure.AnalysisServices {Add-AzureAnalysisServicesAccount, Restart-AzureAnalysisServicesInstance, Login-AzureAsAccount, Restart...
Script 2.8.0 Azure.Storage {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageTableStoredAccessPolicy, New-Azu...
Script 3.8.0 AzureRM {Update-AzureRM, Import-AzureRM, Uninstall-AzureRM, Install-AzureRM}
Script 0.2.0 AzureRM.AnalysisServices {Resume-AzureRmAnalysisServicesServer, Suspend-AzureRmAnalysisServicesServer, Get-AzureRmAnalysisServic...
Script 3.6.0 AzureRM.ApiManagement {Add-AzureRmApiManagementRegion, Get-AzureRmApiManagementSsoToken, New-AzureRmApiManagementHostnameConf...
Script 2.8.0 AzureRM.Automation {Get-AzureRMAutomationHybridWorkerGroup, Get-AzureRmAutomationJobOutputRecord, Import-AzureRmAutomation...
Script 2.8.0 AzureRM.Backup {Backup-AzureRmBackupItem, Enable-AzureRmBackupContainerReregistration, Get-AzureRmBackupContainer, Reg...
Script 2.8.0 AzureRM.Batch {Remove-AzureRmBatchAccount, Get-AzureRmBatchAccount, Get-AzureRmBatchAccountKeys, New-AzureRmBatchAcco...
Script 0.11.0 AzureRM.Billing Get-AzureRmBillingInvoice
Script 2.8.0 AzureRM.Cdn {Get-AzureRmCdnProfile, Get-AzureRmCdnProfileSsoUrl, New-AzureRmCdnProfile, Remove-AzureRmCdnProfile...}
Script 0.6.0 AzureRM.CognitiveServices {Get-AzureRmCognitiveServicesAccount, Get-AzureRmCognitiveServicesAccountKey, Get-AzureRmCognitiveServi...
Script 2.9.0 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-AzureRmA...
Script 2.8.0 AzureRM.DataFactories {Remove-AzureRmDataFactory, Get-AzureRmDataFactoryRun, Get-AzureRmDataFactorySlice, Save-AzureRmDataFac...
Script 2.8.0 AzureRM.DataLakeAnalytics {Get-AzureRmDataLakeAnalyticsDataSource, New-AzureRmDataLakeAnalyticsCatalogCredential, Remove-AzureRmD...
Script 3.6.0 AzureRM.DataLakeStore {Get-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureRmDataLakeStoreTrustedIdProvider, Remove-AzureR...
Script 2.8.0 AzureRM.DevTestLabs {Get-AzureRmDtlAllowedVMSizesPolicy, Get-AzureRmDtlAutoShutdownPolicy, Get-AzureRmDtlAutoStartPolicy, G...
Script 2.8.0 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmDnsRecordS...
Script 0.2.0 AzureRM.EventHub {New-AzureRmEventHubKey, Get-AzureRmEventHubNamespace, Get-AzureRmEventHubNamespaceAuthorizationRule, G...
Script 2.8.0 AzureRM.HDInsight {Get-AzureRmHDInsightJob, New-AzureRmHDInsightSqoopJobDefinition, Wait-AzureRmHDInsightJob, New-AzureRm...
Script 2.8.0 AzureRM.Insights {Get-AzureRmUsage, Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile...}
Script 1.4.0 AzureRM.IotHub {Add-AzureRmIotHubKey, Get-AzureRmIotHubEventHubConsumerGroup, Get-AzureRmIotHubConnectionString, Get-A...
Script 2.8.0 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKeyVaultCertificateOper...
Script 2.8.0 AzureRM.LogicApp {Get-AzureRmIntegrationAccountAgreement, Get-AzureRmIntegrationAccountCallbackUrl, Get-AzureRmIntegrati...
Script 0.13.0 AzureRM.MachineLearning {Move-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentAssociation, Get-AzureRmMlCommitmentPlanUs...
Script 0.5.0 AzureRM.Media {Sync-AzureRmMediaServiceStorageKeys, Set-AzureRmMediaServiceKey, Get-AzureRmMediaServiceKeys, Get-Azur...
Script 3.7.0 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticationCer...
Script 2.8.0 AzureRM.NotificationHubs {Get-AzureRmNotificationHub, Get-AzureRmNotificationHubAuthorizationRules, Get-AzureRmNotificationHubLi...
Script 2.8.0 AzureRM.OperationalInsights {New-AzureRmOperationalInsightsAzureActivityLogDataSource, New-AzureRmOperationalInsightsCustomLogDataS...
Script 2.8.0 AzureRM.PowerBIEmbedded {Remove-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWorkspaceCollection, Get-AzureRmPowerBIWor...
Script 2.8.0 AzureRM.profile {Disable-AzureRmDataCollection, Enable-AzureRmDataCollection, Remove-AzureRmEnvironment, Get-AzureRmEnv...
Script 2.8.0 AzureRM.RecoveryServices {Get-AzureRmRecoveryServicesBackupProperties, Get-AzureRmRecoveryServicesVault, Get-AzureRmRecoveryServ...
Script 2.8.0 AzureRM.RecoveryServices.Backup {Backup-AzureRmRecoveryServicesBackupItem, Get-AzureRmRecoveryServicesBackupManagementServer, Get-Azure...
Script 2.8.0 AzureRM.RedisCache {Remove-AzureRmRedisCachePatchSchedule, New-AzureRmRedisCacheScheduleEntry, Get-AzureRmRedisCachePatchS...
Script 3.8.0 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRole...
Script 0.13.0 AzureRM.Scheduler {Disable-AzureRmSchedulerJobCollection, Enable-AzureRmSchedulerJobCollection, Get-AzureRmSchedulerJobCo...
Script 2.8.0 AzureRM.ServerManagement {Invoke-AzureRmServerManagementPowerShellCommand, Get-AzureRmServerManagementSession, New-AzureRmServer...
Script 0.2.0 AzureRM.ServiceBus {Get-AzureRmServiceBusTopic, Get-AzureRmServiceBusTopicAuthorizationRule, Get-AzureRmServiceBusTopicKey...
Script 3.7.0 AzureRM.SiteRecovery {Get-AzureRmSiteRecoveryFabric, New-AzureRmSiteRecoveryFabric, Remove-AzureRmSiteRecoveryFabric, Stop-A...
Script 2.8.0 AzureRM.Sql {Get-AzureRmSqlDatabaseTransparentDataEncryption, Get-AzureRmSqlDatabaseTransparentDataEncryptionActivi...
Script 2.8.0 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmStorage...
Script 2.8.0 AzureRM.StreamAnalytics {Get-AzureRmStreamAnalyticsFunction, Get-AzureRmStreamAnalyticsDefaultFunctionDefinition, New-AzureRmSt...
Script 2.8.0 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag}
Script 2.8.0 AzureRM.TrafficManager {Disable-AzureRmTrafficManagerEndpoint, Enable-AzureRmTrafficManagerEndpoint, Set-AzureRmTrafficManager...
Script 2.8.0 AzureRM.UsageAggregates Get-UsageAggregates
Script 2.8.0 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAppServ...

Thanks for helping out

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.