Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.58k stars 2.79k forks source link

Resource Graph list call returns inconsistent casing for the Resource Group in the 'id' field #37740

Open dmcelhill-r7 opened 6 days ago

dmcelhill-r7 commented 6 days ago

Describe the bug The casing of the 'id' field is being inconsistently returned in ResourceGraph list calls (Microsoft.CognitiveServices at least, but anecdotally others as well). Specifically the casing of the resource group, when it contains upper case letters. For example, using a resource group named 'My-Resource-Group', sometimes the 'id' field is returned with this in lower case (/resourceGroups/my-resource-group/) and sometimes with mixed case in line with the console (/resourceGroups/My-Resource-Group/).

To Reproduce Steps to reproduce the behavior: Cannot be consistently replicated, but this is how I encountered:

  1. Setup a 'AI Services' account and a resource group with mixed casing, for example 'My-Resource-Group'.
  2. Using 'AI studio', make a model deployment against the 'AI services' account.
  3. Use the 'Microsoft.CognitiveServices' list call to list the accounts. Take note of the id field in the response for the 'AI Services' account, specifically the casing of the resource group.
  4. While I replicated this by simply making the same list call a number of times, a more consistent approach was to modify the deployed model, such as changing the quota limit or model version; then make the list call again.

Expected behavior Response to have consistent casing for the resource group in the 'id' field, every time, preferably the mixed casing to match the console.

kashifkhan commented 6 days ago

Thank you for the feedback @dmcelhill-r7 . We will investigate and get back to you asap.

msyyc commented 5 days ago

@ChenxiJiang333 Please help on this issue.

ChenxiJiang333 commented 5 days ago

got it

ChenxiJiang333 commented 3 days ago

Hi @dmcelhill-r7, could you share part of your code that to reproduce the issue?