public interface VirtualMachines extends com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing<VirtualMachine>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByGroup<VirtualMachine>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByGroup<VirtualMachine>, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById<VirtualMachine>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating<VirtualMachine.DefinitionStages.Blank>, com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeleting, com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByGroup, com.microsoft.azure.management.resources.fluentcore.collection.SupportsBatchCreation<VirtualMachine>
| Modifier and Type | Method and Description |
|---|---|
String |
capture(String groupName,
String name,
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.
|
void |
deallocate(String groupName,
String name)
Shuts down the virtual machine and releases the compute resources.
|
void |
generalize(String groupName,
String name)
Generalize the virtual machine.
|
void |
powerOff(String groupName,
String name)
Power off (stop) a virtual machine.
|
void |
redeploy(String groupName,
String name)
Redeploy a virtual machine.
|
void |
restart(String groupName,
String name)
Restart a virtual machine.
|
VirtualMachineSizes |
sizes() |
void |
start(String groupName,
String name)
Start a virtual machine.
|
listlistByGroupgetByGroupgetByIddefinedelete, deleteAsync, deleteAsyncVirtualMachineSizes sizes()
void deallocate(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine namevoid generalize(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine namevoid powerOff(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine namevoid restart(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine namevoid start(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine namevoid redeploy(String groupName, String name)
groupName - the name of the resource group the virtual machine is inname - the virtual machine nameString capture(String groupName, String name, String containerName, boolean overwriteVhd)
groupName - the resource group namename - the virtual machine namecontainerName - destination container name to store the captured VHDoverwriteVhd - whether to overwrites destination VHD if it exists/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/