Adding IIS resources by using XML

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

Example of a request that calls the AddIISResources procedure

<<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>>

Input for AddIISResources

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:

Typical response for AddIISResources

The response to this procedure does not contain significant data.

Important

Note