Partager via


OSProfileProvisioningData Class

Definition

Additional parameters for Reimaging Non-Ephemeral Virtual Machine.

public class OSProfileProvisioningData : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.OSProfileProvisioningData>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.OSProfileProvisioningData>
type OSProfileProvisioningData = class
    interface IJsonModel<OSProfileProvisioningData>
    interface IPersistableModel<OSProfileProvisioningData>
Public Class OSProfileProvisioningData
Implements IJsonModel(Of OSProfileProvisioningData), IPersistableModel(Of OSProfileProvisioningData)
Inheritance
OSProfileProvisioningData
Implements

Constructors

OSProfileProvisioningData()

Initializes a new instance of OSProfileProvisioningData.

Properties

AdminPassword

Specifies the password of the administrator account. <br><br> Minimum-length (Windows): 8 characters <br><br> Minimum-length (Linux): 6 characters <br><br> Max-length (Windows): 123 characters <br><br> Max-length (Linux): 72 characters <br><br> Complexity requirements: 3 out of 4 conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_]) <br><br> Disallowed values: "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!" <br><br> For resetting the password, see How to reset the Remote Desktop service or its login password in a Windows VM <br><br> For resetting root password, see Manage users, SSH, and check or repair disks on Azure Linux VMs using the VMAccess Extension.

CustomData

Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes. Note: Do not pass any secrets or passwords in customData property. This property cannot be updated after the VM is created. The property customData is passed to the VM to be saved as a file, for more information see Custom Data on Azure VMs. If using cloud-init for your Linux VM, see Using cloud-init to customize a Linux VM during creation.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<OSProfileProvisioningData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<OSProfileProvisioningData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<OSProfileProvisioningData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<OSProfileProvisioningData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<OSProfileProvisioningData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to