Nested Class Summary
Nested Classes
static interface
The template for an update operation, containing all the settings that can be modified.
Method Summary
All Methods Instance Methods Abstract Methods
boolean
void
Shuts down the virtual machine instance and releases the associated compute resources.
rx.Completable
Shuts down the virtual machine instance and releases the associated compute resources.
void
Deletes the virtual machine instance.
rx.Completable
Deletes the virtual machine instance.
Gets a network interface associated with this virtual machine instance.
Gets the instance view of the virtual machine instance.
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
int
void
Stops the virtual machine instance.
rx.Completable
Stops the virtual machine instance.
Refreshes the instance view.
Refreshes the instance view.
void
Updates the version of the installed operating system in the virtual machine instance.
rx.Completable
Updates the version of the installed operating system in the virtual machine instance.
void
Restarts the virtual machine instance.
rx.Completable
Restarts the virtual machine instance.
void
Starts the virtual machine instance.
rx.Completable
Starts the virtual machine instance.
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent
parent
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Updatable
update
Method Details
instanceId
Returns:
the instance ID assigned to this virtual machine instance
sku
Returns:
the SKU of the virtual machine instance, this will be SKU used while creating the parent
virtual machine scale set
size
Returns:
virtual machine instance size
isLatestScaleSetUpdateApplied
boolean isLatestScaleSetUpdateApplied ()
Returns:
true if the latest scale set model changes are applied to the virtual machine instance
isOSBasedOnCustomImage
boolean isOSBasedOnCustomImage ()
Returns:
true if the operating system of the virtual machine instance is based on custom image
isOSBasedOnStoredImage
boolean isOSBasedOnStoredImage ()
Returns:
true if the operating system of the virtual machine instance is based on stored image
getOSCustomImage
Returns:
the custom image that the virtual machine instance operating system is based on, null be
returned otherwise
storedImageUnmanagedVhdUri
String storedImageUnmanagedVhdUri ()
Returns:
VHD URI of the custom image that the virtual machine instance operating system is based on,
null will be returned if the operating system is based on platform image
osDiskName
Returns:
the name of the operating system disk
osUnmanagedDiskVhdUri
String osUnmanagedDiskVhdUri ()
Returns:
VHD URI to the operating system disk
osDiskId
Returns:
resource ID of the managed disk backing OS disk
unmanagedDataDisks
Returns:
the unmanaged data disks associated with this virtual machine instance, indexed by LUN
dataDisks
Returns:
the managed data disks associated with this virtual machine instance, indexed by LUN
osDiskCachingType
Returns:
the caching type of the operating system disk
osDiskSizeInGB
int osDiskSizeInGB ()
Returns:
the size of the operating system disk
computerName
Returns:
the virtual machine instance computer name with the VM scale set prefix.
administratorUserName
String administratorUserName ()
Returns:
the name of the admin user
osType
Returns:
the operating system type
isLinuxPasswordAuthenticationEnabled
boolean isLinuxPasswordAuthenticationEnabled ()
Returns:
true if this is a Linux virtual machine and password based login is enabled, false otherwise
isWindowsVMAgentProvisioned
boolean isWindowsVMAgentProvisioned ()
Returns:
true if this is a Windows virtual machine and VM agent is provisioned, false otherwise
isWindowsAutoUpdateEnabled
boolean isWindowsAutoUpdateEnabled ()
Returns:
true if this is a Windows virtual machine and automatic update is turned on, false otherwise
windowsTimeZone
Returns:
the time zone of the Windows virtual machine
bootDiagnosticEnabled
boolean bootDiagnosticEnabled ()
Returns:
true if the boot diagnostic is enabled, false otherwise
bootDiagnosticStorageAccountUri
String bootDiagnosticStorageAccountUri ()
Returns:
the URI to the storage account storing boot diagnostics log
availabilitySetId
Returns:
the resource ID of the availability set that this virtual machine instance belongs to
networkInterfaceIds
Returns:
the list of resource ID of network interface associated with the virtual machine instance
primaryNetworkInterfaceId
String primaryNetworkInterfaceId ()
Returns:
resource ID of primary network interface associated with virtual machine instance
extensions
Returns:
the extensions associated with the virtual machine instance, indexed by name
storageProfile
Returns:
the storage profile of the virtual machine instance
osProfile
Returns:
the operating system profile of an virtual machine instance
diagnosticsProfile
Returns:
the diagnostics profile of the virtual machine instance
isManagedDiskEnabled
boolean isManagedDiskEnabled ()
Returns:
true if managed disk is used for the virtual machine's disks (os, data)
reimage
void reimage ()
Updates the version of the installed operating system in the virtual machine instance.
reimageAsync
rx.Completable reimageAsync ()
Updates the version of the installed operating system in the virtual machine instance.
Returns:
a representation of the deferred computation of this call
deallocate
void deallocate ()
Shuts down the virtual machine instance and releases the associated compute resources.
deallocateAsync
rx.Completable deallocateAsync ()
Shuts down the virtual machine instance and releases the associated compute resources.
Returns:
a representation of the deferred computation of this call
powerOff
void powerOff ()
Stops the virtual machine instance.
powerOffAsync
rx.Completable powerOffAsync ()
Stops the virtual machine instance.
Returns:
a representation of the deferred computation of this call
start
void start ()
Starts the virtual machine instance.
startAsync
rx.Completable startAsync ()
Starts the virtual machine instance.
Returns:
a representation of the deferred computation of this call
restart
void restart ()
Restarts the virtual machine instance.
restartAsync
rx.Completable restartAsync ()
Restarts the virtual machine instance.
Returns:
a representation of the deferred computation of this call
delete
void delete ()
Deletes the virtual machine instance.
deleteAsync
rx.Completable deleteAsync ()
Deletes the virtual machine instance.
Returns:
a representation of the deferred computation of this call
instanceView
Gets the instance view of the virtual machine instance.
To get the latest instance view use refreshInstanceView()
.
Returns:
the instance view
refreshInstanceView
Refreshes the instance view.
Returns:
the instance view
refreshInstanceViewAsync
Refreshes the instance view.
Returns:
an observable that emits the instance view of the virtual machine instance.
powerState
Returns:
the power state of the virtual machine instance
getNetworkInterface
Gets a network interface associated with this virtual machine instance.
Parameters:
name
- the name of the network interface
Returns:
the network interface
listNetworkInterfaces
Returns:
the network interfaces associated with this virtual machine instance.
modelDefinitionApplied
String modelDefinitionApplied ()
Returns:
Get specifies whether the model applied to the virtual machine is the model of the virtual machine scale set or the customized model for the virtual machine.
protectionPolicy
Returns:
The specific protection policy for the vm.
networkProfileConfiguration
Returns:
The network profile config for the vm.