Azure / Azure/azure-quickstart-templates
[201-vmss-automation-dsc] - Given powershell script fails
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
I have noticed poweshell script example provided passes template parameter files and dynamic variables which are used in template.
`
$RegistrationInfo = Get-AzureRmAutomationRegistrationInfo -ResourceGroupName $ResourceGroupName -AutomationAccountName $AccountName
New-AzureRmResourceGroupDeployment -Name TestDeployment -ResourceGroupName $ResourceGroupName -TemplateFile .\azuredeploy.json -TemplateParameterFile .\azuredeploy.parameters.json -registrationKey ($RegistrationInfo.PrimaryKey | ConvertTo-SecureString -AsPlainText -Force) -registrationUrl $RegistrationInfo.Endpoint -automationAccountName $AccountName -jobId (New-GUID) -adminUsername $credential.UserName -adminPassword $credential.Password -domainNameLabel $DomainNameLabel -Verbose
`
For some reason it throws an error when i try to run same through powershell ISE and get error saying registrationKey is not valid parameter.
Is there something I need to install before I run this script?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the PowerShell ISE command using azuredeploy.json and azuredeploy.parameters.json, then check the available parameters for New-AzureRmResourceGroupDeployment and the AzureRm Automation registration cmdlets. Reproduce the registrationKey error and document the required module or version, or update the example so the deployment invocation is valid.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100