Interface SqlVirtualMachine
public interface SqlVirtualMachine
An immutable client-side representation of SqlVirtualMachine.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the SqlVirtualMachine definition.static interface
The SqlVirtualMachine definition stages.static interface
The template for SqlVirtualMachine update.static interface
The SqlVirtualMachine update stages. -
Method Summary
Modifier and TypeMethodDescriptionGets the assessmentSettings property: Assessment Settings.Gets the autoBackupSettings property: Auto backup settings for SQL Server.Gets the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.Gets the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.id()
Gets the id property: Fully qualified resource Id for the resource.identity()
Gets the identity property: Azure Active Directory identity of the server.Gets the inner com.azure.resourcemanager.sqlvirtualmachine.fluent.models.SqlVirtualMachineInner object.Gets the keyVaultCredentialSettings property: Key vault credential settings.Gets the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.Gets the provisioningState property: Provisioning state to track the async operation status.void
redeploy()
Uninstalls and reinstalls the SQL Iaas Extension.void
redeploy
(com.azure.core.util.Context context) Uninstalls and reinstalls the SQL Iaas Extension.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.Gets the serverConfigurationsManagementSettings property: SQL Server configuration management settings.Gets the sqlImageOffer property: SQL image offer.Gets the sqlImageSku property: SQL Server edition type.Gets the sqlManagement property: SQL Server Management type.Gets the sqlServerLicenseType property: SQL Server license type.Gets the sqlVirtualMachineGroupResourceId property: ARM resource id of the SQL virtual machine group this SQL virtual machine is or will be part of.void
Starts Assessment on SQL virtual machine.void
startAssessment
(com.azure.core.util.Context context) Starts Assessment on SQL virtual machine.Gets the storageConfigurationSettings property: Storage Configuration Settings.com.azure.core.management.SystemData
Gets the systemData property: Metadata pertaining to creation and last modification of the resource.tags()
Gets the tags property: Resource tags.type()
Gets the type property: The type of the resource.update()
Begins update for the SqlVirtualMachine resource.Gets the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.Gets the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.Gets the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
identity
ResourceIdentity identity()Gets the identity property: Azure Active Directory identity of the server.- Returns:
- the identity value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
virtualMachineResourceId
String virtualMachineResourceId()Gets the virtualMachineResourceId property: ARM Resource id of underlying virtual machine created from SQL marketplace image.- Returns:
- the virtualMachineResourceId value.
-
provisioningState
String provisioningState()Gets the provisioningState property: Provisioning state to track the async operation status.- Returns:
- the provisioningState value.
-
sqlImageOffer
String sqlImageOffer()Gets the sqlImageOffer property: SQL image offer. Examples include SQL2016-WS2016, SQL2017-WS2016.- Returns:
- the sqlImageOffer value.
-
sqlServerLicenseType
SqlServerLicenseType sqlServerLicenseType()Gets the sqlServerLicenseType property: SQL Server license type.- Returns:
- the sqlServerLicenseType value.
-
sqlManagement
SqlManagementMode sqlManagement()Gets the sqlManagement property: SQL Server Management type.- Returns:
- the sqlManagement value.
-
leastPrivilegeMode
LeastPrivilegeMode leastPrivilegeMode()Gets the leastPrivilegeMode property: SQL IaaS Agent least privilege mode.- Returns:
- the leastPrivilegeMode value.
-
sqlImageSku
SqlImageSku sqlImageSku()Gets the sqlImageSku property: SQL Server edition type.- Returns:
- the sqlImageSku value.
-
sqlVirtualMachineGroupResourceId
String sqlVirtualMachineGroupResourceId()Gets 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.
-
wsfcDomainCredentials
WsfcDomainCredentials wsfcDomainCredentials()Gets the wsfcDomainCredentials property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.- Returns:
- the wsfcDomainCredentials value.
-
wsfcStaticIp
String wsfcStaticIp()Gets the wsfcStaticIp property: Domain credentials for setting up Windows Server Failover Cluster for SQL availability group.- Returns:
- the wsfcStaticIp value.
-
autoPatchingSettings
AutoPatchingSettings autoPatchingSettings()Gets the autoPatchingSettings property: Auto patching settings for applying critical security updates to SQL virtual machine.- Returns:
- the autoPatchingSettings value.
-
autoBackupSettings
AutoBackupSettings autoBackupSettings()Gets the autoBackupSettings property: Auto backup settings for SQL Server.- Returns:
- the autoBackupSettings value.
-
keyVaultCredentialSettings
KeyVaultCredentialSettings keyVaultCredentialSettings()Gets the keyVaultCredentialSettings property: Key vault credential settings.- Returns:
- the keyVaultCredentialSettings value.
-
serverConfigurationsManagementSettings
ServerConfigurationsManagementSettings serverConfigurationsManagementSettings()Gets the serverConfigurationsManagementSettings property: SQL Server configuration management settings.- Returns:
- the serverConfigurationsManagementSettings value.
-
storageConfigurationSettings
StorageConfigurationSettings storageConfigurationSettings()Gets the storageConfigurationSettings property: Storage Configuration Settings.- Returns:
- the storageConfigurationSettings value.
-
assessmentSettings
AssessmentSettings assessmentSettings()Gets the assessmentSettings property: Assessment Settings.- Returns:
- the assessmentSettings value.
-
enableAutomaticUpgrade
Boolean enableAutomaticUpgrade()Gets the enableAutomaticUpgrade property: Enable automatic upgrade of Sql IaaS extension Agent.- Returns:
- the enableAutomaticUpgrade value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
SqlVirtualMachineInner innerModel()Gets the inner com.azure.resourcemanager.sqlvirtualmachine.fluent.models.SqlVirtualMachineInner object.- Returns:
- the inner object.
-
update
SqlVirtualMachine.Update update()Begins update for the SqlVirtualMachine resource.- Returns:
- the stage of resource update.
-
refresh
SqlVirtualMachine refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-
startAssessment
void startAssessment()Starts Assessment on SQL virtual machine.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
startAssessment
void startAssessment(com.azure.core.util.Context context) Starts Assessment on SQL virtual machine.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
void redeploy()Uninstalls and reinstalls the SQL Iaas Extension.- Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
void redeploy(com.azure.core.util.Context context) Uninstalls and reinstalls the SQL Iaas Extension.- Parameters:
context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-