Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.71 KB

3-Create-Azure-AD-AKS-Admins.md

File metadata and controls

44 lines (32 loc) · 1.71 KB

Create Azure AD Group for AKS Admins

🎯 Purpose

In this lab, you'll create an Azure AD Group for AKS Admins. These "admins" will be the designated users who can access the AKS cluster using kubectl.

🛠️ Create Azure AD AKS Admin Group

Prerequisites

  • Sufficient permissions to create Azure AD groups

Steps

  1. Run the Script Execute the following command in your terminal:

    ./scripts/create-azure-ad-group.sh
  2. What the Script Does

    The script performs these actions:

    • Creates an Azure AD Group named devopsjourney-aks-group-oct2024
    • Adds the current user (logged into Az CLI) to the devopsjourney-aks-group-oct2024
    • Outputs the Azure AD Group ID

Important Note Make sure to note down the Azure AD Group ID displayed at the end of the script execution. You'll need this for AKS Terraform configurations later.

🔍 Verification

To ensure the group was created successfully:

  1. Log into the Azure Portal
  2. Navigate to Azure Active Directory > Groups
  3. Search for devopsjourney-aks-group-oct2024
  4. Verify that your user account is listed as a member:

🧠 Knowledge Check

After running the script, consider these questions:

  1. Why is it beneficial to use Azure AD groups for AKS admin access?
  2. How does this group-based access improve security compared to individual user access?
  3. In what ways might you further modify the AD group for different levels of access?

💡 Pro Tip: Consider setting up multiple AD groups with different levels of access (e.g., read-only, developer, admin) to implement a more granular access control strategy for your AKS clusters.