Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

OMS Monitoring Agent Extension fails intermittently on different VMs (EnterpriseCloudMonitoring) #95

Closed
davoodharun opened this issue Jun 20, 2017 · 6 comments

Comments

@davoodharun
Copy link
Collaborator

davoodharun commented Jun 20, 2017

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n "status": "Failed",\r\n "error": {\r\n "code": "ResourceDeploymentFailure",\r\n "message": "The resource operation completed with terminal provisioning state 'Failed'.",\r\n "details": [\r\n {\r\n "code": "VMExtensionProvisioningError",\r\n "message": "VM has reported a failure when processing extension 'EnterpriseCloudMonitoring'. Error message: \"Operation Failed: 9ad96a5d-b3ff-4428-91de-e1ea33fa6747 is currently connected to a different Azure Cloud, and updating the cloud type is not supported. Please login to the machine, disconnect the workspace, and try again.\"."\r\n }\r\n ]\r\n }\r\n}"}]}

@davoodharun
Copy link
Collaborator Author

image

@davoodharun
Copy link
Collaborator Author

Although the extension fails, the computer still gets connected to OMS.

image

@davoodharun davoodharun reopened this Jun 20, 2017
@davoodharun
Copy link
Collaborator Author

davoodharun commented Jun 20, 2017

Provisioning is done through arm template:

{
            "type": "Microsoft.Compute/virtualMachines/extensions",
            "name": "[concat(parameters('vmName'), '/EnterpriseCloudMonitoring')]",
            "apiVersion": "2015-06-15",
            "location": "[resourceGroup().location]",
            "dependsOn": [],
            "properties": {
                "publisher": "Microsoft.EnterpriseCloud.Monitoring",
                "type": "MicrosoftMonitoringAgent",
                "typeHandlerVersion": "1.0",
                "autoUpgradeMinorVersion": true,
                "settings": {
                    "workspaceId": "[reference(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').customerId]"
                },
                "protectedSettings": {
                    "workspaceKey": "[listKeys(resourceId('Microsoft.OperationalInsights/workspaces/', parameters('workspaceName')), '2015-03-20').primarySharedKey]"
                }
            }
        }

@haitch
Copy link

haitch commented Jul 5, 2017

this issue should be solved by now, we just published the newer version of the extension.

@davoodharun
Copy link
Collaborator Author

@haitch thank you! I will test tonight

@davoodharun
Copy link
Collaborator Author

confirmed this as resolved.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants