Azure / Azure/azure-quickstart-templates

201-vmss-automation-dsc fails

Open
#2,213 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

I'm trying to test VMSS with DCS using this template, but it fails...

Here is parameters file

{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"domainNameLabel": {
"value": "vlvmssdsc111"
},
"vmssName": {
"value": "srv"
},
"instanceCount": {
"value": 2
},
"timestamp": {
"value": "MM/dd/yyyy H:mm:ss tt"
}
}
}

and here is error:

`PS C:\Users\vlekovic.LEKOVIC\ARM-ScaleSetmanagedbyAADSC> New-AzureRmResourceGroupDeployment -Name TestDeployment -Resour
ceGroupName $ResourceGroupName -TemplateFile .\azuredeploy.json -TemplateParameterFile .\azuredeploy.parameters.json -re
gistrationKey ($RegistrationInfo.PrimaryKey | ConvertTo-SecureString -AsPlainText -Force) -registrationUr $RegistrationI
nfo.Endpoint -automationAccountName $AccountName -jobid $NewGUID -Verbose

cmdlet New-AzureRmResourceGroupDeployment at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
adminUsername: cloudadmin
adminPassword: ************
VERBOSE: 2:19:04 PM - Template is valid.
VERBOSE: 2:19:05 PM - Create template deployment 'TestDeployment'
VERBOSE: 2:19:05 PM - Checking deployment status in 5 seconds
VERBOSE: 2:19:11 PM - Resource microsoft.automation/automationAccounts/Modules 'myAutomationAccount/xNetworking'
provisioning status is running
VERBOSE: 2:19:11 PM - Resource Microsoft.Automation/automationAccounts/Configurations 'myAutomationAccount/webServer'
provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'bvlledfmwsvr2diagsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'bvlledfmwsvr2diagsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'bvlledfmwsvr2srvsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'q4eymm7tprqpssrvsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'mltn4dxlt4itmsrvsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts '7c5o5lvznc6lqsrvsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Network/publicIPAddresses 'srvpip' provisioning status is running
VERBOSE: 2:19:11 PM - Resource Microsoft.Storage/storageAccounts 'vbyyw2egvfdjesrvsa' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Automation/automationAccounts 'myAutomationAccount' provisioning status is
succeeded
VERBOSE: 2:19:11 PM - Resource Microsoft.Network/virtualNetworks 'srvvnet' provisioning status is succeeded
VERBOSE: 2:19:11 PM - Checking deployment status in 10 seconds
VERBOSE: 2:19:21 PM - Resource Microsoft.Network/publicIPAddresses 'srvpip' provisioning status is succeeded
VERBOSE: 2:19:21 PM - Resource Microsoft.Network/publicIPAddresses 'srvpip' provisioning status is succeeded
VERBOSE: 2:19:21 PM - Checking deployment status in 15 seconds
VERBOSE: 2:19:37 PM - Resource Microsoft.Network/loadBalancers 'srvloadBalancer' provisioning status is succeeded
VERBOSE: 2:19:37 PM - Checking deployment status in 20 seconds
VERBOSE: 2:19:57 PM - Checking deployment status in 25 seconds
VERBOSE: 2:20:23 PM - Checking deployment status in 30 seconds`
New-AzureRmResourceGroupDeployment : 2:20:53 PM - Resource microsoft.automation/automationAccounts/Modules
'myAutomationAccount/xNetworking' failed with message '{
"status": "Failed",
"error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'."
}
}'
At line:1 char:1
- New-AzureRmResourceGroupDeployment -Name TestDeployment -ResourceGrou ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
loymentCmdlet

New-AzureRmResourceGroupDeployment : 2:20:53 PM - Template output evaluation skipped: at least one resource deployment
operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
At line:1 char:1
- New-AzureRmResourceGroupDeployment -Name TestDeployment -ResourceGrou ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
loymentCmdlet

New-AzureRmResourceGroupDeployment : 2:20:53 PM - Template output evaluation skipped: at least one resource deployment
operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
At line:1 char:1
- New-AzureRmResourceGroupDeployment -Name TestDeployment -ResourceGrou ...
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : NotSpecified: (:) [New-AzureRmResourceGroupDeployment], Exception
- FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDep
loymentCmdlet

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with azuredeploy.json and azuredeploy.parameters.json, then inspect the failed deployment operations for the microsoft.automation/automationAccounts/Modules resource named xNetworking. Trace how the VMSS, DSC, and Automation resources are connected and reproduce the deployment with the shown PowerShell command. Done means the template deploys successfully and the xNetworking module reaches a succeeded state.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, powershell
Domain
cloud, devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.