Azure / Azure/azure-cli-extensions

connectedk8s: query for custom location object id with app id instead of app display name

Open
#6,486 5 comments 0 reactions 0 assignees View on GitHub
bug Connected Kubernetes Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

Display name is not guaranteed to be unique and relialble. Instead the custom location's first party app id should be used to query for its object id.

Custom location's Ap ID bc313c14-388c-4e7d-a58e-70017303ee3b is constant across all azure clouds. Thi id should be used to query for the object id.

https://github.com/Azure/azure-cli-extensions/blob/066fc43ade5436ef0ebfc493799a19cc711d1d97/src/connectedk8s/azext_connectedk8s/custom.py#L2185

### Related command

N/A

### Errors

N/A

### Issue script & Debug output

N/A

### Expected behavior

N/A

### Environment Summary

N/A

### Additional context

in disconnected clouds, the first party apps are created with the same App ID, however Display names are not guaranteed to be the same.

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.