This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
The ResourceIdentifier constructor does not do any validation, whereas the Parse method does. For libraries that take a resourceIdentifier, the library should validate the resourceIdentifier if it is used in constructing the request URI path, which is the case for Azure.Monitor.Query. There are a couple workaround today:
The ResourceIdentifier constructor does not do any validation, whereas the Parse method does. For libraries that take a resourceIdentifier, the library should validate the resourceIdentifier if it is used in constructing the request URI path, which is the case for Azure.Monitor.Query. There are a couple workaround today:
where
resourceIdentifier
is the user input OrIt would be nice if there was a method that could be called so that it is more clear how to do this.