A scheduled PowerShell script runs non-interactively. It deploys main.bicep to the existing resource group rg-sql by using the command in the exhibit. The Bicep file declares the string parameters administratorLogin and administratorLoginPassword, and neither has a default value. The password parameter has the @secure() decorator. The deployment fails because no values are supplied for these parameters.
New-AzResourceGroupDeployment -Name SqlDeploy -ResourceGroupName rg-sql -TemplateFile ./main.bicep
Which two changes to the command will each allow the deployment to succeed? Each correct answer presents a complete solution. Select two.
Bicep files and ARM templates are parameterized. When a parameter has no default, the deployment needs a value for it. You can supply the values inline as arguments to New-AzResourceGroupDeployment, or through a file passed with -TemplateParameterFile. Compiling to JSON, creating the resource group, or renaming the deployment leaves the parameters without values.