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:

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, 8 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 233 times
dnt91
5 months, 2 weeks 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
6 months 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
1 year, 4 months 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 2 years, 1 month 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 36 times
ajdann
1 year, 8 months ago
Thank you, this helped me understand the difference
upvoted 3 times
...
...
dhavalmodi
Most Recent 2 months ago
Option1: actions, options2: assignableScopes
upvoted 1 times
...
sca88
6 months, 2 weeks 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 5 times
Ivanvazovv
2 months, 1 week ago
Absolutely stop that Copilot bullshit! You are only confusing people here!
upvoted 2 times
...
pstree
6 months, 1 week 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 10 times
sca88
5 months, 3 weeks ago
Thank you for the documentation link! So the correct Answer will be DataAction.
upvoted 3 times
...
...
...
Chuong0810
6 months, 3 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
6 months, 4 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
7 months ago
all the AIs (ChatGPT, Google's whatever it's called) say actions
upvoted 1 times
Dankho
7 months 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
7 months, 1 week 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
7 months, 1 week ago
Data Actions and assignableScopes
upvoted 3 times
...
komlaragnar
7 months, 2 weeks 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
...
[Removed]
8 months, 2 weeks ago
WRONG dataActions assignableScopes
upvoted 3 times
...
behradcld
8 months, 3 weeks 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
7 months ago
every single example is in the actions section not dataActions, are you high?
upvoted 1 times
...
...
divzrajshekar123
9 months, 4 weeks ago
ANSWER IS dataactions and Assignable Scope
upvoted 2 times
...
ajay01avhad
10 months ago
For the first requirement: actions For the second requirement: assignableScopes
upvoted 2 times
Josh219
5 months, 2 weeks ago
Correct Answer: Box1 = dataActions Microsoft.Compute/virtualMachines/login/action Box2 = assignableScopes
upvoted 1 times
...
...
23169fd
11 months, 2 weeks ago
tested: Actions and Assignable Scope "Microsoft.Compute/virtualMachines/login/action"
upvoted 4 times
Highgate
9 months, 1 week 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
11 months, 3 weeks 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
11 months, 4 weeks ago
Correct answer: Actions and Assignable Scope. "Microsoft.Compute/virtualMachines/login/action"
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 ...