Welcome to AzParse! This is a small library which helps you translate region names and resource provider names to friendly display names.
For example, uksouth would now become UK South. The resource name Microsoft.Compute/virtualMachines would become Virtual Machines.
Installation via Package Management is recommended. Instructions for NuGet and the .NET CLI are below.
Install-Package AzParse -Version 0.0.1-alpha
dotnet add package AzParse --version 0.0.1-alpha
Using the package is simple, string extensions are provided to convert both region names and resources.
// Region
var region = "uksouth";
Console.WriteLine(region.ConvertRegionToFriendlyName());
// Resource
var region = "Microsoft.Compute/virtualMachines";
Console.WriteLine(region.ConvertResourceToFriendlyName());
Feel free to open an issue if you find any problems such as missing regions or missing resource provider namespaces.