Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment Error in Deployment with PowerShell? #34

Open
StefanHorz opened this issue Dec 5, 2022 · 5 comments
Open

Deployment Error in Deployment with PowerShell? #34

StefanHorz opened this issue Dec 5, 2022 · 5 comments

Comments

@StefanHorz
Copy link

Hi,

When I execute:
New-AzResourceGroupDeployment -ResourceGroupName $rgname -Name "ASHCISandbox-Deploy" -TemplateFile $template -TemplateParameterFile $param -AdminPassword $securepw

I get:
New-AzResourceGroupDeployment: 17:00:15 - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template parameters 'subnetName, dataDisks, networkInterfaceName, addressPrefixes, publicIpAddressName, publicIpAddressType, virtualNetworkName, publicIpAddressSku, subnets, networkSecurityGroupRules, patchMode, virtualMachineComputerName, networkSecurityGroupName, osDiskType, dataDiskResources' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'customRdpPort, virtualMachineName, virtualMachineSize, virtualMachineGeneration, dataDiskType, dataDiskSize, adminUsername, adminPassword, autoShutdownStatus, autoShutdownTime, autoShutdownTimeZone, alreadyHaveAWindowsServerLicense'. Please see https://aka.ms/arm-deploy/#parameter-file for usage details.'.
New-AzResourceGroupDeployment: The deployment validation failed

Any hints what I'm doing wrong?

json.zip

Regards,
Stefan

@mgodfre3
Copy link
Contributor

mgodfre3 commented Dec 5, 2022

Stefan, looking into your issue, but I suggest you look into the newly suggested version of deployment, the Jumpstart HCIBox. You can find that link here.

@mgodfre3
Copy link
Contributor

mgodfre3 commented Dec 5, 2022

@StefanHorz what region is your AZ Resource Group located in?

@StefanHorz
Copy link
Author

Hi @mgodfre3 ,
the ResourceGroup is located in westeurope. Thanks for the hint with the newer Version. I will checkout with this.
Thanks a lot for your promp response!
Stefan

@mgodfre3
Copy link
Contributor

mgodfre3 commented Dec 5, 2022

@StefanHorz I have tested deployment in West Europe, West US and East Us and all work just fine. I am not able to repro. I also looked at your ARM template and see no issues. Please try again with the Deploy to Azure button in the ReadMe and let me know how it goes, or as suggested move up to Jumpstart HCI Box.

@rsharma0202
Copy link

rsharma0202 commented May 11, 2023

I'm getting the exact same issue....!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants