« Back to index

Kubernetes tutorial

1. Prerequisites

In this section we will install the required software, create an Azure account, and use the Azure CLI to log in and enabled several resource providers.

Install software prerequisites

You will need to install the following tools:

Clone the Hipster Shop repository

Open a terminal in the root folder of this project, and execute this command to clone the Hipster Shop repository from GitHub:

git clone https://github.com/GoogleCloudPlatform/microservices-demo.git

Create an Azure account

Visit the Azure portal website and create a new account:

Configure Azure CLI

Use az login to log into your Azure account. A new browser window will open where you can finish the login procedure before returning to the terminal. If using a remote terminal or an environment without a browser, a special code and URL will be shown to open in another computer’s browser to finish the login procedure.

$ az login

Note, we have launched a browser for you to login. For old experience with device code, use "az login --use-device-code"
You have logged in. Now let us find all the subscriptions to which you have access...
[
  {
    "cloudName": "AzureCloud",
    "id": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "isDefault": true,
    "name": "Your-subscription-name",
    "state": "Enabled",
    "tenantId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
    "user": {
      "name": "your.email@your.domain.example.com",
      "type": "user"
    }
  }
]

Now your az command line instructions will use your account credentials. We will later need the “id” value shown when you log in.

Optional: You can check any time what account you are logged in and this information with:

$ az account show

You may need to register the use of the following providers with your Azure account to create the kind of resources we are going to use. They are needed to create new resources related to those providers.

az provider register -n Microsoft.Network
az provider register -n Microsoft.Storage
az provider register -n Microsoft.Compute
az provider register -n Microsoft.ContainerService

Next step: 2. Initial Azure resources setup »

« Previous step: 0. Getting started