Interface AvailabilitySetsClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<AvailabilitySetInner>, InnerSupportsListing<AvailabilitySetInner>

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

    • createOrUpdateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
      Create or update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Create Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateAsync

      Mono<AvailabilitySetInner> createOrUpdateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
      Create or update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Create Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<AvailabilitySetInner> createOrUpdateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters, com.azure.core.util.Context context)
      Create or update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Create Availability Set operation.
      context - The context to associate with this operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • createOrUpdate

      AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetName, AvailabilitySetInner parameters)
      Create or update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Create Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> updateWithResponseAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
      Update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Update Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<AvailabilitySetInner> updateAsync(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
      Update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Update Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<AvailabilitySetInner> updateWithResponse(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters, com.azure.core.util.Context context)
      Update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Update Availability Set operation.
      context - The context to associate with this operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      AvailabilitySetInner update(String resourceGroupName, String availabilitySetName, AvailabilitySetUpdate parameters)
      Update an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the Update Availability Set operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String availabilitySetName)
      Delete an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String availabilitySetName)
      Delete an availability set.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
      Delete an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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 availabilitySetName)
      Delete an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupWithResponseAsync

      Mono<com.azure.core.http.rest.Response<AvailabilitySetInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String availabilitySetName)
      Retrieves information about an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroupAsync

      Mono<AvailabilitySetInner> getByResourceGroupAsync(String resourceGroupName, String availabilitySetName)
      Retrieves information about an availability set.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<AvailabilitySetInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<AvailabilitySetInner> getByResourceGroupWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
      Retrieves information about an availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      context - The context to associate with this operation.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getByResourceGroup

      AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName)
      Retrieves information about an availability set.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<AvailabilitySetInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      specifies information about the availability set that the virtual machine should be assigned to.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listAsync(String expand)
      Lists all availability sets in a subscription.
      Parameters:
      expand - The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
      Returns:
      the List Availability Set operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAsync

      com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listAsync()
      Lists all availability sets in a subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<AvailabilitySetInner>
      Returns:
      the List Availability Set operation response as paginated response with PagedFlux.
      Throws:
      ApiErrorException - 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<AvailabilitySetInner> list()
      Lists all availability sets in a subscription.
      Specified by:
      list in interface InnerSupportsListing<AvailabilitySetInner>
      Returns:
      the List Availability Set operation response as paginated response with PagedIterable.
      Throws:
      ApiErrorException - 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<AvailabilitySetInner> list(String expand, com.azure.core.util.Context context)
      Lists all availability sets in a subscription.
      Parameters:
      expand - The expand expression to apply to the operation. Allowed values are 'virtualMachines/$ref'.
      context - The context to associate with this operation.
      Returns:
      the List Availability Set operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<AvailabilitySetInner> listByResourceGroupAsync(String resourceGroupName)
      Lists all availability sets in a resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<AvailabilitySetInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the List Availability Set operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<AvailabilitySetInner> listByResourceGroup(String resourceGroupName)
      Lists all availability sets in a resource group.
      Specified by:
      listByResourceGroup in interface InnerSupportsListing<AvailabilitySetInner>
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      the List Availability Set operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - 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<AvailabilitySetInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all availability sets in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      context - The context to associate with this operation.
      Returns:
      the List Availability Set operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAvailableSizesAsync

      com.azure.core.http.rest.PagedFlux<VirtualMachineSizeInner> listAvailableSizesAsync(String resourceGroupName, String availabilitySetName)
      Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the List Virtual Machine operation response as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAvailableSizes

      com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName)
      Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the List Virtual Machine operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listAvailableSizes

      com.azure.core.http.rest.PagedIterable<VirtualMachineSizeInner> listAvailableSizes(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
      Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      context - The context to associate with this operation.
      Returns:
      the List Virtual Machine operation response as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startMigrationToVirtualMachineScaleSetWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> startMigrationToVirtualMachineScaleSetWithResponseAsync(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startMigrationToVirtualMachineScaleSetAsync

      Mono<Void> startMigrationToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startMigrationToVirtualMachineScaleSetWithResponse

      com.azure.core.http.rest.Response<Void> startMigrationToVirtualMachineScaleSetWithResponse(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters, com.azure.core.util.Context context)
      Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • startMigrationToVirtualMachineScaleSet

      void startMigrationToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Start migration operation on an Availability Set to move its Virtual Machines to a Virtual Machine Scale Set. This should be followed by a migrate operation on each Virtual Machine that triggers a downtime on the Virtual Machine.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancelMigrationToVirtualMachineScaleSetWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> cancelMigrationToVirtualMachineScaleSetWithResponseAsync(String resourceGroupName, String availabilitySetName)
      Cancel the migration operation on an Availability Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancelMigrationToVirtualMachineScaleSetAsync

      Mono<Void> cancelMigrationToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName)
      Cancel the migration operation on an Availability Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancelMigrationToVirtualMachineScaleSetWithResponse

      com.azure.core.http.rest.Response<Void> cancelMigrationToVirtualMachineScaleSetWithResponse(String resourceGroupName, String availabilitySetName, com.azure.core.util.Context context)
      Cancel the migration operation on an Availability Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • cancelMigrationToVirtualMachineScaleSet

      void cancelMigrationToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName)
      Cancel the migration operation on an Availability Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • validateMigrationToVirtualMachineScaleSetWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> validateMigrationToVirtualMachineScaleSetWithResponseAsync(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • validateMigrationToVirtualMachineScaleSetAsync

      Mono<Void> validateMigrationToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • validateMigrationToVirtualMachineScaleSetWithResponse

      com.azure.core.http.rest.Response<Void> validateMigrationToVirtualMachineScaleSetWithResponse(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters, com.azure.core.util.Context context)
      Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • validateMigrationToVirtualMachineScaleSet

      void validateMigrationToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName, MigrateToVirtualMachineScaleSetInput parameters)
      Validates that the Virtual Machines in the Availability Set can be migrated to the provided Virtual Machine Scale Set.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • convertToVirtualMachineScaleSetWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> convertToVirtualMachineScaleSetWithResponseAsync(String resourceGroupName, String availabilitySetName, ConvertToVirtualMachineScaleSetInput parameters)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginConvertToVirtualMachineScaleSetAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName, ConvertToVirtualMachineScaleSetInput parameters)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginConvertToVirtualMachineScaleSetAsync

      com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the PollerFlux for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginConvertToVirtualMachineScaleSet

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      the SyncPoller for polling of long-running operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • beginConvertToVirtualMachineScaleSet

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginConvertToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName, ConvertToVirtualMachineScaleSetInput parameters, com.azure.core.util.Context context)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      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.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • convertToVirtualMachineScaleSetAsync

      Mono<Void> convertToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName, ConvertToVirtualMachineScaleSetInput parameters)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • convertToVirtualMachineScaleSetAsync

      Mono<Void> convertToVirtualMachineScaleSetAsync(String resourceGroupName, String availabilitySetName)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • convertToVirtualMachineScaleSet

      void convertToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • convertToVirtualMachineScaleSet

      void convertToVirtualMachineScaleSet(String resourceGroupName, String availabilitySetName, ConvertToVirtualMachineScaleSetInput parameters, com.azure.core.util.Context context)
      Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. This does not trigger a downtime on the Virtual Machines.
      Parameters:
      resourceGroupName - The name of the resource group.
      availabilitySetName - The name of the availability set.
      parameters - Parameters supplied to the migrate operation on the availability set.
      context - The context to associate with this operation.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      ApiErrorException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.