exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 2 question 54 discussion

Actual exam question from Microsoft's AZ-104
Question #: 54
Topic #: 2
[All AZ-104 Questions]

HOTSPOT -
You configure the custom role shown in the following exhibit.

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: roletype -
You need to configure Azure RBAC policy to determine who can log in to the VM. Two Azure roles are used to authorize VM login:
Virtual Machine Administrator Login: Users with this role assigned can log in to an Azure virtual machine with administrator privileges.
Virtual Machine User Login: Users with this role assigned can log in to an Azure virtual machine with regular user privileges.
Note, example roletype:
"roleName": "Virtual Machine Administrator Login",
"roleType": "BuiltInRole",
"type": "Microsoft.Authorization/roleDefinitions"

Box 2: assignableScopes -
Azure role-based access control (Azure RBAC) is the authorization system you use to manage access to Azure resources. To grant access, you assign roles to users, groups, service principals, or managed identities at a particular scope.
When you assign roles, you must specify a scope. Scope is the set of resources the access applies to. In Azure, you can specify a scope at four levels from broad to narrow: management group, subscription, resource group, and resource.
Reference:
https://docs.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles https://docs.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
pkkalra
Highly Voted 2 years, 3 months ago
the answer is wrong. you are not defining a policy but a custom role. You need to provide either of the following in DataActions: Microsoft.Compute/virtualMachines/login/action Microsoft.Compute/virtualMachines/loginAsAdmin/action correct answer is dataActions and assignableScopes
upvoted 220 times
dnt91
2 days ago
First is a dataAction. if you try to clone the built in Virtual Machine User Login role you can see that > Microsoft.Compute/virtualMachines/login/action Log in to a virtual machine as a regular user DataAction
upvoted 1 times
...
duongduong_me
2 weeks, 6 days ago
The dataActions field in a custom role is used to specify permissions for operations related to data managed by Azure resources, such as accessing blob storage, queues, or tables in an Azure Storage account. This field is not relevant for managing access to log in to a VM. https://learn.microsoft.com/en-us/azure/role-based-access-control/role-definitions#dataactions
upvoted 1 times
...
go4adil
10 months, 4 weeks ago
Agreed....Correct Answer is 'dataActions' and 'assignableScopes' In custom roles, 'roleType' only indicates whether this is a custom role. It is set to "true" or "CustomRole" for custom roles and set to "false" or "BuiltInRole" for built-in roles. So, modifying 'roleType' for this custom role won't grant users access to log in to virtual machines that are assigned role1
upvoted 9 times
...
...
C_M_M
Highly Voted 1 year, 7 months ago
The key to understanding the first option is to understand the Control plane VS Data plane Action/notAction is the control plane, and DataAction/notDataAction is the data plane. Logging into a VM is data plane - So it should be defined at the DataAction https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/control-plane-and-data-plane
upvoted 31 times
ajdann
1 year, 3 months ago
Thank you, this helped me understand the difference
upvoted 2 times
...
...
sca88
Most Recent 1 month ago
Should be Action and AssignableScope. " The Microsoft.Compute/virtualMachines/login/action permission is a control plane operation, so it should be included in the Actions array, not the DataActions array. This permission allows users to log in to virtual machines, which is part of managing the VM itself rather than accessing or modifying data within the VM" by Copilot
upvoted 3 times
pstree
4 weeks, 1 day ago
Stop wasting our time with wrong information from your Copilot. He will not take the exam for you. Go here and search for Microsoft.Compute/virtualMachines/login/action : https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute
upvoted 4 times
sca88
2 weeks, 1 day ago
Thank you for the documentation link! So the correct Answer will be DataAction.
upvoted 2 times
...
...
...
Chuong0810
1 month, 2 weeks ago
Ensuring Users Can Sign In to Virtual Machines: Adding Microsoft.Compute/virtualMachines/login/action in the actions section Assigning role1 Only to RG1: Editing /subscriptions/{subscriptionId}/resourceGroups/RG1 in the assignableScopes section The DataActions section in a role definition specifies permissions to perform actions on data within your resources (like Azure Storage or Cosmos DB...)
upvoted 1 times
...
Soudenho
1 month, 2 weeks ago
To log in to a virtual machine (VM), you typically need to configure actions in a custom role. Specifically, for logging into a VM using Azure, you need to ensure the role includes the necessary actions for accessing the VM, such as: Microsoft.Compute/virtualMachines/login/action: This action allows users to log in to the VM. Microsoft.Compute/virtualMachines/read: This action allows users to read the VM properties. Data actions are generally used for accessing data within Azure resources, such as reading or writing data in a storage account, and are not typically required for logging into a VM.
upvoted 1 times
...
Dankho
1 month, 3 weeks ago
all the AIs (ChatGPT, Google's whatever it's called) say actions
upvoted 1 times
Dankho
1 month, 3 weeks ago
I take it back, if you look at the reference below, you will see that every time an example includes "/login/action" it's shown in the dataActions section. Reference: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute
upvoted 1 times
...
...
Stunomatic
1 month, 3 weeks ago
{ "Name": "Custom VM Login Role", "IsCustom": true, "Description": "Allows users to log in to assigned virtual machines", "Actions": [ "Microsoft.Compute/virtualMachines/login/action", "Microsoft.Compute/virtualMachines/read" ], "NotActions": [], "AssignableScopes": [ "/subscriptions/<subscription-id>" ] }
upvoted 2 times
...
0378d43
1 month, 4 weeks ago
Data Actions and assignableScopes
upvoted 3 times
...
komlaragnar
2 months ago
To ensure that users can sign in to virtual machines (VMs) when assigned a custom role in Azure, the RBAC JSON template needs to include the appropriate actions that grant access to the VM's management and sign-in capabilities. Key properties to modify in the custom role definition JSON: Actions: To allow users to sign in to the VM, you need to add the following permissions in the Actions property: "Microsoft.Compute/virtualMachines/login/action": Grants permission to log in to virtual machines. "Microsoft.Compute/virtualMachines/read": Allows read access to the virtual machine's configuration. "Microsoft.Network/networkInterfaces/read": Provides read access to network interface configurations (necessary for understanding network settings related to the VM).
upvoted 1 times
...
SeMo0o0o0o
3 months ago
WRONG dataActions assignableScopes
upvoted 2 times
...
behradcld
3 months, 1 week ago
first one is dataActions. proof is in here: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute
upvoted 1 times
Dankho
1 month, 3 weeks ago
every single example is in the actions section not dataActions, are you high?
upvoted 1 times
...
...
divzrajshekar123
4 months, 2 weeks ago
ANSWER IS dataactions and Assignable Scope
upvoted 2 times
...
ajay01avhad
4 months, 2 weeks ago
For the first requirement: actions For the second requirement: assignableScopes
upvoted 2 times
Josh219
3 days, 6 hours ago
Correct Answer: Box1 = dataActions Microsoft.Compute/virtualMachines/login/action Box2 = assignableScopes
upvoted 1 times
...
...
23169fd
6 months ago
tested: Actions and Assignable Scope "Microsoft.Compute/virtualMachines/login/action"
upvoted 4 times
Highgate
3 months, 3 weeks ago
MSLearn says Microsoft.Compute/virtualMachines/login/action is a dataAction "DataActions Microsoft.Compute/virtualMachines/login/action Log in to a virtual machine as a regular user" https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute#virtual-machine-user-login
upvoted 1 times
...
...
76d5e04
6 months, 1 week ago
It is very time consuming and causing confusion to decide which is correct answer as the examtopic has not assured their answer is 100% correct. Also for some questions mostly voted % is missing so not able to judge the correct answer. I have exam scheduled by end of June, please teach me how to arrive at the correct answer
upvoted 2 times
...
23169fd
6 months, 2 weeks ago
Correct answer: Actions and Assignable Scope. "Microsoft.Compute/virtualMachines/login/action"
upvoted 1 times
...
varinder82
6 months, 3 weeks ago
Final Answer : Data Action and AssignableScope
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago