Skip to content

Commit 942e21c

Browse files
Updates for CI 8945
1 parent a523d56 commit 942e21c

3 files changed

Lines changed: 57 additions & 1 deletion

File tree

support/azure/kubernetes-fleet/toc.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
items:
12
- name: Welcome
23
href: welcome-azure-kubernetes-fleet.yml
3-
4+
- name: Unable to connect to Azure Fleet Manager
5+
href: unable-connect-azure-fleet-manager.md
46
- name: Cluster Resource Placement
57
items:
68
- name: Troubleshooting Cluster Resource Placement
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Unable to connect to Azure Fleet Manager
3+
description: This article provides guidance for when you’re unable to connect to Azure Fleet Manager.
4+
ms.date: 01/13/2026
5+
ms.author: jarrettr
6+
ms.reviewer: chiragpa, v-ryanberg
7+
ms.service: azure-kubernetes-fleet-manager
8+
ms.custom: sap:Other issue or questions related to Fleet manager
9+
---
10+
# Unable to connect to Azure Fleet Manager
11+
12+
This article provides guidance for when you’re unable to connect to Azure Fleet Manager.
13+
14+
## Symptoms
15+
16+
You try to connect to Azure Fleet Manager by retrieving the kubeconfig file for the Fleet Manager hub cluster. You initially run this command: 
17+
18+
```powershell
19+
20+
az fleet get-credentials --resource-group \${GROUP} --name
21+
22+
```
23+
24+
You then run this command:
25+
26+
```powershell
27+
28+
kubectl get pods
29+
30+
```
31+
32+
On the Fleet Manager API server, you see a prompt asking you to enter a device code in another browser to authenticate.
33+
34+
If your organization enforces Conditional Access policies that block device code flows, you might see something like the following message: “Your sign-in was successful but does not meet the criteria to access this resource. For example, you might be signing in from a browser, app, location, or an authentication flow that is restricted by your admin.”
35+
36+
The following is an example of such a message:
37+
38+
:::image type="content" source="../media/unable-connect-azure-fleet-manager/no-access-message.png" alt-text="Example of Conditional Access blocking device code flow." lightbox="../media/unable-connect-azure-fleet-manager/no-access-message.png":::
39+
40+
## Cause
41+
42+
The kubeconfig generated by `az fleet get-credentials` defaults to device code authentication. Conditional Access policies can block this flow, preventing access to the Fleet Manager API server.
43+
44+
## Resolution
45+
46+
Convert the kubeconfig to use Azure CLI authentication instead of device code authentication with the following command:
47+
48+
```powershell
49+
50+
kubelogin convert-kubeconfig -l azurecli
51+
52+
```
53+
54+
This updates the kubeconfig so that it authenticates using your existing Azure CLI sign-in session, bypassing the device code prompt.
67.5 KB
Loading

0 commit comments

Comments
 (0)