Gå til indhold

Running WorkZone on Azure

Dette indhold er ikke tilgængeligt i dit sprog endnu.

Setting up WorkZone in Azure AKS requires the following basic steps. More advanced options will depend on your local requirements.

You must have an active Azure subscription to do this.

Create a multitenant Entra ID application for access to WorkZone production ACR from you Azure tenant

Section titled “Create a multitenant Entra ID application for access to WorkZone production ACR from you Azure tenant”
  1. Navigate to the Azure portal.
  2. Select Microsoft Entra ID (formerly known as Azure Active Directory).
  3. Select App registration > New registration.
  4. Enter a name for the Application (the service principal name).
  5. Under Supported account types, select Accounts in any organizational directory.
  6. For Redirect URI, select Web and enter any URL. If you have an authentication endpoint for your organization that you want to use, you can provide it here. Otherwise you can enter https://example.com/auth.
  7. Select Register.
  8. Copy the Application (client) ID value.
  9. In the Certificates & secrets under Client secrets, select +New client secret.
  10. Enter a Description, such as Secret for service principal, and click Add.
  11. Note the value of the client secret, as you will need it to update the AKS cluster’s service principal.
  1. Create a new service principal in your Azure Entra ID tenant to authenticate with the AKS Cluster. See Create a multitenant Entra ID application for access to WorkZone production ACR from you Azure tenant.

  2. Share your service principal name Application (client) ID and Redirect URL with your WorkZone contact to get access to the Registry.

  3. Log in to Azure portal.

    #Azure login on specific tenant

    az login --tenant <Tenant domain name>

    #Set Active Subscription

    az account set --subscription <Subscription ID>

  4. Create a resources group.

    • Name: workzone
    • Region: (Europe) West Europe
  5. Create Azure Kubernetes Service (AKS).

    az aks create --resource-group workzone --name workzone --network-plugin Azure --service-principal "<REGISTRY SPN APPLICATION/CLIENT ID>" --client-secret "<REGISTRY SECRET VALUE>" --generate-ssh-key

    Basics:

    • Cluster preset config: Dev/Test
    • Name: workzone
    • AKS pricing Tier: Free Node pools: #Create Nodepool az aks nodepool add --resource-group <Ressource Group Name> --cluster-name <AKS Cluster Name> --os-type Windows --os-sku Windows2019 --name winnp --node-count 1
    • Name: Linux
      • Mode: System
      • Zones: 1, 2, 3
      • Size: Refer to the Node Sizing guide and Azure Node Guide for selecting the right NODE server (for example, Standard_D2s_v3)
      • Min-Max node count: 1-3
    • Name: Windows
      • Mode: User
      • Zones: 1, 2, 3
      • Size: Refer to the Node Sizing guide and Azure Node Guide for selecting the right NODE server (for example, Standard_D4s_v3)
      • Min-Max node count: 1-2
      • Currently the Windows Node pool has to be Windows 2019. Support for Windows 2022 will be available later.

        A Windows node pool in AKS is required to run the Windows containers.

Update AKS with the Azure Entra ID application secret

Section titled “Update AKS with the Azure Entra ID application secret”

Sometimes, it is required to update the AKS instance after creation.

  1. Update AKS cluster with service principal credentials.
    az aks update-credentials \
    --resource-group myResourceGroup \
    --name myAKSCluster \
    --reset-service-principal \
    --service-principal "$SP_ID" \
    --client-secret "${SP_SECRET}"
  2. Update AKS cluster with new Azure Entra ID application credentials.
    az aks update-credentials \
    --resource-group MyResourceGroup \
    --name MyAKScluster \
    --reset-aad \
    --aad-server-app-id <SERVER APPLICATION ID> \
    --aad-server-app-secret <SERVER APPLICATION SECRET> \
    --aad-client-app-id <CLIENT APPLICATION ID>

For more information, see the Microsoft article Pull images from a container registry to an AKS cluster in a different Microsoft Entra tenant.

WorkZone requires a long list of secrets in order to run. For managing these, you need to create an Azure Key Vault on the Azure Tenant that you are running.

You can base your Key Vault on this ARM Template:

See Prepare the Key Vault for installing WorkZone.