SqlVirtualMachineInner Class

public final class SqlVirtualMachineInner
extends Resource

A SQL virtual machine.

Constructor Summary

Constructor Description
SqlVirtualMachineInner()

Creates an instance of SqlVirtualMachineInner class.

Method Summary

Modifier and Type Method and Description
AssessmentSettings assessmentSettings()

Get the assessmentSettings property: SQL best practices Assessment Settings.

AutoBackupSettings autoBackupSettings()

Get the autoBackupSettings property: Auto backup settings for SQL Server.

AutoPatchingSettings autoPatchingSettings()

Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.

Boolean enableAutomaticUpgrade()

Get the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.

ResourceIdentity identity()

Get the identity property: Azure Active Directory identity of the server.

KeyVaultCredentialSettings keyVaultCredentialSettings()

Get the keyVaultCredentialSettings property: Key vault credential settings.

LeastPrivilegeMode leastPrivilegeMode()

Get the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.

String provisioningState()

Get the provisioningState property: Provisioning state to track the async operation status.

ServerConfigurationsManagementSettings serverConfigurationsManagementSettings()

Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.

String sqlImageOffer()

Get the sqlImageOffer property: SQL image offer.

SqlImageSku sqlImageSku()

Get the sqlImageSku property: SQL Server edition type.

SqlManagementMode sqlManagement()

Get the sqlManagement property: SQL Server Management type.

SqlServerLicenseType sqlServerLicenseType()

Get the sqlServerLicenseType property: SQL Server license type.

String sqlVirtualMachineGroupResourceId()

Get the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.

StorageConfigurationSettings storageConfigurationSettings()

Get the storageConfigurationSettings property: Storage Configuration Settings.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

TroubleshootingStatus troubleshootingStatus()

Get the troubleshootingStatus property: Troubleshooting status.

void validate()

Validates the instance.

String virtualMachineResourceId()

Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.

SqlVirtualMachineInner withAssessmentSettings(AssessmentSettings assessmentSettings)

Set the assessmentSettings property: SQL best practices Assessment Settings.

SqlVirtualMachineInner withAutoBackupSettings(AutoBackupSettings autoBackupSettings)

Set the autoBackupSettings property: Auto backup settings for SQL Server.

SqlVirtualMachineInner withAutoPatchingSettings(AutoPatchingSettings autoPatchingSettings)

Set the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.

SqlVirtualMachineInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)

Set the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.

SqlVirtualMachineInner withIdentity(ResourceIdentity identity)

Set the identity property: Azure Active Directory identity of the server.

SqlVirtualMachineInner withKeyVaultCredentialSettings(KeyVaultCredentialSettings keyVaultCredentialSettings)

Set the keyVaultCredentialSettings property: Key vault credential settings.

SqlVirtualMachineInner withLeastPrivilegeMode(LeastPrivilegeMode leastPrivilegeMode)

Set the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.

SqlVirtualMachineInner withLocation(String location)
SqlVirtualMachineInner withServerConfigurationsManagementSettings(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings)

Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.

SqlVirtualMachineInner withSqlImageOffer(String sqlImageOffer)

Set the sqlImageOffer property: SQL image offer.

SqlVirtualMachineInner withSqlImageSku(SqlImageSku sqlImageSku)

Set the sqlImageSku property: SQL Server edition type.

SqlVirtualMachineInner withSqlManagement(SqlManagementMode sqlManagement)

Set the sqlManagement property: SQL Server Management type.

SqlVirtualMachineInner withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType)

Set the sqlServerLicenseType property: SQL Server license type.

SqlVirtualMachineInner withSqlVirtualMachineGroupResourceId(String sqlVirtualMachineGroupResourceId)

Set the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.

SqlVirtualMachineInner withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings)

Set the storageConfigurationSettings property: Storage Configuration Settings.

SqlVirtualMachineInner withTags(Map<String,String> tags)
SqlVirtualMachineInner withVirtualMachineResourceId(String virtualMachineResourceId)

Set the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.

SqlVirtualMachineInner withWsfcDomainCredentials(WsfcDomainCredentials wsfcDomainCredentials)

Set the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

SqlVirtualMachineInner withWsfcStaticIp(String wsfcStaticIp)

Set the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

WsfcDomainCredentials wsfcDomainCredentials()

Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

String wsfcStaticIp()

Get the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

SqlVirtualMachineInner

public SqlVirtualMachineInner()

Creates an instance of SqlVirtualMachineInner class.

Method Details

assessmentSettings

public AssessmentSettings assessmentSettings()

Get the assessmentSettings property: SQL best practices Assessment Settings.

Returns:

the assessmentSettings value.

autoBackupSettings

public AutoBackupSettings autoBackupSettings()

Get the autoBackupSettings property: Auto backup settings for SQL Server.

Returns:

the autoBackupSettings value.

autoPatchingSettings

public AutoPatchingSettings autoPatchingSettings()

Get the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.

Returns:

the autoPatchingSettings value.

enableAutomaticUpgrade

public Boolean enableAutomaticUpgrade()

Get the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.

Returns:

the enableAutomaticUpgrade value.

identity

public ResourceIdentity identity()

Get the identity property: Azure Active Directory identity of the server.

Returns:

the identity value.

keyVaultCredentialSettings

public KeyVaultCredentialSettings keyVaultCredentialSettings()

Get the keyVaultCredentialSettings property: Key vault credential settings.

Returns:

the keyVaultCredentialSettings value.

leastPrivilegeMode

public LeastPrivilegeMode leastPrivilegeMode()

Get the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.

Returns:

the leastPrivilegeMode value.

provisioningState

public String provisioningState()

Get the provisioningState property: Provisioning state to track the async operation status.

Returns:

the provisioningState value.

serverConfigurationsManagementSettings

public ServerConfigurationsManagementSettings serverConfigurationsManagementSettings()

Get the serverConfigurationsManagementSettings property: SQL Server configuration management settings.

Returns:

the serverConfigurationsManagementSettings value.

sqlImageOffer

public String sqlImageOffer()

Get the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.

Returns:

the sqlImageOffer value.

sqlImageSku

public SqlImageSku sqlImageSku()

Get the sqlImageSku property: SQL Server edition type.

Returns:

the sqlImageSku value.

sqlManagement

public SqlManagementMode sqlManagement()

Get the sqlManagement property: SQL Server Management type.

Returns:

the sqlManagement value.

sqlServerLicenseType

public SqlServerLicenseType sqlServerLicenseType()

Get the sqlServerLicenseType property: SQL Server license type.

Returns:

the sqlServerLicenseType value.

sqlVirtualMachineGroupResourceId

public String sqlVirtualMachineGroupResourceId()

Get the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.

Returns:

the sqlVirtualMachineGroupResourceId value.

storageConfigurationSettings

public StorageConfigurationSettings storageConfigurationSettings()

Get the storageConfigurationSettings property: Storage Configuration Settings.

Returns:

the storageConfigurationSettings value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the resource.

Returns:

the systemData value.

troubleshootingStatus

public TroubleshootingStatus troubleshootingStatus()

Get the troubleshootingStatus property: Troubleshooting status.

Returns:

the troubleshootingStatus value.

validate

public void validate()

Validates the instance.

virtualMachineResourceId

public String virtualMachineResourceId()

Get the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.

Returns:

the virtualMachineResourceId value.

withAssessmentSettings

public SqlVirtualMachineInner withAssessmentSettings(AssessmentSettings assessmentSettings)

Set the assessmentSettings property: SQL best practices Assessment Settings.

Parameters:

assessmentSettings - the assessmentSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withAutoBackupSettings

public SqlVirtualMachineInner withAutoBackupSettings(AutoBackupSettings autoBackupSettings)

Set the autoBackupSettings property: Auto backup settings for SQL Server.

Parameters:

autoBackupSettings - the autoBackupSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withAutoPatchingSettings

public SqlVirtualMachineInner withAutoPatchingSettings(AutoPatchingSettings autoPatchingSettings)

Set the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.

Parameters:

autoPatchingSettings - the autoPatchingSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withEnableAutomaticUpgrade

public SqlVirtualMachineInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)

Set the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.

Parameters:

enableAutomaticUpgrade - the enableAutomaticUpgrade value to set.

Returns:

the SqlVirtualMachineInner object itself.

withIdentity

public SqlVirtualMachineInner withIdentity(ResourceIdentity identity)

Set the identity property: Azure Active Directory identity of the server.

Parameters:

identity - the identity value to set.

Returns:

the SqlVirtualMachineInner object itself.

withKeyVaultCredentialSettings

public SqlVirtualMachineInner withKeyVaultCredentialSettings(KeyVaultCredentialSettings keyVaultCredentialSettings)

Set the keyVaultCredentialSettings property: Key vault credential settings.

Parameters:

keyVaultCredentialSettings - the keyVaultCredentialSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withLeastPrivilegeMode

public SqlVirtualMachineInner withLeastPrivilegeMode(LeastPrivilegeMode leastPrivilegeMode)

Set the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.

Parameters:

leastPrivilegeMode - the leastPrivilegeMode value to set.

Returns:

the SqlVirtualMachineInner object itself.

withLocation

public SqlVirtualMachineInner withLocation(String location)

Overrides:

SqlVirtualMachineInner.withLocation(String location)

Parameters:

location

withServerConfigurationsManagementSettings

public SqlVirtualMachineInner withServerConfigurationsManagementSettings(ServerConfigurationsManagementSettings serverConfigurationsManagementSettings)

Set the serverConfigurationsManagementSettings property: SQL Server configuration management settings.

Parameters:

serverConfigurationsManagementSettings - the serverConfigurationsManagementSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withSqlImageOffer

public SqlVirtualMachineInner withSqlImageOffer(String sqlImageOffer)

Set the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.

Parameters:

sqlImageOffer - the sqlImageOffer value to set.

Returns:

the SqlVirtualMachineInner object itself.

withSqlImageSku

public SqlVirtualMachineInner withSqlImageSku(SqlImageSku sqlImageSku)

Set the sqlImageSku property: SQL Server edition type.

Parameters:

sqlImageSku - the sqlImageSku value to set.

Returns:

the SqlVirtualMachineInner object itself.

withSqlManagement

public SqlVirtualMachineInner withSqlManagement(SqlManagementMode sqlManagement)

Set the sqlManagement property: SQL Server Management type.

Parameters:

sqlManagement - the sqlManagement value to set.

Returns:

the SqlVirtualMachineInner object itself.

withSqlServerLicenseType

public SqlVirtualMachineInner withSqlServerLicenseType(SqlServerLicenseType sqlServerLicenseType)

Set the sqlServerLicenseType property: SQL Server license type.

Parameters:

sqlServerLicenseType - the sqlServerLicenseType value to set.

Returns:

the SqlVirtualMachineInner object itself.

withSqlVirtualMachineGroupResourceId

public SqlVirtualMachineInner withSqlVirtualMachineGroupResourceId(String sqlVirtualMachineGroupResourceId)

Set the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.

Parameters:

sqlVirtualMachineGroupResourceId - the sqlVirtualMachineGroupResourceId value to set.

Returns:

the SqlVirtualMachineInner object itself.

withStorageConfigurationSettings

public SqlVirtualMachineInner withStorageConfigurationSettings(StorageConfigurationSettings storageConfigurationSettings)

Set the storageConfigurationSettings property: Storage Configuration Settings.

Parameters:

storageConfigurationSettings - the storageConfigurationSettings value to set.

Returns:

the SqlVirtualMachineInner object itself.

withTags

public SqlVirtualMachineInner withTags(Map tags)

Overrides:

SqlVirtualMachineInner.withTags(Map<String,String> tags)

Parameters:

tags

withVirtualMachineResourceId

public SqlVirtualMachineInner withVirtualMachineResourceId(String virtualMachineResourceId)

Set the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.

Parameters:

virtualMachineResourceId - the virtualMachineResourceId value to set.

Returns:

the SqlVirtualMachineInner object itself.

withWsfcDomainCredentials

public SqlVirtualMachineInner withWsfcDomainCredentials(WsfcDomainCredentials wsfcDomainCredentials)

Set the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

Parameters:

wsfcDomainCredentials - the wsfcDomainCredentials value to set.

Returns:

the SqlVirtualMachineInner object itself.

withWsfcStaticIp

public SqlVirtualMachineInner withWsfcStaticIp(String wsfcStaticIp)

Set the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

Parameters:

wsfcStaticIp - the wsfcStaticIp value to set.

Returns:

the SqlVirtualMachineInner object itself.

wsfcDomainCredentials

public WsfcDomainCredentials wsfcDomainCredentials()

Get the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

Returns:

the wsfcDomainCredentials value.

wsfcStaticIp

public String wsfcStaticIp()

Get the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.

Returns:

the wsfcStaticIp value.

Applies to