$RG = "di-platform-dev-rg-execution"
$NAME = "di-platform-dev-k8s-exe"
$SP_ID=$(az aks show --resource-group "$RG" --name "$NAME" \
--query servicePrincipalProfile.clientId -o tsv)
az ad sp credential list --id "$SP_ID" --query "[].endDate" -o tsv
$SP_ID=$(az aks show --resource-group "$RG" --name "$NAME" \
--query servicePrincipalProfile.clientId -o tsv)
$SP_SECRET=$(az ad sp credential reset --name "$SP_ID" --query password -o tsv)
az aks update-credentials \
--resource-group "$RG" \
--name $NAME" \
--reset-service-principal \
--service-principal "$SP_ID" \
--client-secret "$SP_SECRET"