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

Move-AzureRmExpressRouteCircuit doesn't parse -name

Open tombromby opened this issue 10 years ago • 7 comments

I can rename, or continue to use, an incorrect name for an ExpressRoute circuit when utlising the Move-AzureRmExpressRouteCircuit cmdlet.

for instance, this command would be valid - notice the spaces in the name: Move-AzureRmExpressRouteCircuit -Name "My Azure Circuit" -ResourceGroupName "exprtrg" -Location " Australia East" -ServiceKey 12343434-23232323-23232323

However, if I then try to update settings on the circuit once it is in ARM, I cannot as the -name is invalid, e.g. this will fail: Set-AzureRmExpressRouteCircuit -ExpressRouteCircuit $ckt

{ "error": { "code": "InvalidResourceName", "message": "Resource name My Azure Circuit is invalid. The name can be up to 80 characters long. It must begin with a word character, and it must end with a word character or with ''. The name may contain word characters or '.', '-', ''.", "details": [] } }

tombromby avatar May 13 '16 03:05 tombromby

We currently have a support ticket open precisely due to this issue. The circuit stays up but becomes effectively unmanageable due to the invalid ARM EXR circuit name.

sjwaight avatar May 15 '16 09:05 sjwaight

@deepakrajendranmsft can you route this issue appropriately to the ExpressRoute team?

markcowl avatar May 16 '16 16:05 markcowl

@amitsriva please take a look at his

DeepakRajendranMsft avatar May 16 '16 18:05 DeepakRajendranMsft

This is a known issue. There is no ETA yet for a fix.

@sjwaight can you please email me your support ticket # so I can track this issue?

thanks.

markjbrown avatar May 19 '16 17:05 markjbrown

@vinayada1 @dedhar @dihan0604 Can you take a look at this issue?

maddieclayton avatar Jul 20 '18 23:07 maddieclayton

Apologies for missing the (very) old comment @markjbrown :(.

sjwaight avatar Jul 24 '18 13:07 sjwaight

Move-AzureRmExpressRouteCircuit no longer accepts name with spaces. It does the same checks as Set-AzureRmExpressRouteCircuit .

srividyathirumala avatar Nov 08 '18 17:11 srividyathirumala