Interface SqlVirtualMachinesClient


public interface SqlVirtualMachinesClient
An instance of this class provides access to all the operations defined in SqlVirtualMachinesClient.
  • Method Details

    • listBySqlVmGroup

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> listBySqlVmGroup(String resourceGroupName, String sqlVirtualMachineGroupName)
      Gets the list of sql virtual machines in a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      Returns:
      the list of sql virtual machines in a SQL virtual machine group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listBySqlVmGroup

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> listBySqlVmGroup(String resourceGroupName, String sqlVirtualMachineGroupName, com.azure.core.util.Context context)
      Gets the list of sql virtual machines in a SQL virtual machine group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineGroupName - Name of the SQL virtual machine group.
      context - The context to associate with this operation.
      Returns:
      the list of sql virtual machines in a SQL virtual machine group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> list()
      Gets all SQL virtual machines in a subscription.
      Returns:
      all SQL virtual machines in a subscription as paginated response with PagedIterable.
      Throws:
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • list

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> list(com.azure.core.util.Context context)
      Gets all SQL virtual machines in a subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all SQL virtual machines in a subscription as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginStartAssessment

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStartAssessment(String resourceGroupName, String sqlVirtualMachineName)
      Starts Assessment on SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginStartAssessment

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStartAssessment(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Starts Assessment on SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startAssessment

      void startAssessment(String resourceGroupName, String sqlVirtualMachineName)
      Starts Assessment on SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startAssessment

      void startAssessment(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Starts Assessment on SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRedeploy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String sqlVirtualMachineName)
      Uninstalls and reinstalls the SQL Iaas Extension.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginRedeploy

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Uninstalls and reinstalls the SQL Iaas Extension.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeploy

      void redeploy(String resourceGroupName, String sqlVirtualMachineName)
      Uninstalls and reinstalls the SQL Iaas Extension.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • redeploy

      void redeploy(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Uninstalls and reinstalls the SQL Iaas Extension.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      SqlVirtualMachineInner getByResourceGroup(String resourceGroupName, String sqlVirtualMachineName)
      Gets a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Returns:
      a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<SqlVirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String sqlVirtualMachineName, String expand, com.azure.core.util.Context context)
      Gets a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      expand - The child resources to include in the response.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineInner>,SqlVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineInner parameters)
      Creates or updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      Returns:
      the SyncPoller for polling of a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineInner>,SqlVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineInner parameters, com.azure.core.util.Context context)
      Creates or updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      SqlVirtualMachineInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineInner parameters)
      Creates or updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      Returns:
      a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      SqlVirtualMachineInner createOrUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineInner parameters, com.azure.core.util.Context context)
      Creates or updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlVirtualMachineName)
      Deletes a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Deletes a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String sqlVirtualMachineName)
      Deletes a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String resourceGroupName, String sqlVirtualMachineName, com.azure.core.util.Context context)
      Deletes a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineInner>,SqlVirtualMachineInner> beginUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineUpdate parameters)
      Updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      Returns:
      the SyncPoller for polling of a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<SqlVirtualMachineInner>,SqlVirtualMachineInner> beginUpdate(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, com.azure.core.util.Context context)
      Updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      SqlVirtualMachineInner update(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineUpdate parameters)
      Updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      Returns:
      a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      SqlVirtualMachineInner update(String resourceGroupName, String sqlVirtualMachineName, SqlVirtualMachineUpdate parameters, com.azure.core.util.Context context)
      Updates a SQL virtual machine.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      sqlVirtualMachineName - Name of the SQL virtual machine.
      parameters - The SQL virtual machine.
      context - The context to associate with this operation.
      Returns:
      a SQL virtual machine.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> listByResourceGroup(String resourceGroupName)
      Gets all SQL virtual machines in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      Returns:
      all SQL virtual machines in a resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<SqlVirtualMachineInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets all SQL virtual machines in a resource group.
      Parameters:
      resourceGroupName - Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
      context - The context to associate with this operation.
      Returns:
      all SQL virtual machines in a resource group as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.