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
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.
Resolution:
- To resolve this issue, from Azure portal home page, select the Resource Groups menu from the quick launch.
- Select the appropriate Resource Group
- Select Users from the settings panel
- Click Add from the Users panel
- Click Select a role from Add Access panel
- Select Owner from Select a role panel
- Select the user name to whom you want to grant permission to login to virtual machine and set them with appropriate role.
After the above changes, recreated the virtual machine and the deployment when successfully without errors.