Developing Solutions for Microsoft Azure (legacy) — Question 23

You have an Azure App Services Web App Azure SQL Database instance Azure Storage Account, and an Azure Redis Cache instance in a resource group.
A developer must be able to publish code to the web app. You must grant the developer the Contribute role to the web app.
You need to grant the role.
Which two commands can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

Answer options

Correct answer: A, C

Explanation

The correct commands for assigning roles in Azure are 'az role assignment create' and 'New-AzureRmRoleAssignment', which both allow role assignments to be made. The 'az role definition create' and 'New-AzureRmRoleDefinition' commands are used for creating new role definitions rather than assigning existing roles.