Skip to content
Merged
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
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ com.azure.resourcemanager:azure-resourcemanager-appplatform;2.51.0;2.52.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-appservice;2.56.3;2.57.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-authorization;2.53.14;2.54.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.12;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-compute;2.61.2;2.62.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-compute;2.61.2;2.62.0
com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.15;2.54.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.6;2.56.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-containerservice;2.64.2;2.65.0-beta.2
Expand Down
21 changes: 17 additions & 4 deletions sdk/compute/azure-resourcemanager-compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# Release History

## 2.62.0-beta.1 (Unreleased)
## 2.62.0 (2026-10-15)

- Package api-version Compute: 2026-04-01, ComputeDisk: 2026-03-02, ComputeGallery: 2026-03-03, ComputeSku: 2021-07-01.

### Features Added

### Breaking Changes
* `models.FlexProfile` was added

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

### Other Changes
* `privateIPAddressPrefixLength()` was added
* `withPrivateIPAddressPrefixLength(java.lang.Integer)` was added

#### `models.VirtualMachineScaleSetUpdateIpConfiguration` was modified

* `privateIPAddressPrefixLength()` was added
* `withPrivateIPAddressPrefixLength(java.lang.Integer)` was added

#### `models.VirtualMachineNetworkInterfaceIpConfiguration` was modified

* `privateIPAddressPrefixLength()` was added
* `withPrivateIPAddressPrefixLength(java.lang.Integer)` was added

## 2.61.2 (2026-10-09)

Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-resourcemanager-compute/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-compute</artifactId>
<version>2.61.0</version>
<version>2.62.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/compute/azure-resourcemanager-compute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-compute</artifactId>
<version>2.62.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-compute;current} -->
<version>2.62.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-compute;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Compute Management</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.compute.fluent.models.CapacityReservationGroupInner;
import com.azure.resourcemanager.compute.models.CapacityReservationGroupInstanceViewTypes;
import com.azure.resourcemanager.compute.models.CapacityReservationGroupUpdate;
Expand All @@ -18,6 +21,8 @@
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet;
import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
Expand Down Expand Up @@ -244,7 +249,55 @@ CapacityReservationGroupInner update(String resourceGroupName, String capacityRe
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String capacityReservationGroupName);
Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName,
String capacityReservationGroupName);

/**
* The operation to delete a capacity reservation group. This operation is allowed only if all the associated
* resources are disassociated from the reservation group and all capacity reservations under the reservation group
* have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String capacityReservationGroupName);

/**
* The operation to delete a capacity reservation group. This operation is allowed only if all the associated
* resources are disassociated from the reservation group and all capacity reservations under the reservation group
* have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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> beginDelete(String resourceGroupName, String capacityReservationGroupName);

/**
* The operation to delete a capacity reservation group. This operation is allowed only if all the associated
* resources are disassociated from the reservation group and all capacity reservations under the reservation group
* have also been deleted. Please refer to https://aka.ms/CapacityReservation for more details.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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> beginDelete(String resourceGroupName, String capacityReservationGroupName,
Context context);

/**
* The operation to delete a capacity reservation group. This operation is allowed only if all the associated
Expand All @@ -268,14 +321,12 @@ CapacityReservationGroupInner update(String resourceGroupName, String capacityRe
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<Void> deleteWithResponse(String resourceGroupName, String capacityReservationGroupName, Context context);
void delete(String resourceGroupName, String capacityReservationGroupName);

/**
* The operation to delete a capacity reservation group. This operation is allowed only if all the associated
Expand All @@ -284,12 +335,13 @@ CapacityReservationGroupInner update(String resourceGroupName, String capacityRe
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param capacityReservationGroupName The name of the capacity reservation group.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.resourcemanager.compute.models.ApiErrorException 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 delete(String resourceGroupName, String capacityReservationGroupName);
void delete(String resourceGroupName, String capacityReservationGroupName, Context context);

/**
* Lists all of the capacity reservation groups in the specified resource group. Use the nextLink property in the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.azure.resourcemanager.compute.models.CapacityReservationProfile;
import com.azure.resourcemanager.compute.models.DiagnosticsProfile;
import com.azure.resourcemanager.compute.models.ExtendedLocation;
import com.azure.resourcemanager.compute.models.FlexProfile;
import com.azure.resourcemanager.compute.models.HardwareProfile;
import com.azure.resourcemanager.compute.models.InterconnectBlockProfile;
import com.azure.resourcemanager.compute.models.NetworkProfile;
Expand Down Expand Up @@ -346,6 +347,43 @@ public VirtualMachineInner withHardwareProfile(HardwareProfile hardwareProfile)
return this;
}

/**
* Get the flexProfile property: [Preview Feature] Specifies a FlexProfile for VM size. Azure may deploy a
* compatible alternative VM size based on capacity and placement considerations, and returns the deployed size in
* hardwareProfile.vmSize. A request that adds flexProfile must omit hardwareProfile.vmSize. For a virtual machine
* that uses FlexProfile, a hardwareProfile.vmSize equal to the deployed size is ignored, so a GET response can be
* sent back unchanged. A PATCH request that omits flexProfile keeps it. A PUT request that omits flexProfile and
* sets hardwareProfile.vmSize clears it. This property cannot exist along with a non-null
* properties.availabilitySet, properties.capacityReservation, properties.host, properties.hostGroup,
* properties.proximityPlacementGroup or properties.virtualMachineScaleSet.
*
* @return the flexProfile value.
*/
public FlexProfile flexProfile() {
return this.innerProperties() == null ? null : this.innerProperties().flexProfile();
}

/**
* Set the flexProfile property: [Preview Feature] Specifies a FlexProfile for VM size. Azure may deploy a
* compatible alternative VM size based on capacity and placement considerations, and returns the deployed size in
* hardwareProfile.vmSize. A request that adds flexProfile must omit hardwareProfile.vmSize. For a virtual machine
* that uses FlexProfile, a hardwareProfile.vmSize equal to the deployed size is ignored, so a GET response can be
* sent back unchanged. A PATCH request that omits flexProfile keeps it. A PUT request that omits flexProfile and
* sets hardwareProfile.vmSize clears it. This property cannot exist along with a non-null
* properties.availabilitySet, properties.capacityReservation, properties.host, properties.hostGroup,
* properties.proximityPlacementGroup or properties.virtualMachineScaleSet.
*
* @param flexProfile the flexProfile value to set.
* @return the VirtualMachineInner object itself.
*/
public VirtualMachineInner withFlexProfile(FlexProfile flexProfile) {
if (this.innerProperties() == null) {
this.innerProperties = new VirtualMachinePropertiesInner();
}
this.innerProperties().withFlexProfile(flexProfile);
return this;
}

/**
* Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets
* Scheduled Event related configurations for the virtual machine.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public final class VirtualMachineNetworkInterfaceIPConfigurationProperties
*/
private IpVersions privateIpAddressVersion;

/*
* The private IP address prefix length. If specified and the allocation method is dynamic, the service will
* allocate a CIDR block instead of a single IP address.
*/
private Integer privateIPAddressPrefixLength;

/*
* Specifies an array of references to application security group.
*/
Expand Down Expand Up @@ -153,6 +159,29 @@ public IpVersions privateIpAddressVersion() {
return this;
}

/**
* Get the privateIPAddressPrefixLength property: The private IP address prefix length. If specified and the
* allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
*
* @return the privateIPAddressPrefixLength value.
*/
public Integer privateIPAddressPrefixLength() {
return this.privateIPAddressPrefixLength;
}

/**
* Set the privateIPAddressPrefixLength property: The private IP address prefix length. If specified and the
* allocation method is dynamic, the service will allocate a CIDR block instead of a single IP address.
*
* @param privateIPAddressPrefixLength the privateIPAddressPrefixLength value to set.
* @return the VirtualMachineNetworkInterfaceIPConfigurationProperties object itself.
*/
public VirtualMachineNetworkInterfaceIPConfigurationProperties
withPrivateIPAddressPrefixLength(Integer privateIPAddressPrefixLength) {
this.privateIPAddressPrefixLength = privateIPAddressPrefixLength;
return this;
}

/**
* Get the applicationSecurityGroups property: Specifies an array of references to application security group.
*
Expand Down Expand Up @@ -246,6 +275,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("publicIPAddressConfiguration", this.publicIpAddressConfiguration);
jsonWriter.writeStringField("privateIPAddressVersion",
this.privateIpAddressVersion == null ? null : this.privateIpAddressVersion.toString());
jsonWriter.writeNumberField("privateIPAddressPrefixLength", this.privateIPAddressPrefixLength);
jsonWriter.writeArrayField("applicationSecurityGroups", this.applicationSecurityGroups,
(writer, element) -> writer.writeJson(element));
jsonWriter.writeArrayField("applicationGatewayBackendAddressPools", this.applicationGatewayBackendAddressPools,
Expand Down Expand Up @@ -284,6 +314,9 @@ public static VirtualMachineNetworkInterfaceIPConfigurationProperties fromJson(J
} else if ("privateIPAddressVersion".equals(fieldName)) {
deserializedVirtualMachineNetworkInterfaceIPConfigurationProperties.privateIpAddressVersion
= IpVersions.fromString(reader.getString());
} else if ("privateIPAddressPrefixLength".equals(fieldName)) {
deserializedVirtualMachineNetworkInterfaceIPConfigurationProperties.privateIPAddressPrefixLength
= reader.getNullable(JsonReader::getInt);
} else if ("applicationSecurityGroups".equals(fieldName)) {
List<SubResource> applicationSecurityGroups
= reader.readArray(reader1 -> SubResource.fromJson(reader1));
Expand Down
Loading
Loading