Skip to content

Deployment Error in Deployment with PowerShell? #34

@StefanHorz

Description

@StefanHorz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions