HostedServiceOperationsExtensions.DeleteExtensionAsync Method (IHostedServiceOperations, String, String)
Asynchronously deletes the specified extension from a cloud service.
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
<ExtensionAttribute> Public Shared Function DeleteExtensionAsync ( operations As IHostedServiceOperations, serviceName As String, extensionId As String ) As Task(Of OperationStatusResponse)
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Compute.IHostedServiceOperations
The IHostedServiceOperations object that specifies the cloud service operations.
- serviceName
-
Type:
System.String
The name of the cloud service from which the extension should be deleted.
- extensionId
-
Type:
System.String
The identifier that was assigned to the extension when it was added to the cloud service.
Return Value
Type: System.Threading.Tasks.Task(Of OperationStatusResponse)The T:Microsoft.WindowsAzure.Management.Compute.Models.ComputeOperationStatusResponse object that contains the status of the operation.
If the asynchronous operation succeeds, the response includes the HTTP status code for the successful request. If the asynchronous operation failed, the response includes the HTTP status code for the failed request, and also includes error information about the failure.
For more information about deleting an extension from a service, see the following resources: