If I run the following command on my server:
%windir%\system32\inetsrv\AppCmd.exe list site
I get this output:
SITE "MyCompany.MyProject.WebRole_IN_0_Web" (id:1273337555,bindings:https/555.555.555.555:443:,state:Started)
How can I get just the site name:
MyCompany.MyProject.WebRole_IN_0_Web
Is some kind of nasty string parsing my only option? The server is a Windows Azure instance.