-
Notifications
You must be signed in to change notification settings - Fork 5k
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
ArcturusZhang
merged 3 commits into
Azure:main
from
ArcturusZhang:enable-additionalproperties-for-vmssvm
Jul 1, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 54 additions & 1 deletion
55
sdk/compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.net8.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 54 additions & 1 deletion
55
...compute/Azure.ResourceManager.Compute/api/Azure.ResourceManager.Compute.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
sdk/compute/Azure.ResourceManager.Compute/src/Azure.ResourceManager.Compute.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 119 additions & 1 deletion
120
sdk/compute/Azure.ResourceManager.Compute/src/Customize/ArmComputeModelFactory.cs
Large diffs are not rendered by default.
Oops, something went wrong.
186 changes: 186 additions & 0 deletions
186
sdk/compute/Azure.ResourceManager.Compute/src/Customize/VirtualMachineScaleSetVmData.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see [Azure Hybrid Use Benefit for Windows Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing) <br><br> [Azure Hybrid Use Benefit for Linux Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br> 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; | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.