{
    "id": "fed2a812-ecf7-4ede-b16f-76259a9e72d6",
    "name": "Implement a Custom ARM Role",
    "slug": "implement-a-custom-arm-role",
    "status": "published",
    "lab_type": "azure",
    "is_sample": false,
    "duration_in_seconds": 1200,
    "metadata": {},
    "session": null,
    "company": "a491bc32-c056-4946-9169-cc053387bada",
    "created": "2020-08-11T12:14:06.155210Z",
    "modified": "2023-10-03T18:59:12.209156Z",
    "is_beta": false,
    "lab_objectives": [],
    "main_learning_area": null,
    "learning_areas": [],
    "categories": [],
    "tags": [],
    "difficulty": null,
    "is_web_access": false,
    "is_lab_experience": false,
    "is_featured": false,
    "cve": null,
    "severity": null,
    "year": null,
    "classification": null,
    "is_trackable": false,
    "cpe_credits": null,
    "is_skill_check": false,
    "external_url": "https://portal.azure.com/",
    "solution_video": "fadaf31a-5928-49ac-a3d3-ff4afd04137c",
    "explanation_video": null,
    "description": "# Task: Implement a Custom ARM Role\n\n## Video: RBAC in Action\n\n**Estimated time:** 15 minutes\n\n## Goal\n\nCreate a custom ARM role with the same rights as contributor without the ability to delete resources.\n\n## Pre-requisites\n\n1. Azure subscription\n2. Azure AD tenant\n3. A test user account in the Azure AD tenant.  The user account cannot be a global administrator or have rights at the subscription level.\n\n    *Completing previous tasks will meet pre-requisites.*\n\n## Requirements\n\n1. Create a custom role that has the same permissions as the Contributor role, without the permission to delete resources\n2. Provision a resource in a new resource group\n3. Assign the new role to the test user on the new resource group\n4. Test the role\n\n---\n\n## Requirement 1: Create custom role\n\nCreate a custom role that is based on the Contributor role, but without the ability to delete resources.  To complete this:\n\n- Use the Contribute role as the basis for a new role named **DemoRole**.  \n- Exclude the ability to delete any resource from the role.\n\n*Note: Do not use a deny role to prevent deletes.  A user who has this role may be granted the permission to delete through other roles.*\n\n## Requirement 2: Provision a resource\n\nProvision a resource that will be used to test the new role:\n\n- Provision a new **Route table** named **demoResource** in a new resource group named **task-rbac**.\n\n## Requirement 3: Assign the DemoRole role\n\nAssign the **DemoRole** role to the test user on the **task-rbac** resource group.\n\n## Requirement 4: Test the role\n\nFor this requirement you will log in as the test user and validate the user's rights within the **task-rbac** resource group.  To complete this requirement:\n\n- Open a new browser (or private/incognito window) and navigate to [https://portal.azure.com](https://portal.azure.com).\n- Log in as your test user.\n- Navigate to the **task-rbac** resource group.\n- Attempt to delete the **demoResource** route table. This should fail.\n- Create a new route table named **demoResource2** in the **task-rbac** resource group.  This should succeed.\n- Attempt to delete the **demoResource2** route table. This should fail.\n\n## Cleanup\n\n- Delete the **task-rbac** resource group.\n- Delete the **DemoRole** role.\n\n## Solution\n\nHaving trouble completing this task?  View the demonstration video to see how to do it.",
    "description_html": "<h1>Task: Implement a Custom ARM Role</h1>\n<h2>Video: RBAC in Action</h2>\n<p><strong>Estimated time:</strong> 15 minutes</p>\n<h2>Goal</h2>\n<p>Create a custom ARM role with the same rights as contributor without the ability to delete resources.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Azure subscription</li>\n<li>Azure AD tenant</li>\n<li>\n<p>A test user account in the Azure AD tenant.  The user account cannot be a global administrator or have rights at the subscription level.</p>\n<p><em>Completing previous tasks will meet pre-requisites.</em></p>\n</li>\n</ol>\n<h2>Requirements</h2>\n<ol>\n<li>Create a custom role that has the same permissions as the Contributor role, without the permission to delete resources</li>\n<li>Provision a resource in a new resource group</li>\n<li>Assign the new role to the test user on the new resource group</li>\n<li>Test the role</li>\n</ol>\n<hr />\n<h2>Requirement 1: Create custom role</h2>\n<p>Create a custom role that is based on the Contributor role, but without the ability to delete resources.  To complete this:</p>\n<ul>\n<li>Use the Contribute role as the basis for a new role named <strong>DemoRole</strong>.  </li>\n<li>Exclude the ability to delete any resource from the role.</li>\n</ul>\n<p><em>Note: Do not use a deny role to prevent deletes.  A user who has this role may be granted the permission to delete through other roles.</em></p>\n<h2>Requirement 2: Provision a resource</h2>\n<p>Provision a resource that will be used to test the new role:</p>\n<ul>\n<li>Provision a new <strong>Route table</strong> named <strong>demoResource</strong> in a new resource group named <strong>task-rbac</strong>.</li>\n</ul>\n<h2>Requirement 3: Assign the DemoRole role</h2>\n<p>Assign the <strong>DemoRole</strong> role to the test user on the <strong>task-rbac</strong> resource group.</p>\n<h2>Requirement 4: Test the role</h2>\n<p>For this requirement you will log in as the test user and validate the user's rights within the <strong>task-rbac</strong> resource group.  To complete this requirement:</p>\n<ul>\n<li>Open a new browser (or private/incognito window) and navigate to <a href=\"https://portal.azure.com\">https://portal.azure.com</a>.</li>\n<li>Log in as your test user.</li>\n<li>Navigate to the <strong>task-rbac</strong> resource group.</li>\n<li>Attempt to delete the <strong>demoResource</strong> route table. This should fail.</li>\n<li>Create a new route table named <strong>demoResource2</strong> in the <strong>task-rbac</strong> resource group.  This should succeed.</li>\n<li>Attempt to delete the <strong>demoResource2</strong> route table. This should fail.</li>\n</ul>\n<h2>Cleanup</h2>\n<ul>\n<li>Delete the <strong>task-rbac</strong> resource group.</li>\n<li>Delete the <strong>DemoRole</strong> role.</li>\n</ul>\n<h2>Solution</h2>\n<p>Having trouble completing this task?  View the demonstration video to see how to do it.</p>",
    "tasks": "",
    "tasks_html": "",
    "published_date": "2020-10-16T19:16:32Z",
    "solutions": "",
    "solutions_html": "",
    "flags": [],
    "min_points_to_pass": null,
    "access_type": "default",
    "user_status": "unstarted",
    "user_lab_status": null,
    "user_status_modified": null,
    "user_flags": []
}