I wanted to check what all characters can be present in Subscription id of Azure Subscription. I saw documentation here but it mentions format of id as something like 0000-0000-0000-000000000000. It does no tells me what all characters are valid in the format. e.g. can Subscription id contain "_" or any other character
I tried referring documentation but could not find the required information
Azure subscription ID is a globally unique identifier (GUID). The following article discuss how to validate GUID using Regular Expression. I think it would help you link here
Given string str, the task is to check whether the given string is a valid GUID (Globally Unique Identifier) or not by using Regular Expression.
The valid GUID (Globally Unique Identifier) must specify the following conditions:
- It should be a 128-bit number.
- It should be 36 characters (32 hexadecimal characters and 4 hyphens) long.
- It should be displayed in five groups separated by hyphens (-). Microsoft GUIDs are sometimes represented with surrounding braces.