In thisAzure tutorial, we will discusshow to solve the errorNew-AzResourceGroup: A positional parameter cannot be discovered that accepts argument. I m sorry I got while do the efforts to create an Azure source Group in the Azure Portal usingPowerShell ISE.

You are watching: A positional parameter cannot be found


New-AzResourceGroup: A positional parameter cannot be uncovered that accepts argument

Well, freshly while make the efforts to develop a resource Group using the PowerShell script, I obtained the error A positional parameter can not be uncovered that accepts argument. The PowerShell Script that i was running was as below

Connect-AzureRmAccount$ResourceGroupName = "Demo123" $location = "EastUS" New-AzureRmResourceGroup - name $ResourceGroupName - ar $location ~ executing the above script, I got the error New-AzResourceGroup: A positional parameter can not be uncovered that accepts argument. You deserve to see the same as below


*
*
*
*
*
A positional parameter cannot be discovered that accepts dispute “xxx”

This is just how we deserve to able to resolve the worry New-AzResourceGroup: A positional parameter cannot be discovered that accepts argument

A Positional Parameter can not Be Found

While working v PowerShell cmdlet, there is a possibility you will gain the error “A positional parameter cannot be discovered that accepts argument”. Listed below are the reasons that you have to concentrate to prevent this error

For instance, say you are using the -Path through your PowerShell cmdlet, climate make certain there is no an are between the “-” and the parameter “Path”. If there will certainly be an are then you will acquire the error “A positional parameter can not be discovered that accepts argument”.Sometimes, If girlfriend have any kind of parameters with space then make certain to put the parameter through double-quotes. For example, if it is Hello Test climate you must keep like “Hello Test”.Make sure to use the operator together “-“(Hyphen) no the “_”(Underscore).If any of her parameters contain the underscore then put the complete parameter with “double-quotes“.

See more: Stage Review : Ken Hill Phantom Of The Opera (1976 Musical), The Phantom Of The Opera Paperback

Because that example, say her parameter is Hello_Test_Test climate you can specify like “Hello_Test_Test”.

You may likewise like adhering to the below articles

Wrapping Up

Well, in this article, we debated how to solve the PowerShell error New-AzResourceGroup: A positional parameter cannot be discovered that accepts argument, PowerShell a positional parameter cannot be discovered that accepts argument, error: A positional parameter can not be uncovered that accepts argument. Hope it will aid you to settle your issue also !!!