Get-AzureRmVirtualNetworkGatewayConnection Error: Missing type map configuration or unsupported mapping.
Hello!
Can't seem to use Get-AzureRmVirtualNetworkGatewayConnection.
Versions:
- AzureRM module version 1.2.0
- PowerShell version: 4.0
- OS: 2012 R2
Steps to reproduce:
- Created a virtual network gateway connection
- Used it
- Tried to run Get-AzureRmVirtualNetworkGatewayConnection
Output:
PS > Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName REDACTED
Get-AzureRmVirtualNetworkGatewayConnection : Missing type map configuration or unsupported mapping.
Mapping types:
Int64 -> UInt64
System.Int64 -> System.UInt64
Destination path:
PSVirtualNetworkGatewayConnection.EgressBytesTransferred.EgressBytesTransferred
Source value:
0
At line:1 char:1
+ Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName REDACTED
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureRmVirt...tewayConnection], AutoMapperMappingException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.GetAzureVirtualNetworkGatewayConnectionCommand
Cheers!
@RamblingCookieMonster Interesting, thank you for the report! I'll forward to the appropriate team for repro and fix
I'm getting the same issue.
I am getting the same error when I use New-AzureRmVirtualNetworkGatewayConnection.
Same issue on: OS: 7 64-bit PS: 4 0 -1 -1 Azure module: 1.0.5
Same issue on Get-AzureRmApplicationGateway in AzurePs 1.3.0
Same issue with New-AzureRmVirtualNetworkGatewayConnection on Azure Module 1.3.2
I cannot create a new Gateway Connection. Same error: PS C:\WINDOWS\system32> New-AzureRmVirtualNetworkGatewayConnection -Name "osr-sec01-ERConnect" -ResourceGroupName "osr-sec01-network" -Location "West Europe" -VirtualNetworkGateway1 $gw -PeerId $circuit.Id -ConnectionType ExpressRoute
New-AzureRmVirtualNetworkGatewayConnection :
Mapping types:
UInt64 -> Nullable1 System.UInt64 -> System.Nullable1[[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
Destination path:
VirtualNetworkGatewayConnection.EgressBytesTransferred.EgressBytesTransferred
Source value:
0
In Zeile:1 Zeichen:1
- New-AzureRmVirtualNetworkGatewayConnection -Name "osr-sec01-ERConnect ...
-
- CategoryInfo : CloseError: (:) [New-AzureRmVirt...tewayConnection], AutoMapperMappingException - FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.NewAzureVirtualNetworkGatewayConnectionCommand
Will take a look.
Hi folks. We have released a hotfix to NRP which should fix this. Please try again and report back.
thanks.
this fixed the issue for me , was getting the error with 1.09 , upgraded to 1.10 , now all good thx. Andy Ball
I am still seeing an error when running this cmdlet and the version installed shows 1.0.10 attempts to update the azurerm.network module do not update any files and the latest build of the azurerm modules has been installed.
Not sure what to try next.
Problem seems to have been reintroduced in AzureRM.Network v2.2.0, v2.1.0 works as exptected. Error in 2.2.0:
New-AzureRmVirtualNetworkGatewayConnection :
Mapping types:
UInt64 -> Nullable1 System.UInt64 -> System.Nullable1[[System.Int64, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]
Destination path:
VirtualNetworkGatewayConnection.EgressBytesTransferred.EgressBytesTransferred
Source value:
0
At line:1 char:9
- $conn = New-AzureRmVirtualNetworkGatewayConnection -Name $ERConnectio ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : CloseError: (:) [New-AzureRmVirt...tewayConnection], AutoMapperMappingException
- FullyQualifiedErrorId : Microsoft.Azure.Commands.Network.NewAzureVirtualNetworkGatewayConnectionCommand
Morgan
I get the exact same error as morgansimonsen when attempting to run New-AzureRmVirtualNetworkGatewayConnection
AzureRM Version: 2.1.0
I'm also getting this error with AzureRm.Network 3.0.0
Experiencing the same issue for Get-AzureRmVirtualNetworkGatewayConnection with version 3.2.0. Anyone working on this?
Also on version 3.2.0 for AzureRm and receiving this issue....
Same problem. Azure.Rm.Network 3.2.0.
I will forward this onto our Gateway PM to review.
Resent this to the dev team to take a look at. Apologies for the slow response. Holidays slow things down a bit.
Rather than reopen this one you can track this from here, #2873
Thanks.
Hi. This problem disappeared when installing AzureRm with the msi instead of the install-module command from the psgallery.
- jan. 2017 7:14 p.m. skrev "Mark Brown" [email protected]:
Resent this to the dev team to take a look at. Apologies for the slow response. Holidays slow things down a bit.
Rather than reopen this one you can track this from here, #2873 https://github.com/Azure/azure-powershell/issues/2873
Thanks.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Azure/azure-powershell/issues/1812#issuecomment-270004411, or mute the thread https://github.com/notifications/unsubscribe-auth/AFZEa-UVjV-94Qo55sy1wM1l26d6FYJEks5rOT5vgaJpZM4HZRKL .