Skip to content

Testing Managed Service Identity on Azure using AzureServiceTokenProvider

Notifications You must be signed in to change notification settings

kwaazaar/azureappauth

Repository files navigation

Follow steps: https://github.com/Azure/aad-pod-identity

  1. az identity create -g MC_aks-ot-rg_aahnl-kubernetes-ot_westeurope -n testrobert -o json (=resourcegroep van AKS, dan heeft AKS service principal al genoeg rechten. Andere resourcegroep, dan stap 6 uitvoeren: https://github.com/Azure/aad-pod-identity#6-set-permissions-for-mic)
  2. Rechten toekennen:
    • KeyVault:
      • Access policy toevoegen voor identity
    • Sql Azure:
      • CREATE USER [testrobert] FROM EXTERNAL PROVIDER;
      • ALTER ROLE db_datareader ADD MEMBER [testrobert];
      • ALTER ROLE db_datawriter ADD MEMBER [testrobert];
      • ALTER ROLE db_ddladmin DROP MEMBER [testrobert]; -- Om migrations te kunnen runnen