Dela via


DeploymentOperationsExtensions.DeleteRoleInstanceByDeploymentName Method

Definition

The Delete Role Instances operation deletes a role instance from a deployment in a cloud service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469418.aspx for more information)

public static Microsoft.Azure.OperationStatusResponse DeleteRoleInstanceByDeploymentName (this Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations operations, string serviceName, string deploymentName, Microsoft.WindowsAzure.Management.Compute.Models.DeploymentDeleteRoleInstanceParameters roleInstanceName);
static member DeleteRoleInstanceByDeploymentName : Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations * string * string * Microsoft.WindowsAzure.Management.Compute.Models.DeploymentDeleteRoleInstanceParameters -> Microsoft.Azure.OperationStatusResponse
<Extension()>
Public Function DeleteRoleInstanceByDeploymentName (operations As IDeploymentOperations, serviceName As String, deploymentName As String, roleInstanceName As DeploymentDeleteRoleInstanceParameters) As OperationStatusResponse

Parameters

operations
IDeploymentOperations

Reference to the Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations.

serviceName
String

Required. The name of the cloud service.

deploymentName
String

Required. The name of the deployment.

roleInstanceName
DeploymentDeleteRoleInstanceParameters

Required. The parameters to delete the role.

Returns

Microsoft.Azure.OperationStatusResponse

The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is inprogress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure.

Applies to