IServerFarmOperations.CreateAsync Method

Asynchronously creates a server farm.

Namespace: Microsoft.WindowsAzure.Management.WebSites
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

'Usage
Dim instance As IServerFarmOperations
Dim webSpaceName As String
Dim parameters As ServerFarmCreateParameters
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of ServerFarmCreateResponse)

returnValue = instance.CreateAsync(webSpaceName, parameters, cancellationToken)

Task<ServerFarmCreateResponse> CreateAsync (
	string webSpaceName,
	ServerFarmCreateParameters parameters,
	CancellationToken cancellationToken
)
Task<ServerFarmCreateResponse> CreateAsync (
	String webSpaceName, 
	ServerFarmCreateParameters parameters, 
	CancellationToken cancellationToken
)
function CreateAsync (
	webSpaceName : String, 
	parameters : ServerFarmCreateParameters, 
	cancellationToken : CancellationToken
) : Task<ServerFarmCreateResponse>

Parameters

webSpaceName

The name of the webspace.

parameters

The ServerFarmCreateParameters object that contains the parameters that are used to create a server farm.

cancellationToken

The cancellation token.

Return Value

An ServerFarmCreateResponse object that specifies the status of the operation.

Only one server farm per web space is permitted. Creating a server farm changes your webspace’s Compute Mode from Shared to Dedicated. You will be charged from the moment the server farm is created, even if all your sites are still running in Free mode.

For more information about creating a server farm, see Create, Manage, or Delete a Server Farm.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

Show: