I'm attempting to configure serviceAutoStartEnabled and serviceAutoStartProvider properties of a web application at the root of a web site deployed in Azure. If I understand the auto start process these properties can be set for specific web applications under a single web site.

I am executing a powershell script during web role start (after elevated privileges have been obtained in a startup task) to perform the web administration tasks as shown here:

```
write-host "Begin RoleStart.ps1"

import-module WebAdministration

Add-WindowsFeature NET-WCF-HTTP-Activation45,NET-WCF-TCP-Activation45,NET-WCF-Pipe-Activation45

$listenerService = Get-WmiObject win32_service -filter "name='NetPipeActivator'"
$listenerService.ChangeStartMode("Automatic")
$listenerService.StartService()

$WebRoleSite = (Get-WebSite "*web*")
$WebRoleSiteName = $WebRoleSite.Name
$WebRoleAppPool = $WebRoleSite.ApplicationPool

New-ItemProperty "IIS:/Sites/$WebRoleSiteName" -name bindings -value @{protocol="net.pipe";bindingInformation="*"}
Set-ItemProperty "IIS:/Sites/$WebRoleSiteName" -Name EnabledProtocols 'http,net.pipe'

Set-ItemProperty -Path "IIS:\AppPools\$WebRoleAppPool" -Name startMode -Value AlwaysRunning

write-host "End RoleStart.ps1"

```

This sets the app pool up with an AlwaysRunning property as required but I still need to supply new values for the application specific serviceAutoStartEnabled and serviceAutoStartProvider properties.

I know I can use Get-WebApplication to obtain an application and set these two properties however when I run the following powershell command I do not see an application for the root ("/")application:

```
(Get-WebApplication "*") | format-list *

```

So how can I set these two properties for the root application using the webadministration cmdlets?