azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzureRmVirtualNetworkGatewayConnection Error: Missing type map configuration or unsupported mapping.

Open RamblingCookieMonster opened this issue 10 years ago • 21 comments

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 avatar Feb 12 '16 18:02 RamblingCookieMonster

@RamblingCookieMonster Interesting, thank you for the report! I'll forward to the appropriate team for repro and fix

markcowl avatar Feb 12 '16 21:02 markcowl

I'm getting the same issue.

jt55401 avatar Feb 29 '16 21:02 jt55401

I am getting the same error when I use New-AzureRmVirtualNetworkGatewayConnection.

twbcds avatar Apr 07 '16 12:04 twbcds

Same issue on: OS: 7 64-bit PS: 4 0 -1 -1 Azure module: 1.0.5

Dicoz avatar Apr 07 '16 15:04 Dicoz

Same issue on Get-AzureRmApplicationGateway in AzurePs 1.3.0

cleverguy25 avatar Apr 20 '16 22:04 cleverguy25

Same issue with New-AzureRmVirtualNetworkGatewayConnection on Azure Module 1.3.2

rwakefie avatar Apr 26 '16 13:04 rwakefie

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
    

MartinDiewald avatar May 03 '16 12:05 MartinDiewald

Will take a look.

markjbrown avatar May 11 '16 20:05 markjbrown

Hi folks. We have released a hotfix to NRP which should fix this. Please try again and report back.

thanks.

markjbrown avatar May 18 '16 17:05 markjbrown

this fixed the issue for me , was getting the error with 1.09 , upgraded to 1.10 , now all good thx. Andy Ball

andyjballgit avatar Jun 07 '16 13:06 andyjballgit

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.

derekschauland avatar Jun 20 '16 19:06 derekschauland

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

Wuerger avatar Sep 27 '16 13:09 Wuerger

I get the exact same error as morgansimonsen when attempting to run New-AzureRmVirtualNetworkGatewayConnection

AzureRM Version: 2.1.0

mraymond77 avatar Oct 06 '16 21:10 mraymond77

I'm also getting this error with AzureRm.Network 3.0.0

wasserja avatar Oct 28 '16 19:10 wasserja

Experiencing the same issue for Get-AzureRmVirtualNetworkGatewayConnection with version 3.2.0. Anyone working on this?

jmilczek avatar Nov 29 '16 21:11 jmilczek

Also on version 3.2.0 for AzureRm and receiving this issue....

shadewlkr avatar Dec 06 '16 18:12 shadewlkr

Same problem. Azure.Rm.Network 3.2.0.

inghak avatar Dec 08 '16 09:12 inghak

I will forward this onto our Gateway PM to review.

markjbrown avatar Dec 08 '16 22:12 markjbrown

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.

markjbrown avatar Jan 02 '17 18:01 markjbrown

Hi. This problem disappeared when installing AzureRm with the msi instead of the install-module command from the psgallery.

  1. 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 .

inghak avatar Jan 02 '17 20:01 inghak