powershell - Azure Automation: Onboarding DSC Node: "vmname, The entity was not found." -


i'm trying onboard vm azure automation dsc using register-azurermautomationdscnode cmdlet recommended here non-classic vm's. dsc nodeconfiguration has been both imported , compiled in azure automation.

here code:

$automationaccountname = "persistentautomationaccount" $vmname = "vm1"  $automationresourcegroup = "persistantresources"  $vmresourcegroup = "automatingautomation2" $nodeconfigurationname = "helloworlddsc.localhost" register-azurermautomationdscnode -automationaccountname $automationaccountname -azurevmname $vmname -resourcegroupname $automationresourcegroup -azurevmresourcegroup $vmresourcegroup -nodeconfigurationname $nodeconfigurationname 

but i'm getting following error can't find explanation for:

new-azurermresourcegroupdeployment : 10:56:57 - resource   microsoft.compute/virtualmachines/extensions 'vm1/microsoft.powershell.dsc' failed message '{   "error": {     "code": "notfound",     "target": "vmname",     "message": "the entity not found."   } }' 

the vm name correct, exists, resourcesgroup names correct, not being found? thought maybe vm needed extension preinstalled, according azure rep it's automation's job install dsc agent/extension once node onboarded.

is vm in different region automation account? if so, have tried adding azurevmlocation variable , including vm region?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -