Use the AddIISResources procedure of the IIS Resource Manager namespace to add IIS disk volumes, IP addresses, and possibly an computer running IIS to the pool of resources managed by IIS Resource Manager. If the computer running IIS specified by <serverName> does not exist, it will be added.
The HTTP and FTP ports of each IP address are tracked separately, but they are always added and removed from the resource pool as a single IP address. When volumes are added, the system creates a special hosting directory in each volume and applies appropriate permissions.
This procedure runs as the Microsoft Provisioning Framework service account for calls to the Resource Manager database, and it impersonates the caller when creating directories and when creating and setting Web and FTP site permissions.
Important
<<request>
<procedure>
<execute namespace="IIS Resource Manager" procedure="AddIISResources">
<executeData>
<owner>LDAP://ou=Hosting,dc=contoso,dc=com</owner>
<servers>
<server>
<serverName>machine01</serverName>
<volumes>
<volume>
<location>c:</location>
<megabytes>30000</megabytes>
</volume>
<volume>
<location>d:</location>
<megabytes>40000</megabytes>
</volume>
</volumes>
<IPAddresses>
<IPAddress>allUnassigned</IPAddress>
<IPAddress>157.60.0.1</IPAddress>
<IPAddress>157.60.0.2</IPAddress>
<IPAddress>157.60.0.3</IPAddress>
</IPAddresses>
</server>
<server>
<serverName>machine02</serverName>
<volumes>
<volume>
<location>c:</location>
<megabytes>30000</megabytes>
</volume>
<volume>
<location>d:</location>
<megabytes>40000</megabytes>
</volume>
</volumes>
<IPAddresses>
<IPAddress>157.60.0.4</IPAddress>
<IPAddress>157.60.0.5</IPAddress>
<IPAddress>1157.60.0.6</IPAddress>
</IPAddresses>
</server>
</servers>
</executeData>
</execute>
</procedure>
</request>>
You can supply input for more than one server in the same request by supplying multiple <server> tags. The following input is valid for this request:
In the <owner> element, enter the Lightweight Directory Access Protocol (LDAP) path of the hosting organization.
<owner>LDAP://LDAP path of the hosting organization</owner>
In the <serverName> tag, you specify the internal Domain Name System (DNS) name of the server to add to the pool of servers managed by Resource Manager.
<serverName>DNS name of server</serverName>
In the <volume> tag, specify the location and size of the disk volumes to add to the pool of disk resources managed by Resource Manager.
<volume>
<location>drive letter:</path>
<megabytes>size of volume</megabytes>
</volume>
In the <IPAddress> tag, you can optionally specify the IP addresses to add to the pool of IP addresses managed by the Resource Manager. The computer called in this procedure must already own the IP address(es) specified above. Therefore, any IP addresses passed in this tag must be added to the computer before calling this procedure. Each IP address provides an HTTP port (80) and an FTP port (21). To specify an All Unassigned-type port, type a value of allUnassigned.
<IPAddress>IP address</IPAddress>
The response to this procedure does not contain significant data.
Important
Note