code: public VirtualMachineExtensionsListResultInner getExtensions(String resourceGroupName, String vmName, String expand) {
          return getExtensionsWithServiceResponseAsync(resourceGroupName, vmName, expand).toBlocking().single().body();
      }
docs: The operation to get all extensions of a Virtual Machine.
  
  @param resourceGroupName The name of the resource group.
  @param vmName The name of the virtual machine containing the extension.
  @param expand The expand expression to apply on the operation.
  @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 VirtualMachineExtensionsListResultInner object if successful.