Skip to content

Commit f3b627e

Browse files
committed
client mode use AzureCLICredential to authenticate with Azure
1 parent 9017c4a commit f3b627e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/aks-agent/HISTORY.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ Pending
1414

1515
1.0.0b16
1616
++++++++
17+
* Fix: client mode use AzureCLICredential to authenticate with Azure
1718
* Fix: correct wrong prompt message for init and cleanup
1819
* Fix: prompt the whole flags including --resource-group, --name and optional --namespace for az aks agent command
19-
* Improve: cluster mode cleanup will wait for pods to be removed after deletion
20+
* Enhancement: cluster mode cleanup will wait for pods to be removed after deletion
2021

2122
1.0.0b15
2223
++++++++

src/aks-agent/azext_aks_agent/agent/k8s/aks_agent_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,11 +1147,12 @@ def exec_aks_agent(self, command_flags: str = "") -> bool:
11471147
# Mount custom_toolset.yaml
11481148
volumes.extend(["-v", f"{custom_toolset_file}:/etc/aks-agent/config/custom_toolset.yaml:ro"])
11491149

1150-
# Build environment variables for AKS context
1150+
# Build environment variables for AKS context and use AzureCLICredential to authenticate
11511151
env_vars = [
11521152
"-e", f"AKS_RESOURCE_GROUP={self.resource_group_name}",
11531153
"-e", f"AKS_CLUSTER_NAME={self.cluster_name}",
1154-
"-e", f"AKS_SUBSCRIPTION_ID={self.subscription_id}"
1154+
"-e", f"AKS_SUBSCRIPTION_ID={self.subscription_id}",
1155+
"-e", "AZURE_TOKEN_CREDENTIALS=AzureCLICredential"
11551156
]
11561157

11571158
# Prepare the command

0 commit comments

Comments
 (0)