Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,44 @@
# Release History

## 1.1.0-beta.3 (Unreleased)
## 1.1.0-beta.3 (2026-04-29)

### Features Added
- Azure Resource Manager Compute Fleet client library for Java. This package contains Microsoft Azure SDK for Compute Fleet Management SDK. Package api-version 2026-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.Fleet` was modified

* `cancel(com.azure.core.util.Context)` was removed
* `cancel()` was removed

#### `models.FleetMode` was modified

* `INSTANCE` was removed

#### `models.Fleets` was modified

* `cancel(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
* `cancel(java.lang.String,java.lang.String)` was removed

#### `models.VMOperationStatus` was modified

* `CANCEL_FAILED_STATUS_UNKNOWN` was removed
* `CANCELED` was removed
Comment thread
weidongxu-microsoft marked this conversation as resolved.

### Features Added

#### `models.FleetProperties` was modified

* `withVmNamePrefix(java.lang.String)` was added
* `vmNamePrefix()` was added

#### `models.FleetMode` was modified

* `LAUNCH` was added

#### `models.VMOperationStatus` was modified

### Other Changes
* `LAUNCHING` was added

## 1.1.0-beta.2 (2025-09-23)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Compute Fleet client library for Java.

This package contains Microsoft Azure SDK for Compute Fleet Management SDK. Package api-version 2025-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Compute Fleet Management SDK. Package api-version 2026-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-computefleet</artifactId>
<version>1.1.0-beta.2</version>
<version>1.1.0-beta.3</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
99 changes: 46 additions & 53 deletions sdk/computefleet/azure-resourcemanager-computefleet/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

## Fleets

- [Cancel](#fleets_cancel)
- [CreateOrUpdate](#fleets_createorupdate)
- [Delete](#fleets_delete)
- [GetByResourceGroup](#fleets_getbyresourcegroup)
Expand All @@ -16,27 +15,6 @@
## Operations

- [List](#operations_list)
### Fleets_Cancel

```java
/**
* Samples for Fleets Cancel.
*/
public final class FleetsCancelSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_Cancel.json
*/
/**
* Sample code: Fleets_Cancel.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsCancel(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().cancel("rgazurefleet", "myFleet", com.azure.core.util.Context.NONE);
}
}
```

### Fleets_CreateOrUpdate

```java
Expand Down Expand Up @@ -164,14 +142,15 @@ import java.util.Map;
*/
public final class FleetsCreateOrUpdateSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_CreateOrUpdate.json
* x-ms-original-file: 2026-04-01-preview/Fleets_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_CreateOrUpdate.
* Sample code: Fleets_CreateOrUpdate_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsCreateOrUpdate(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void
fleetsCreateOrUpdateMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets()
.define("myFleet")
.withRegion("westus")
Expand Down Expand Up @@ -657,8 +636,8 @@ public final class FleetsCreateOrUpdateSamples {
.withPlatformFaultDomainCount(1)
.withAdditionalVirtualMachineCapabilities(
new AdditionalCapabilities().withUltraSSDEnabled(true).withHibernationEnabled(true)))
.withMode(FleetMode.INSTANCE)
.withCapacityType(CapacityType.VCPU)
.withMode(FleetMode.LAUNCH)
.withCapacityType(CapacityType.VM)
.withZoneAllocationPolicy(
new ZoneAllocationPolicy().withDistributionStrategy(ZoneDistributionStrategy.PRIORITIZED)
.withZonePreferences(Arrays.asList(new ZonePreference().withZone("1").withRank(0),
Expand Down Expand Up @@ -696,14 +675,14 @@ public final class FleetsCreateOrUpdateSamples {
*/
public final class FleetsDeleteSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_Delete.json
* x-ms-original-file: 2026-04-01-preview/Fleets_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_Delete.
* Sample code: Fleets_Delete_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsDelete(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void fleetsDeleteMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().delete("rgazurefleet", "testFleet", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -717,14 +696,14 @@ public final class FleetsDeleteSamples {
*/
public final class FleetsGetByResourceGroupSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_Get.json
* x-ms-original-file: 2026-04-01-preview/Fleets_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_Get.
* Sample code: Fleets_Get_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsGet(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void fleetsGetMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().getByResourceGroupWithResponse("rgazurefleet", "myFleet", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -738,14 +717,15 @@ public final class FleetsGetByResourceGroupSamples {
*/
public final class FleetsListSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_ListBySubscription.json
* x-ms-original-file: 2026-04-01-preview/Fleets_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_ListBySubscription.
* Sample code: Fleets_ListBySubscription_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsListBySubscription(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void
fleetsListBySubscriptionMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().list(com.azure.core.util.Context.NONE);
}
}
Expand All @@ -759,14 +739,15 @@ public final class FleetsListSamples {
*/
public final class FleetsListByResourceGroupSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_ListByResourceGroup.json
* x-ms-original-file: 2026-04-01-preview/Fleets_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_ListByResourceGroup.
* Sample code: Fleets_ListByResourceGroup_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsListByResourceGroup(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void
fleetsListByResourceGroupMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().listByResourceGroup("rgazurefleet", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -780,15 +761,15 @@ public final class FleetsListByResourceGroupSamples {
*/
public final class FleetsListVirtualMachineScaleSetsSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_ListVirtualMachineScaleSets.json
* x-ms-original-file: 2026-04-01-preview/Fleets_ListVirtualMachineScaleSets_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_ListVirtualMachineScaleSets.
* Sample code: Fleets_ListVirtualMachineScaleSets_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void
fleetsListVirtualMachineScaleSets(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void fleetsListVirtualMachineScaleSetsMaximumSetGen(
com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets().listVirtualMachineScaleSets("rgazurefleet", "myFleet", com.azure.core.util.Context.NONE);
}
}
Expand All @@ -802,17 +783,17 @@ public final class FleetsListVirtualMachineScaleSetsSamples {
*/
public final class FleetsListVirtualMachinesSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_ListVirtualMachines.json
* x-ms-original-file: 2026-04-01-preview/Fleets_ListVirtualMachines_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_ListVirtualMachines_MaximumSet.
* Sample code: Fleets_ListVirtualMachines_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void
fleetsListVirtualMachinesMaximumSet(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
fleetsListVirtualMachinesMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.fleets()
.listVirtualMachines("rgazurefleet", "myFleet", "xzcepyottghqa", "hydepbmwuypaprlphcdecsz",
.listVirtualMachines("rgazurefleet", "testFleet", "qppsnaauhedxu", "jxgpugummyphgx",
com.azure.core.util.Context.NONE);
}
}
Expand Down Expand Up @@ -945,14 +926,14 @@ import java.util.Map;
*/
public final class FleetsUpdateSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Fleets_Update.json
* x-ms-original-file: 2026-04-01-preview/Fleets_Update_MaximumSet_Gen.json
*/
/**
* Sample code: Fleets_Update.
* Sample code: Fleets_Update_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void fleetsUpdate(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void fleetsUpdateMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
Fleet resource = manager.fleets()
.getByResourceGroupWithResponse("rgazurefleet", "myFleet", com.azure.core.util.Context.NONE)
.getValue();
Expand Down Expand Up @@ -1475,14 +1456,26 @@ public final class FleetsUpdateSamples {
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: 2025-07-01-preview/Operations_List.json
* x-ms-original-file: 2026-04-01-preview/Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List_MinimumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void operationsListMinimumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}

/*
* x-ms-original-file: 2026-04-01-preview/Operations_List_MaximumSet_Gen.json
*/
/**
* Sample code: Operations_List.
* Sample code: Operations_List_MaximumSet_Gen.
*
* @param manager Entry point to ComputeFleetManager.
*/
public static void operationsList(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
public static void operationsListMaximumSetGen(com.azure.resourcemanager.computefleet.ComputeFleetManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/computefleet/azure-resourcemanager-computefleet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
Expand All @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Compute Fleet Management</name>
<description>This package contains Microsoft Azure SDK for Compute Fleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2025-07-01-preview.</description>
<description>This package contains Microsoft Azure SDK for Compute Fleet Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-04-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ PagedIterable<VirtualMachineScaleSetInner> listVirtualMachineScaleSets(String re
Context context);

/**
* List VirtualMachine resources of an instance Fleet.
* List VirtualMachine resources of a Launch mode Fleet.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Fleet.
Expand All @@ -308,7 +308,7 @@ PagedIterable<VirtualMachineScaleSetInner> listVirtualMachineScaleSets(String re
PagedIterable<VirtualMachineInner> listVirtualMachines(String resourceGroupName, String name);

/**
* List VirtualMachine resources of an instance Fleet.
* List VirtualMachine resources of a Launch mode Fleet.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param name The name of the Fleet.
Expand All @@ -324,56 +324,4 @@ PagedIterable<VirtualMachineScaleSetInner> listVirtualMachineScaleSets(String re
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<VirtualMachineInner> listVirtualMachines(String resourceGroupName, String name, String filter,
String skiptoken, Context context);

/**
* Cancels an instance Fleet creation that is in progress.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Compute Fleet.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginCancel(String resourceGroupName, String fleetName);

/**
* Cancels an instance Fleet creation that is in progress.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Compute Fleet.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginCancel(String resourceGroupName, String fleetName, Context context);

/**
* Cancels an instance Fleet creation that is in progress.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Compute Fleet.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void cancel(String resourceGroupName, String fleetName);

/**
* Cancels an instance Fleet creation that is in progress.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param fleetName The name of the Compute Fleet.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void cancel(String resourceGroupName, String fleetName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import java.io.IOException;

/**
* An instant Fleet's virtual machine.
* A Launch mode Fleet's virtual machine.
*/
@Immutable
public final class VirtualMachineInner implements JsonSerializable<VirtualMachineInner> {
Expand Down
Loading
Loading