Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
Adding to @Rich Matheisen I have added a sample command and few points to check, please go through it.
- Could you please use the below command and try to deploy the VM:
New-AzResourceGroupDeployment -ResourceGroupName $RGName -TemplateFile azuredeploy.json -TemplateParameterFile azuredeploy.parameters.json
- Make sure you are running the correct version of Azure PowerShell that supports the New-AzResourceGroupDeployment cmdlet.
- Verify that the ARM template files [azuredeploy.json and azuredeploy.parameters.json] are in the correct location and are valid.
- If you are using a newer version of Azure PowerShell, you might need to use the Az module instead of AzureRm.
Kindly let us know if the above helps or you need further assistance on this issue.
If this answers your query, I would appreciate it if you could accept the response as a "Accept Answer" and "Upvote it" so that it can help other members of the community who may be experiencing similar challenges.
Thanks,
Sai Prasanna.