public OperationStatusResponseInner deallocate(String resourceGroupName, String vmName) {
        return deallocateWithServiceResponseAsync(resourceGroupName, vmName).toBlocking().last().body();
    }
public OperationStatusResponseInner deallocate ( String resourceGroupName , String vmName ) { return deallocateWithServiceResponseAsync ( resourceGroupName , vmName ) . toBlocking ( ) . last ( ) . body ( ) ; }
Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

@param resourceGroupName The name of the resource group.
@param vmName The name of the virtual machine.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the OperationStatusResponseInner object if successful.