question

KranthiKiritiBoddeda-0119 avatar image
0 Votes"
KranthiKiritiBoddeda-0119 asked vipullag-MSFT answered

Add parameters and outputs to your Azure Resource Manager template

Unable to execute PS commands,

Error -

PS C:\Users\xxxxxx> $templateFile = "azuredeploy.json"
PS C:\Users\xxxxxx> $today=Get-Date -Format "MM-dd-yyyy"
PS C:\Users\xxxxxx> $deploymentName="addnameparameter-"+"$today"
PS C:\Users\xxxxxx> New-AzResourceGroupDeployment -Name $deploymentName -TemplateFile $templateFile -storageName demolearning12345 New-AzResourceGroupDeployment : A parameter cannot be found that matches parameter name 'storageName'. This failure might be caused by applying the default parameter binding. You can disable the default parameter binding in $PSDefaultParameterValues by setting $PSDefaultParameterValues["Disabled"] to be $true, and retry. The following default parameter was successfully bound for this cmdlet when the error occurred: -ResourceGroupName At line:1 char:1 + New-AzResourceGroupDeployment -Name $deploymentName ` -TemplateFile ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-AzResourceGroupDeployment], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGrou
pDeploymentCmdlet


Reference Exercise - https://docs.microsoft.com/en-gb/learn/modules/create-azure-resource-manager-template-vs-code/5-exercise-parameters-output?pivots=powershell

azure-labservicesazure-dtl-arm-enviorments
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered

@KranthiKiritiBoddeda-0119

Learn modules issue redirection:


Welcome to Microsoft Q&A Platform, thanks for posting your query here.

Microsoft Learn related queries/issues are currently not supported on this Microsoft Q&A platform. Please check this supported products list here (more to be added later on).

I would request you to share your Feedback or raise an issue using below links. That way, we can be sure your feedback is reached and addressed by the right team.

https://docs.microsoft.com/en-in/learn/support/troubleshooting#report-feedback

Hope that helps.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.