You need to assign permissions for the Virtual Machine workloads that you migrate to Azure.The solution must use the principal of least privileges.What should you do?New-AzureRoleAssignment -Mail user1 @vanarsdelltd.com -RoleDefinitionName Contributor -ResourceGroupName group1Get-AzureVM | New-AzureRoleAssignment -Mail [email protected] -RoleDefinitionName Contributor* Scenario: Permissions must be assigned by using Role Based Access Control (RBAC).* Role-Based access control (RBAC) in the Azure Portal and Azure Resource Management API allows you to manage access to your subscription at a fine-grained level. With this feature, you can grant access for Active Directory users, groups, or service principals by assigning some roles to them at a particular scope.Create a role assignmentUse New-AzureRoleAssignment to create a role assignment.Example: This will create a role assignment for a group at a resource group level.PS C:> New-AzureRoleAssignrnent -ObjectID
Question:
What should you do?
Options:
Create all VMs in the cloud service named Groupl and then correct to the Azure subscription. Rin the following Windows PowerShell command:
In the Azure portal, select an individual virtual machine and add an owner.
In the Azure portal, assign read permission to the user at the subscription level.
Create each VM in a separate cloud service and then connect to the Azure subscription. Run the following Windows PowerShell command:
Correct Answer
The Correct Answer for this Question is
Create all VMs in the cloud service named Groupl and then correct to the Azure subscription. Rin the following Windows PowerShell command: