public interface VirtualMachine extends com.microsoft.azure.management.resources.fluentcore.arm.models.GroupableResource, com.microsoft.azure.management.resources.fluentcore.model.Refreshable<VirtualMachine>, com.microsoft.azure.management.resources.fluentcore.model.Wrapper<com.microsoft.azure.management.compute.implementation.VirtualMachineInner>, com.microsoft.azure.management.resources.fluentcore.model.Updatable<VirtualMachine.Update>, com.microsoft.azure.management.network.model.HasNetworkInterfaces
| Modifier and Type | Interface and Description |
|---|---|
static interface |
VirtualMachine.Definition
The entirety of the virtual machine definition.
|
static interface |
VirtualMachine.DefinitionStages
Grouping of virtual machine definition stages.
|
static interface |
VirtualMachine.Update
The template for an update operation, containing all the settings that
can be modified.
|
static interface |
VirtualMachine.UpdateStages
Grouping of virtual machine update stages.
|
com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithRegion<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.DefinitionWithTags<T>, com.microsoft.azure.management.resources.fluentcore.arm.models.Resource.UpdateWithTags<T>| Modifier and Type | Method and Description |
|---|---|
String |
availabilitySetId()
Returns id to the availability set this virtual machine associated with.
|
com.microsoft.azure.PagedList<VirtualMachineSize> |
availableSizes()
List of all available virtual machine sizes this virtual machine can resized to.
|
String |
capture(String containerName,
boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM and returns template as json
string that can be used to create similar VMs.
|
String |
computerName() |
List<VirtualMachineDataDisk> |
dataDisks() |
void |
deallocate()
Shuts down the Virtual Machine and releases the compute resources.
|
DiagnosticsProfile |
diagnosticsProfile()
Returns the diagnostics profile of an Azure virtual machine.
|
Map<String,VirtualMachineExtension> |
extensions() |
void |
generalize()
Generalize the Virtual Machine.
|
com.microsoft.azure.management.network.PublicIpAddress |
getPrimaryPublicIpAddress()
Gets the public IP address associated with this virtual machine's primary network interface.
|
String |
getPrimaryPublicIpAddressId() |
VirtualMachineInstanceView |
instanceView()
Get the virtual machine instance view.
|
String |
licenseType() |
CachingTypes |
osDiskCachingType() |
int |
osDiskSize() |
String |
osDiskVhdUri() |
OSProfile |
osProfile()
Gets the operating system profile of an Azure virtual machine.
|
OperatingSystemTypes |
osType() |
Plan |
plan() |
void |
powerOff()
Power off (stop) the virtual machine.
|
PowerState |
powerState() |
String |
provisioningState() |
void |
redeploy()
Redeploy the virtual machine.
|
VirtualMachineInstanceView |
refreshInstanceView()
Refreshes the virtual machine instance view to sync with Azure.
|
void |
restart()
Restart the virtual machine.
|
VirtualMachineSizeTypes |
size() |
void |
start()
Start the virtual machine.
|
StorageProfile |
storageProfile()
Returns the storage profile of an Azure virtual machine.
|
String |
vmId() |
resourceGroupNameid, name, region, regionName, tags, typekeyrefreshinner, setInnervoid deallocate()
You are not billed for the compute resources that this Virtual Machine uses
void generalize()
void powerOff()
You will be billed for the compute resources that this Virtual Machine uses.
void restart()
void start()
void redeploy()
com.microsoft.azure.PagedList<VirtualMachineSize> availableSizes()
String capture(String containerName, boolean overwriteVhd)
containerName - destination container name to store the captured VhdoverwriteVhd - whether to overwrites destination vhd if it existsVirtualMachineInstanceView refreshInstanceView()
this will caches the instance view which can be later retrieved using instanceView().
String computerName()
VirtualMachineSizeTypes size()
OperatingSystemTypes osType()
String osDiskVhdUri()
CachingTypes osDiskCachingType()
int osDiskSize()
List<VirtualMachineDataDisk> dataDisks()
com.microsoft.azure.management.network.PublicIpAddress getPrimaryPublicIpAddress()
note that this method makes a rest API call to fetch the resource.
String getPrimaryPublicIpAddressId()
String availabilitySetId()
Having a set of virtual machines in an availability set ensures that during maintenance event at least one virtual machine will be available.
String provisioningState()
String licenseType()
Map<String,VirtualMachineExtension> extensions()
Plan plan()
StorageProfile storageProfile()
The storage profile contains information such as the details of the VM image or user image from which this virtual machine is created, the Azure storage account where the operating system disk is stored, details of the data disk attached to the virtual machine.
OSProfile osProfile()
DiagnosticsProfile diagnosticsProfile()
Enabling diagnostic features in a virtual machine enable you to easily diagnose and recover virtual machine from boot failures.
String vmId()
PowerState powerState()
VirtualMachineInstanceView instanceView()
this method returns the cached instance view, to refresh the cache call refreshInstanceView().
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/