Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Please note that Resource and resource group names are case-insensitive unless specifically noted in the valid characters column.
If you further look at the Notes section,
When using various APIs to retrieve the name for a resource or resource group, the returned value may have different casing than what you originally specified for the name. The returned value may even display different case values than what is listed in the valid characters table.
Always perform a case-insensitive comparison of names.
As suggested, you can either make the entire resource ID lower case or upper case and further pass the new value to subsequent functions/application within your code.
Please let us know if we can be of any further assistance here.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.