Skip to content

add AdditionalProperties in VirtualMachineScaleSetVmProperties #50933

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
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
12 changes: 5 additions & 7 deletions sdk/compute/Azure.ResourceManager.Compute/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Release History

## 1.10.0-beta.1 (Unreleased)
## 1.10.0 (2026-06-30)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Added `Properties` property in `VirtualMachineScaleSetVmData` class.
- This property contains the properties of the VirtualMachineScaleSetVm. It supports `AdditionalProperties` to send and receive private/internal properties supported by the service.
- Please use the properties in `VirtualMachineScaleSetVmData.Properties` to set the properties of the VirtualMachineScaleSetVm, instead of using those properties at the root level of `VirtualMachineScaleSetVmData` class.

## 1.9.0 (2025-03-31)

Expand Down Expand Up @@ -46,7 +44,7 @@

- Upgraded api-version tag from 'package-2024-07-01' to 'package-2024-11-03'. Tag detail available at https://github.com/Azure/azure-rest-api-specs/blob/b09c9ec927456021dc549e111fa2cac3b4b00659/specification/compute/resource-manager/readme.md.
- Added new classes named `GalleryInVmAccessControlProfileCollection`, `ComputeGalleryValidationProfile`, `GalleryImageExecutedValidation`, `AdditionalReplicaSet`, `GallerySoftDeleted`, `GallerySoftDeletedResourceList`, `ComputeGalleryEndpointAccess`, `ComputeGalleryEndpointTypes`, and `ComputeGalleryPlatformAttribute`.
- Added a new property named `IsBlockedDeletionBeforeEndOfLife` to `GalleryImageVersionSafertyProfile` class.
- Added a new property named `IsBlockedDeletionBeforeEndOfLife` to `GalleryImageVersionSafetyProfile` class.
- Added a new property named `StartsAtVersion` to `GalleryImageFeature` class.
- Added a new property named `AllowUpdateImage` to `GalleryImageData` class.
- Added new properties named `ValidationsProfile` and `EnableRestore` to `GalleryImageVersionData` class.
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Version>1.10.0-beta.1</Version>
<Version>1.10.0</Version>
<!--The ApiCompatVersion is managed automatically and should not generally be modified manually.-->
<ApiCompatVersion>1.9.0</ApiCompatVersion>
<PackageId>Azure.ResourceManager.Compute</PackageId>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;
using System.ComponentModel;
using Azure.Core;
using Azure.ResourceManager.Compute.Models;
using Azure.ResourceManager.Models;

namespace Azure.ResourceManager.Compute
{
public partial class VirtualMachineScaleSetVmData : TrackedResourceData
{
/// <summary> Specifies whether the latest model has been applied to the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public bool? LatestModelApplied => Properties?.LatestModelApplied;
/// <summary> Azure VM unique ID. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public string VmId => Properties?.VmId;
/// <summary> The virtual machine instance view. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineScaleSetVmInstanceView InstanceView => Properties?.InstanceView;
/// <summary> Specifies the hardware settings for the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineHardwareProfile HardwareProfile
{
get => Properties?.HardwareProfile;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.HardwareProfile = value;
}
}
/// <summary> Specifies the resilient VM deletion status for the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ResilientVmDeletionStatus? ResilientVmDeletionStatus
{
get => Properties?.ResilientVmDeletionStatus;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.ResilientVmDeletionStatus = value;
}
}
/// <summary> Specifies the storage settings for the virtual machine disks. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineStorageProfile StorageProfile
{
get => Properties?.StorageProfile;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.StorageProfile = value;
}
}
/// <summary> Specifies additional capabilities enabled or disabled on the virtual machine in the scale set. For instance: whether the virtual machine has the capability to support attaching managed data disks with UltraSSD_LRS storage account type. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public AdditionalCapabilities AdditionalCapabilities
{
get => Properties?.AdditionalCapabilities;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.AdditionalCapabilities = value;
}
}
/// <summary> Specifies the operating system settings for the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineOSProfile OSProfile
{
get => Properties?.OSProfile;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.OSProfile = value;
}
}
/// <summary> Specifies the Security related profile settings for the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public SecurityProfile SecurityProfile
{
get => Properties?.SecurityProfile;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.SecurityProfile = value;
}
}
/// <summary> Specifies the network interfaces of the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineNetworkProfile NetworkProfile
{
get => Properties?.NetworkProfile;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.NetworkProfile = value;
}
}
/// <summary> The list of network configurations. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public IList<VirtualMachineScaleSetNetworkConfiguration> NetworkInterfaceConfigurations => Properties?.NetworkInterfaceConfigurations;

/// <summary> Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public BootDiagnostics BootDiagnostics
{
get => Properties?.BootDiagnostics;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.BootDiagnostics = value;
}
}

/// <summary> Gets or sets Id. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public ResourceIdentifier AvailabilitySetId
{
get => Properties?.AvailabilitySetId;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.AvailabilitySetId = value;
}
}

/// <summary> The provisioning state, which only appears in the response. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public string ProvisioningState => Properties?.ProvisioningState;
/// <summary> Specifies that the image or disk that is being used was licensed on-premises. &lt;br&gt;&lt;br&gt; Possible values for Windows Server operating system are: &lt;br&gt;&lt;br&gt; Windows_Client &lt;br&gt;&lt;br&gt; Windows_Server &lt;br&gt;&lt;br&gt; Possible values for Linux Server operating system are: &lt;br&gt;&lt;br&gt; RHEL_BYOS (for RHEL) &lt;br&gt;&lt;br&gt; SLES_BYOS (for SUSE) &lt;br&gt;&lt;br&gt; For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) &lt;br&gt;&lt;br&gt; [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) &lt;br&gt;&lt;br&gt; Minimum api-version: 2015-06-15. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public string LicenseType
{
get => Properties?.LicenseType;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.LicenseType = value;
}
}
/// <summary> Specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public string ModelDefinitionApplied => Properties?.ModelDefinitionApplied;
/// <summary> Specifies the protection policy of the virtual machine. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public VirtualMachineScaleSetVmProtectionPolicy ProtectionPolicy
{
get => Properties?.ProtectionPolicy;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.ProtectionPolicy = value;
}
}
/// <summary> UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public string UserData
{
get => Properties?.UserData;
set
{
if (Properties == null)
Properties = new VirtualMachineScaleSetVmProperties();
Properties.UserData = value;
}
}
/// <summary> Specifies the time at which the Virtual Machine resource was created. Minimum api-version: 2021-11-01. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public DateTimeOffset? TimeCreated => Properties?.TimeCreated;
}
}
Loading