In case you are not in with the coolkids getting on with Powershell, there's a C# based set of tools you can use for managing the web… * https://azure.microsoft.com/en-us/blog/azure-management-libraries-for-net-v1-2/
https://azure.microsoft.com/en-us/blog/azure-management-libraries-for-net-v1-2/