Поделиться через


NetworkFunctionUserConfigurationOsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.hybridnetwork.models.NetworkFunctionUserConfigurationOsProfile

public final class NetworkFunctionUserConfigurationOsProfile

Specifies the operating system settings for the role instance.

Constructor Summary

Constructor Description
NetworkFunctionUserConfigurationOsProfile()

Creates an instance of NetworkFunctionUserConfigurationOsProfile class.

Method Summary

Modifier and Type Method and Description
String customData()

Get the customData property: Specifies a base-64 encoded string of custom data.

void validate()

Validates the instance.

NetworkFunctionUserConfigurationOsProfile withCustomData(String customData)

Set the customData property: Specifies a base-64 encoded string of custom data.

Methods inherited from java.lang.Object

Constructor Details

NetworkFunctionUserConfigurationOsProfile

public NetworkFunctionUserConfigurationOsProfile()

Creates an instance of NetworkFunctionUserConfigurationOsProfile class.

Method Details

customData

public String customData()

Get the customData property: 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.

customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).

Returns:

the customData value.

validate

public void validate()

Validates the instance.

withCustomData

public NetworkFunctionUserConfigurationOsProfile withCustomData(String customData)

Set the customData property: 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.

customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)

For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).

Parameters:

customData - the customData value to set.

Returns:

the NetworkFunctionUserConfigurationOsProfile object itself.

Applies to