{
    "id": "b347dfe4-5b27-4150-b166-5ba39edfa126",
    "name": "Provision an Azure Kubernetes Service",
    "slug": "provision-an-azure-kubernetes-service",
    "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:07.068193Z",
    "modified": "2023-10-03T18:58:58.186564Z",
    "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": "f67aa0ce-7e1a-4f62-a7d3-a168730fc474",
    "explanation_video": null,
    "description": "# Task: Provision an Azure Kubernetes Service\n\n## Video: Create an Azure Kubernetes Service\n\n**Estimated time:** 20 minutes for task\n\n## Goal\n\nProvision an Azure kubernetes service and configure it to work with an Azure container registry.\n\n## Pre-requisites\n\n1. Azure subscription\n2. Azure container registry with a custom image\n\n## Requirements\n\n1. Provision an Azure Kubernetes service\n2. Configure the service to work with an Azure container registry\n\n---\n\n## Requirement 1: Provision an Azure Kubernetes service\n\nIn this requirement you will provision an Azure Kubernetes service.  Prior to provisioning the service you will create a service principal that will be used by the service.\n\n- Provision a service principal named task-kubernetes. Be sure to record the **appId** and **password** as you will need these for other steps.\n\n  Note: The easiest way to create a service principal is the **az ad sp create-for-rbac** CLI command. This can be run from the Azure cloud shell if you do not have the CLI installed.\n\n- Provision an Azure Kubernetes service with the following settings:\n  \n  |Setting|Value|\n  |---|---|\n  |Resource group|**Create new -> task-kubernetes**|\n  |Cluster name|**kubernetes**|\n  |Version|**1.13.10**|\n  |DNS name prefix|**&lt;a unique prefix&gt;**|\n  |Node count|**1**|\n  |Service principal|**Use existing**|\n  |SP client ID|**&lt;SP appID&gt;**|\n  |SP client secret|**&lt;SP password&gt;**|\n  |Enable RBAC|**Yes**|\n  |Log analytics|**Create new->kubernetesspace**|\n\n  *Take the defaults for all other settings*\n\n## Requirement 2: Configure AKS to work with ACR\n\nFor this requirement you will grant the service principal used by the Kubernetes service provisioned in requirement 1 the right to pull images from you Azure container registry.  To complete this requirement:\n\n- Assign the **acrpull** role on your ACR to the **task-kubernetes** service principal.\n\n## Clean up\n\n- Delete the **task-kubernetes** resource group.\n\n  *Note: Other tasks use the Kubernetes service. If you plan on completing them you do not want to delete the **task-kubernetes** resource group, likewise you may not want to delete the registry yet.*\n\n## Solution\n\nHaving trouble completing this task?  View the demonstration video to see how to do it.",
    "description_html": "<h1>Task: Provision an Azure Kubernetes Service</h1>\n<h2>Video: Create an Azure Kubernetes Service</h2>\n<p><strong>Estimated time:</strong> 20 minutes for task</p>\n<h2>Goal</h2>\n<p>Provision an Azure kubernetes service and configure it to work with an Azure container registry.</p>\n<h2>Pre-requisites</h2>\n<ol>\n<li>Azure subscription</li>\n<li>Azure container registry with a custom image</li>\n</ol>\n<h2>Requirements</h2>\n<ol>\n<li>Provision an Azure Kubernetes service</li>\n<li>Configure the service to work with an Azure container registry</li>\n</ol>\n<hr />\n<h2>Requirement 1: Provision an Azure Kubernetes service</h2>\n<p>In this requirement you will provision an Azure Kubernetes service.  Prior to provisioning the service you will create a service principal that will be used by the service.</p>\n<ul>\n<li>Provision a service principal named task-kubernetes. Be sure to record the <strong>appId</strong> and <strong>password</strong> as you will need these for other steps.</li>\n</ul>\n<p>Note: The easiest way to create a service principal is the <strong>az ad sp create-for-rbac</strong> CLI command. This can be run from the Azure cloud shell if you do not have the CLI installed.</p>\n<ul>\n<li>Provision an Azure Kubernetes service with the following settings:</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>Setting</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Resource group</td>\n<td><strong>Create new -&gt; task-kubernetes</strong></td>\n</tr>\n<tr>\n<td>Cluster name</td>\n<td><strong>kubernetes</strong></td>\n</tr>\n<tr>\n<td>Version</td>\n<td><strong>1.13.10</strong></td>\n</tr>\n<tr>\n<td>DNS name prefix</td>\n<td><strong>&lt;a unique prefix&gt;</strong></td>\n</tr>\n<tr>\n<td>Node count</td>\n<td><strong>1</strong></td>\n</tr>\n<tr>\n<td>Service principal</td>\n<td><strong>Use existing</strong></td>\n</tr>\n<tr>\n<td>SP client ID</td>\n<td><strong>&lt;SP appID&gt;</strong></td>\n</tr>\n<tr>\n<td>SP client secret</td>\n<td><strong>&lt;SP password&gt;</strong></td>\n</tr>\n<tr>\n<td>Enable RBAC</td>\n<td><strong>Yes</strong></td>\n</tr>\n<tr>\n<td>Log analytics</td>\n<td><strong>Create new-&gt;kubernetesspace</strong></td>\n</tr>\n</tbody>\n</table>\n<p><em>Take the defaults for all other settings</em></p>\n<h2>Requirement 2: Configure AKS to work with ACR</h2>\n<p>For this requirement you will grant the service principal used by the Kubernetes service provisioned in requirement 1 the right to pull images from you Azure container registry.  To complete this requirement:</p>\n<ul>\n<li>Assign the <strong>acrpull</strong> role on your ACR to the <strong>task-kubernetes</strong> service principal.</li>\n</ul>\n<h2>Clean up</h2>\n<ul>\n<li>Delete the <strong>task-kubernetes</strong> resource group.</li>\n</ul>\n<p><em>Note: Other tasks use the Kubernetes service. If you plan on completing them you do not want to delete the *</em>task-kubernetes** resource group, likewise you may not want to delete the registry yet.*</p>\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-05-23T04:34:28Z",
    "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": []
}