Unable to create New AzPeerAsn with cmdlet

Richard Agnew 1 Reputation point
2021-01-26T22:47:00.463+00:00

I'm trying to create a new direct peering. Following the docs at:

https://learn.microsoft.com/en-us/azure/internet-peering/howto-direct-powershell

Using Powershell, I run into an error:

New-AzPeerAsn \-Name "companyname"
-Peername "Copany name on PeeringDB" \-PeerAsn 1234
-Email noc@companyemail.net
-Phone "+1 (333) 333-3333

The error I get is: A parameter cant be found that matches parameter name 'Email'. If I repeat it, without email, I get the same error for phone. If I leave -Phone off as well, it asks for ContactDetail[0]: to which I put our email address in and then get the error:

New-AzPeerAsn: Cannot bind parameter 'ContactDetail'. Cannot convert the ""noc@xxxxxxxxxxxxx .net"" value of type "System.String" to type "Microsoft.Azure.PowerShell.Cmdlets.Peering.Models.PSContactDetail".

If I forgo using Powershell and try the portal I get "Oops! Could not create the marketplace item".

Any help is appreciated!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,139 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kay_kiev 1 Reputation point
    2021-02-12T11:05:55.707+00:00

    I have the same problem

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.