exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 2 question 41 discussion

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

HOTSPOT -
You have an Azure subscription named Subscription1 that contains the resources shown in the following table.

You create an Azure role by using the following JSON file.

You assign Role1 to User1 for RG1.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#compute

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
Outbreak
Highly Voted 3 years, 9 months ago
I think answer is correct, YES NO NO. Azure custom roles: https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles Available permissions (e.g. “Microsoft.Compute/*”): https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations User1 can create new virtual machine in RG1: YES (Permission needed is: Microsoft.Compute/virtualMachines/write, Creates a new virtual machine or updates an existing virtual machine) User1 can modify the properties of storage1: NO (Microsoft.Storage/storageAccounts/write, Creates a storage account with the specified parameters or update the properties or tags or adds custom domain for the specified storage account.) User1 can attach the network interface of VM1 to VNET1: NO (I’m not sure of the exact resource provider operation here, but from the docs it looks like it’s not possible from Microsoft.Compute/*, so I’m pretty sure answer is NO. The relevant operation should be in Microsoft.Network/virtualNetworks/*, I guess.)
upvoted 60 times
xRiot007
8 months, 4 weeks ago
Compute is not enough. When creating a VM, assigning it a VNET and a subnet is REQUIRED. If there is no VNET and subnet, you need to create them. Either way, you need Networking permissions to do this.
upvoted 1 times
...
ITFranz
9 months ago
To contribute to the answer 3 User1 can attach the network interface of VM1 to VNET1: NO https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface?tabs=azure-portal Microsoft.Network/networkInterfaces/join/action Attach a network interface to a virtual machine
upvoted 1 times
...
[Removed]
3 years, 4 months ago
Microsoft.Network/virtualNetworks/read
upvoted 3 times
...
rsamant
3 years, 4 months ago
VM Creation Requires Network access also
upvoted 4 times
geuser
2 years, 7 months ago
adding NIC to VNET is a different story tho
upvoted 2 times
...
...
...
stuart563214
Highly Voted 3 years, 6 months ago
NO NO NO Just tested and VM creation fails because you need further permissions to join a subnet. My JSON: { "id": "/subscriptions/16ea6f64-d8b2-4fb4-a7c4-4e6aaad4d751/providers/Microsoft.Authorization/roleDefinitions/f40893f6-07cc-476d-9b74-75fbf3499s47", "properties": { "roleName": "rbac1", "description": "", "assignableScopes": [ "/subscriptions/16ea6f64-d8b2-4fb4-a7c4-4e6aaad4d751", "/subscriptions/16ea6f64-d8b2-4fb4-a7c4-4e6aaad4d751/resourceGroups/rbac1" ], "permissions": [ { "actions": [ "Microsoft.Compute/*" ], "notActions": [], "dataActions": [], "notDataActions": [] } ] } }
upvoted 32 times
xRiot007
9 months, 3 weeks ago
You are not required to do anything with the VM, just create it. Box 1 is YES.
upvoted 3 times
...
BP_lobster
3 years, 1 month ago
Very helpful, thank you Stuart (changed my mind/now agree with this).
upvoted 2 times
lahl
2 years, 7 months ago
Tested in lab.... all answers should be NO, NO, NO
upvoted 4 times
...
...
...
JackGelder
Most Recent 6 months ago
NNN. Everyone who says that Microsoft.Compute/* is enough to create VM please check Virtual Machine Contributor Role that actually has the right permissions to create VMs
upvoted 1 times
...
rahmatellah
8 months, 2 weeks ago
false answer: no no no Minimum Permissions: If you are assigning custom roles or minimum necessary permissions, ensure that the user has at least the following permissions on the resource group: Microsoft.Compute/virtualMachines/*/write Microsoft.Network/networkInterfaces/*/write Microsoft.Storage/storageAccounts/*/read
upvoted 1 times
...
wardy1983
1 year, 6 months ago
Microsoft.Compute/* Grants access to all actions for all resource types in the Microsoft.Compute resource provider
upvoted 2 times
...
BigShot0
1 year, 7 months ago
No, No , No - Adding the compute/* role to the resource group will grant that permission to new resources but will not modify permissions on existing resources. You will not be able to attach the virtual machine to the existing virtual network so the VM creation will fail.
upvoted 4 times
...
ErikPJordan
1 year, 7 months ago
Action string Description */read Grants access to read actions for all resource types of all Azure resource providers. Microsoft.Compute/* Grants access to all actions for all resource types in the Microsoft.Compute resource provider. Microsoft.Network/*/read Grants access to read actions for all resource types in the Microsoft.Network resource provider. Microsoft.Compute/virtualMachines/* Grants access to all actions of virtual machines and its child resource types. microsoft.web/sites/restart/Action Grants access to restart a web app.
upvoted 2 times
...
zellck
1 year, 12 months ago
NNN is the answer. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor
upvoted 2 times
...
naylinu
2 years, 1 month ago
No , No , No Minimum requirements: "Microsoft.Compute/*/read", "Microsoft.Compute/virtualMachines/write", "Microsoft.Network/*/read", "Microsoft.Storage/*/read", "Microsoft.Authorization/*/read", "Microsoft.Resources/*/read", "Microsoft.Compute/virtualMachines/extensions/write"
upvoted 6 times
naylinu
2 years, 1 month ago
Above comment is just minimum requirements for creating vm.
upvoted 1 times
...
...
majstor86
2 years, 2 months ago
YES NO NO
upvoted 3 times
...
edurakhan
2 years, 5 months ago
Microsoft.Compute/* includes everything under it, including Microsoft.Compute/virtualMachines/write, which says “ Creates a new virtual machine or updates an existing virtual machine”. So the first one is YES YES NO NO
upvoted 2 times
kabooze
2 years, 4 months ago
Even if users here claim they can't create a VM. Obviously microsoft's documentation says you can: https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor virtual machine contributor falls under compute and you have computer/* permissions
upvoted 1 times
...
...
Muaamar_Alsayyad
2 years, 6 months ago
Just testd on LAB NO NO NO
upvoted 5 times
...
tblazeen
2 years, 7 months ago
YES-NO-NO is correct. Microsoft.Compute/virtualMachines/write Creates a new virtual machine or updates an existing virtual machine https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftresources:~:text=Microsoft.Compute/virtualMachines/write
upvoted 2 times
...
Eltooth
3 years, 1 month ago
NO NO NO
upvoted 4 times
...
udmraj
3 years, 2 months ago
Correct Answer -- Yes, No, No
upvoted 1 times
...
Pravindes
3 years, 2 months ago
Answer is correct YNN If existing vents we can create virtual machine https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor
upvoted 1 times
...
rohitmedi
3 years, 5 months ago
correct answer
upvoted 1 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