question

JamesLeone-2329 avatar image
0 Votes"
JamesLeone-2329 asked tbgangav-MSFT edited

Automation DSC to manage VM in East US2

I am hoping to use the State configuration (DSC) capability of Azure Automation accounts to manage configuration of various Windows VMs. I've successfully created a Configuration, registered a VM, and applied the configuration - it works!

However, that VM was in Central US region. I cannot seem to register VMs that are in the East US 2 region with the Automation Account.

I even tried creating an automation account that itself is in the East US2 region, but no luck. When I try to manually add a node (using Azure portal) the VMs in that region aren't listed. The interface for adding a node has filters to reduce the VMs listed. East US2 region doesn't even show up as an option to filtering against. Other regions show up, but not East US2.

No avail with PowerShell
```powershell
Register-AzAutomationDscNode -AutomationAccountName "aa-eastus2" -AzureVMName "vm-eastus2" -ResourceGroupName "rg-eastus2" -NodeConfigurationName "HelloWorld.localhost" -AzureVMResourceGroup "rg-eastus2-controllers"
```
Results in
```
Register-AzAutomationDscNode: One or more errors occurred. (Long running operation failed with status 'Failed'. Additional Info:'At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.')
```
When I look at deployment history in the resource group of the VM I am attempting to register, I see error:
```json
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "NotFound",
"message": "The entity was not found in this Azure location."
}
]
}
```
Please help me understand how regions relate to Automation State Configuration capability.

azure-automation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Definitely something funny with East US2. I deploy this example to Central US: https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.automation/automation-configuration/ and everything checks out. I run the same, but specify East US 2 region, deploy succeeds...but the VM does not have the PowershellDSC extension added to it. If I unregister the VM from Automation account, I cannot register it back again (same problem with missing from list of VMs).

0 Votes 0 ·

1 Answer

JamesLeone-2329 avatar image
1 Vote"
JamesLeone-2329 answered tbgangav-MSFT commented

Ended up opening a ticket on this with Microsoft. Apparently there are circumstances where things "bottleneck" and it can take up to 24 hours for a VM to be included in the list of VMs to register with an automation account.

if you experience further issues with not seeing your servers after about 24 hours of deployment, please reach out to us...

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @JamesLeone-2329 ,

Thanks for sharing the root cause or resolution here. This would greatly benefit the other members of the Microsoft Q&A community who might be looking for similar information.

1 Vote 1 ·