ManagedClusterWindowsProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile

Implements

public final class ManagedClusterWindowsProfile
implements JsonSerializable<ManagedClusterWindowsProfile>

Profile for Windows VMs in the managed cluster.

Constructor Summary

Constructor Description
ManagedClusterWindowsProfile()

Creates an instance of ManagedClusterWindowsProfile class.

Method Summary

Modifier and Type Method and Description
String adminPassword()

Get the adminPassword property: Specifies the password of the administrator account.

String adminUsername()

Get the adminUsername property: Specifies the name of the administrator account.

Boolean enableCsiProxy()

Get the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).

static ManagedClusterWindowsProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterWindowsProfile from the JsonReader.

WindowsGmsaProfile gmsaProfile()

Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.

LicenseType licenseType()

Get the licenseType property: The license type to use for Windows VMs.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterWindowsProfile withAdminPassword(String adminPassword)

Set the adminPassword property: Specifies the password of the administrator account.

ManagedClusterWindowsProfile withAdminUsername(String adminUsername)

Set the adminUsername property: Specifies the name of the administrator account.

ManagedClusterWindowsProfile withEnableCsiProxy(Boolean enableCsiProxy)

Set the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).

ManagedClusterWindowsProfile withGmsaProfile(WindowsGmsaProfile gmsaProfile)

Set the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.

ManagedClusterWindowsProfile withLicenseType(LicenseType licenseType)

Set the licenseType property: The license type to use for Windows VMs.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterWindowsProfile

public ManagedClusterWindowsProfile()

Creates an instance of ManagedClusterWindowsProfile class.

Method Details

adminPassword

public String adminPassword()

Get the adminPassword property: Specifies the password of the administrator account.

**Minimum-length:** 8 characters

**Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".

Returns:

the adminPassword value.

adminUsername

public String adminUsername()

Get the adminUsername property: Specifies the name of the administrator account.

**Restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length:** 1 character

**Max-length:** 20 characters.

Returns:

the adminUsername value.

enableCsiProxy

public Boolean enableCsiProxy()

Get the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).

Returns:

the enableCsiProxy value.

fromJson

public static ManagedClusterWindowsProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterWindowsProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedClusterWindowsProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

gmsaProfile

public WindowsGmsaProfile gmsaProfile()

Get the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.

Returns:

the gmsaProfile value.

licenseType

public LicenseType licenseType()

Get the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.

Returns:

the licenseType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminPassword

public ManagedClusterWindowsProfile withAdminPassword(String adminPassword)

Set the adminPassword property: Specifies the password of the administrator account.

**Minimum-length:** 8 characters

**Max-length:** 123 characters

**Complexity requirements:** 3 out of 4 conditions below need to be fulfilled
Has lower characters
Has upper characters
Has a digit
Has a special character (Regex match [\W_])

**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!", "Password1", "Password22", "iloveyou!".

Parameters:

adminPassword - the adminPassword value to set.

Returns:

the ManagedClusterWindowsProfile object itself.

withAdminUsername

public ManagedClusterWindowsProfile withAdminUsername(String adminUsername)

Set the adminUsername property: Specifies the name of the administrator account.

**Restriction:** Cannot end in "."

**Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".

**Minimum-length:** 1 character

**Max-length:** 20 characters.

Parameters:

adminUsername - the adminUsername value to set.

Returns:

the ManagedClusterWindowsProfile object itself.

withEnableCsiProxy

public ManagedClusterWindowsProfile withEnableCsiProxy(Boolean enableCsiProxy)

Set the enableCsiProxy property: For more details on CSI proxy, see the [CSI proxy GitHub repo](https://github.com/kubernetes-csi/csi-proxy).

Parameters:

enableCsiProxy - the enableCsiProxy value to set.

Returns:

the ManagedClusterWindowsProfile object itself.

withGmsaProfile

public ManagedClusterWindowsProfile withGmsaProfile(WindowsGmsaProfile gmsaProfile)

Set the gmsaProfile property: The Windows gMSA Profile in the Managed Cluster.

Parameters:

gmsaProfile - the gmsaProfile value to set.

Returns:

the ManagedClusterWindowsProfile object itself.

withLicenseType

public ManagedClusterWindowsProfile withLicenseType(LicenseType licenseType)

Set the licenseType property: The license type to use for Windows VMs. See [Azure Hybrid User Benefits](https://azure.microsoft.com/pricing/hybrid-benefit/faq/) for more details.

Parameters:

licenseType - the licenseType value to set.

Returns:

the ManagedClusterWindowsProfile object itself.

Applies to