Skip to content

Microsoft Azure

We use Azure for Kubernetes services, secrets management, and container registries.

Overview

Azure hosts critical infrastructure for the Data Team:

  • Kubernetes Clusters
    • Stage: stage-bankV2-use2-aks
    • Prod: prod-bankV2-use2-aks
  • Key Vaults (for Airflow secrets)
    • Stage: stage-dt-airflow-kv
    • Prod: prod-dt-airflow-kv
  • Container Registries
    • Dev: minoritydev
    • Prod: minoritycr

Prerequisites

Microsoft Account

You'll receive a Microsoft account on your first day at Majority.

Multi-Factor Authentication (MFA)

You'll need to set up MFA before accessing Azure:

  1. Install Microsoft Authenticator on your phone
  2. Follow the MFA setup prompts when first logging into Azure
  3. Keep your authenticator app handy for future logins

VPN Access (Warp)

Azure access requires connection to the VPN.

Install and configure Warp by following this guide.

VPN Required

You must be connected to Warp VPN to access Azure resources. Connect before attempting to use Azure services.


Web Portal Access

Access the Azure Portal using your Majority Microsoft account.


CLI Setup

Install Azure CLI

Install the Azure CLI using Homebrew:

brew install azure-cli

Login

Authenticate with Azure:

az login

This will: 1. Open your browser for authentication 2. Prompt you to sign in with your Microsoft account 3. Require MFA verification 4. List available subscriptions

Select the appropriate subscription when prompted.


Key Vault Operations

Add Secret with Preserved Formatting

To add a secret to Key Vault from a file while preserving its formatting:

az keyvault secret set --vault-name <YourKeyVaultName> --name <SecretName> --file <PathToYourFile>

Example:

az keyvault secret set --vault-name stage-dt-airflow-kv --name my-secret --file ./secret.txt