Azure / Azure/azure-cli

az aks check-network command cannot locate resource group.

Open
#28,797 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad AKS Auto-Assign bug customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

When executing the command `az aks check-network outbound`, it accepts the resource group as an input but subsequently reports that it cannot locate it. Interestingly, when the debug flag is utilized, the very same resource group that the error message claims cannot be found is present in the debug output.

example:

### Related command

az aks check-network outbound --name --resource-group [--custom-endpoints ] [--node-name ]

### Errors

`cli.azure.cli.core.azclierror: (ResourceGroupNotFound) Resource group 'MC_AKSLearn_testingNodePoolCount_eastus' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'MC_AKSLearn_testingNodePoolCount_eastus' could not be found.
az_command_data_logger: (ResourceGroupNotFound) Resource group 'MC_AKSLearn_testingNodePoolCount_eastus' could not be found.
Code: ResourceGroupNotFound
Message: Resource group 'MC_AKSLearn_testingNodePoolCount_eastus' could not be found.`

### Issue script & Debug output

unable to share output of debug

### Expected behavior

Perform outbound network connectivity check for a node in a managed Kubernetes cluster.

### Environment Summary

azure-cli 2.59.0

core 2.59.0
telemetry 1.1.0

Extensions:
aks-preview 3.0.0b5

Dependencies:
msal 1.27.0
azure-mgmt-resource 23.1.0b2

Python location '/opt/az/bin/python3'
Extensions directory '/home/username/.azure/cliextensions'

Python (Linux) 3.11.8 (main, Mar 27 2024, 04:03:13) [GCC 10.2.1 20210110]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.