AZ-500 Exam QuestionsBrowse all questions from this exam

AZ-500 Exam - Question 84


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 Answer
Correct Answer:

Reference:

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

Discussion

17 comments
Sign in to comment
Outbreak
Jul 21, 2021

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.)

[Removed]
Dec 21, 2021

Microsoft.Network/virtualNetworks/read

rsamant
Dec 26, 2021

VM Creation Requires Network access also

geuser
Sep 29, 2022

adding NIC to VNET is a different story tho

stuart563214
Oct 6, 2021

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": [] } ] } }

BP_lobster
Mar 23, 2022

Very helpful, thank you Stuart (changed my mind/now agree with this).

lahl
Sep 22, 2022

Tested in lab.... all answers should be NO, NO, NO

xRiot007
Jul 16, 2024

You are not required to do anything with the VM, just create it. Box 1 is YES.

Training
Oct 24, 2021

NO NO NO Virtual Machine contributor does require basic network permissions to launch the VMs. https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor

BP_lobster
Mar 22, 2022

First question asks if we can create VMs. We have `Microsoft.Compute/virtualMachines/*` which allows VM creation (also allows us to update, delete, start, restart, and power off VM. And to execute scripts on virtual machines.) Source: https://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor

BP_lobster
Mar 22, 2022

Correction: See stuart563214's answer below, my initial assumption was incorrect. It appears we do need basic network permissions even to create a virtual machine.

xRiot007
Jul 16, 2024

Box 1 is YES. You are required to create the VM and nothing else, which Compute/* will suffice.

naylinu
Mar 8, 2023

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"

naylinu
Mar 8, 2023

Above comment is just minimum requirements for creating vm.

Muaamar_Alsayyad
Oct 20, 2022

Just testd on LAB NO NO NO

Eltooth
Mar 21, 2022

NO NO NO

BigShot0
Sep 20, 2023

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.

azcourse
Oct 23, 2021

Answer: for sure. N,N,N

majstor86
Mar 2, 2023

YES NO NO

tblazeen
Sep 12, 2022

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

edurakhan
Nov 17, 2022

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

kabooze
Dec 18, 2022

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

zellck
May 7, 2023

NNN is the answer. https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#virtual-machine-contributor

ErikPJordan
Sep 19, 2023

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.

wardy1983
Oct 10, 2023

Microsoft.Compute/* Grants access to all actions for all resource types in the Microsoft.Compute resource provider

rohitmedi
Nov 28, 2021

correct answer

Pravindes
Feb 12, 2022

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

udmraj
Feb 23, 2022

Correct Answer -- Yes, No, No