code: public VirtualMachineInstanceViewInner instanceView(String resourceGroupName, String vmName) {
          return instanceViewWithServiceResponseAsync(resourceGroupName, vmName).toBlocking().single().body();
      }
docs: Retrieves information about the run-time state of a virtual machine.
  
  @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 VirtualMachineInstanceViewInner object if successful.