public interface VirtualMachines extends SupportsListing<VirtualMachine>, SupportsListingByResourceGroup<VirtualMachine>, SupportsGettingByResourceGroup<VirtualMachine>, SupportsGettingById<VirtualMachine>, SupportsCreating<VirtualMachine.DefinitionStages.Blank>, SupportsDeletingById, SupportsDeletingByResourceGroup, SupportsBatchCreation<VirtualMachine>, SupportsBatchDeletion, HasManager<com.microsoft.azure.management.compute.implementation.ComputeManager>, HasInner<com.microsoft.azure.management.compute.implementation.VirtualMachinesInner>
Modifier and Type | Method and Description |
---|---|
String |
capture(String groupName,
String name,
String containerName,
String vhdPrefix,
boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM and returns template as a JSON
string that can be used to create similar VMs.
|
rx.Observable<String> |
captureAsync(String groupName,
String name,
String containerName,
String vhdPrefix,
boolean overwriteVhd)
Captures the virtual machine by copying virtual hard disks of the VM asynchronously.
|
ServiceFuture<String> |
captureAsync(String groupName,
String name,
String containerName,
String vhdPrefix,
boolean overwriteVhd,
ServiceCallback<String> callback)
Captures the virtual machine by copying virtual hard disks of the VM asynchronously.
|
void |
deallocate(String groupName,
String name)
Shuts down the virtual machine and releases the compute resources.
|
rx.Completable |
deallocateAsync(String groupName,
String name)
Shuts down the virtual machine and releases the compute resources asynchronously.
|
ServiceFuture<Void> |
deallocateAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Shuts down the virtual machine and releases the compute resources asynchronously.
|
void |
generalize(String groupName,
String name)
Generalizes the virtual machine.
|
rx.Completable |
generalizeAsync(String groupName,
String name)
Generalizes the virtual machine asynchronously.
|
ServiceFuture<Void> |
generalizeAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Generalizes the virtual machine asynchronously.
|
void |
migrateToManaged(String groupName,
String name)
Migrates the virtual machine with unmanaged disks to use managed disks.
|
rx.Completable |
migrateToManagedAsync(String groupName,
String name)
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.
|
ServiceFuture<Void> |
migrateToManagedAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.
|
void |
powerOff(String groupName,
String name)
Powers off (stops) a virtual machine.
|
rx.Completable |
powerOffAsync(String groupName,
String name)
Powers off (stops) the virtual machine asynchronously.
|
ServiceFuture<Void> |
powerOffAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Powers off (stop) the virtual machine asynchronously.
|
void |
redeploy(String groupName,
String name)
Redeploys a virtual machine.
|
rx.Completable |
redeployAsync(String groupName,
String name)
Redeploys the virtual machine asynchronously.
|
ServiceFuture<Void> |
redeployAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Redeploys the virtual machine asynchronously.
|
void |
restart(String groupName,
String name)
Restarts a virtual machine.
|
rx.Completable |
restartAsync(String groupName,
String name)
Restarts the virtual machine asynchronously.
|
ServiceFuture<Void> |
restartAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Restarts the virtual machine asynchronously.
|
RunCommandResult |
runCommand(String groupName,
String name,
RunCommandInput inputCommand)
Run commands in a virtual machine.
|
rx.Observable<RunCommandResult> |
runCommandAsync(String groupName,
String name,
RunCommandInput inputCommand)
Run commands in a virtual machine asynchronously.
|
RunCommandResult |
runPowerShellScript(String groupName,
String name,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine.
|
rx.Observable<RunCommandResult> |
runPowerShellScriptAsync(String groupName,
String name,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine asynchronously.
|
RunCommandResult |
runShellScript(String groupName,
String name,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine.
|
rx.Observable<RunCommandResult> |
runShellScriptAsync(String groupName,
String name,
List<String> scriptLines,
List<RunCommandInputParameter> scriptParameters)
Run shell script in a virtual machine asynchronously.
|
VirtualMachineSizes |
sizes() |
void |
start(String groupName,
String name)
Starts a virtual machine.
|
rx.Completable |
startAsync(String groupName,
String name)
Starts the virtual machine asynchronously.
|
ServiceFuture<Void> |
startAsync(String groupName,
String name,
ServiceCallback<Void> callback)
Starts the virtual machine asynchronously.
|
list, listAsync
listByResourceGroup, listByResourceGroupAsync
getByResourceGroup, getByResourceGroupAsync, getByResourceGroupAsync
getById, getByIdAsync, getByIdAsync
define
deleteById, deleteByIdAsync, deleteByIdAsync
deleteByResourceGroup, deleteByResourceGroupAsync, deleteByResourceGroupAsync
create, create, createAsync, createAsync, createAsync, createAsync
deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync
manager
VirtualMachineSizes sizes()
void deallocate(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable deallocateAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> deallocateAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failurevoid generalize(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable generalizeAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> generalizeAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failurevoid powerOff(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable powerOffAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> powerOffAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failurevoid restart(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable restartAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> restartAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failurevoid start(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable startAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> startAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failurevoid redeploy(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namerx.Completable redeployAsync(String groupName, String name)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine nameServiceFuture<Void> redeployAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the name of the resource group the virtual machine is inname
- the virtual machine namecallback
- the callback to call on success or failureString capture(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)
groupName
- the resource group namename
- the virtual machine namecontainerName
- destination container name to store the captured VHDvhdPrefix
- the prefix for the VHD holding captured imageoverwriteVhd
- whether to overwrites destination VHD if it existsrx.Observable<String> captureAsync(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd)
groupName
- the resource group namename
- the virtual machine namecontainerName
- destination container name to store the captured VHDvhdPrefix
- the prefix for the VHD holding captured imageoverwriteVhd
- whether to overwrites destination VHD if it existsServiceFuture<String> captureAsync(String groupName, String name, String containerName, String vhdPrefix, boolean overwriteVhd, ServiceCallback<String> callback)
groupName
- the resource group namename
- the virtual machine namecontainerName
- destination container name to store the captured VHDvhdPrefix
- the prefix for the VHD holding captured imageoverwriteVhd
- whether to overwrites destination VHD if it existscallback
- the callback to call on success or failurevoid migrateToManaged(String groupName, String name)
groupName
- the resource group namename
- the virtual machine namerx.Completable migrateToManagedAsync(String groupName, String name)
groupName
- the resource group namename
- the virtual machine nameServiceFuture<Void> migrateToManagedAsync(String groupName, String name, ServiceCallback<Void> callback)
groupName
- the resource group namename
- the virtual machine namecallback
- the callback to call on success or failureRunCommandResult runPowerShellScript(String groupName, String name, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName
- the resource group namename
- the virtual machine namescriptLines
- PowerShell script linesscriptParameters
- script parametersrx.Observable<RunCommandResult> runPowerShellScriptAsync(String groupName, String name, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName
- the resource group namename
- the virtual machine namescriptLines
- PowerShell script linesscriptParameters
- script parametersRunCommandResult runShellScript(String groupName, String name, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName
- the resource group namename
- the virtual machine namescriptLines
- shell script linesscriptParameters
- script parametersrx.Observable<RunCommandResult> runShellScriptAsync(String groupName, String name, List<String> scriptLines, List<RunCommandInputParameter> scriptParameters)
groupName
- the resource group namename
- the virtual machine namescriptLines
- shell script linesscriptParameters
- script parametersRunCommandResult runCommand(String groupName, String name, RunCommandInput inputCommand)
groupName
- the resource group namename
- the virtual machine nameinputCommand
- command inputrx.Observable<RunCommandResult> runCommandAsync(String groupName, String name, RunCommandInput inputCommand)
groupName
- the resource group namename
- the virtual machine nameinputCommand
- command inputCopyright © 2019. All rights reserved.