Thursday, February 18, 2016

Deployment to resource group ‘Resource Group Name’ failed in Windows Azure

Environment: Windows Azure

Requirement: Create a SharePoint Server 2013 trial Virtual Machine in Azure.

Error: Deployment to resource group ‘Resource Group Name’ failed.

Issue: The deployment failed with the following an error at event Microsoft.Resources/deployments/write

Deployment failed error

Troubleshooting: From the audit log detail, it is understood that this is an authorization error. The credentials that are provided during Virtual Machine configuration does not have permission to access the virtual machine.

Following is the screenshot of the page that is used to set the credentials while creating virtual machine. The issue was because the user 'prasath' does not below to 'MyAzureGroup' resource group and not granted any permission/role.

Create Virtual Machine

  1. To resolve this issue, from Azure portal home page, select the Resource Groups menu from the quick launch.
  2. Select the appropriate Resource Group
  3. Select Users from the settings panel
  4. Click Add from the Users panel
  5. Click Select a role from Add Access panel
  6. Select Owner from Select a role panel
  7. Select the user name to whom you want to grant permission to login to virtual machine and set them with appropriate role.

Permission Settings

After the above changes, recreated the virtual machine and the deployment when successfully without errors.

No comments:

Post a Comment