Not able to connect with VM

When I launch Azure playground, I am to create the VM and connect with it. However when I created the Log Analytics workspace then I am not able to install Log Analytics workspace agent by connect with the vm via Log Analytics. Error is it is says disallowed by the policy.

This is the path which I have followed:

Open the Log analytics which I had created–>In the left pane under “Workspace Data Source”–> Select the “Virtual Machines” then clicked on connect.

It should be allowed in the sandbox.

ERROR:

Failed to enable agent on VM ‘vm1’. Error: Resource ‘MicrosoftMonitoringAgent’ was disallowed by policy. Policy identifiers: ‘[{“policyAssignment”:{“name”:“azure8922-PolicyDefinition-ODL-azure-720338”,“id”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/resourceGroups/ODL-azure-720338/providers/Microsoft.Authorization/policyAssignments/azure8922-PolicyDefinition-ODL-azure-720338”},“policyDefinition”:{“name”:“azure8922-PolicyDefinition”,“id”:“/subscriptions/b2aec48f-6dad-4d57-ad25-dad521fe74a4/providers/Microsoft.Authorization/policyDefinitions/azure8922-PolicyDefinition”}}]’.

Hi @sharatbhaskar1988,
Thank you for your question and we’re so sorry for the late response.
The MonitoringAgent is not part of supported resources on Azure Playgrounds. You can see the list of all supported resources on this link https://support.kodekloud.com/cloud-playground-support

Thank