Share via


IVirtualMachines Interface

Definition

Entry point to virtual machine management API.

public interface IVirtualMachines : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinesBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchCreation<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchDeletion, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsCreating<Microsoft.Azure.Management.Compute.Fluent.VirtualMachine.Definition.IBlank>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsDeletingById, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsDeletingByResourceGroup, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsGettingById<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsGettingByResourceGroup<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListing<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListingByResourceGroup<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachine>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachinesOperations>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasManager<Microsoft.Azure.Management.Compute.Fluent.IComputeManager>
type IVirtualMachines = interface
    interface ISupportsListing<IVirtualMachine>
    interface ISupportsListingByResourceGroup<IVirtualMachine>
    interface ISupportsGettingByResourceGroup<IVirtualMachine>
    interface ISupportsGettingById<IVirtualMachine>
    interface ISupportsCreating<IBlank>
    interface ISupportsDeletingById
    interface ISupportsDeletingByResourceGroup
    interface ISupportsBatchCreation<IVirtualMachine>
    interface ISupportsBatchDeletion
    interface IBeta
    interface IHasManager<IComputeManager>
    interface IHasInner<IVirtualMachinesOperations>
    interface IVirtualMachinesBeta
Public Interface IVirtualMachines
Implements IHasInner(Of IVirtualMachinesOperations), IHasManager(Of IComputeManager), ISupportsBatchCreation(Of IVirtualMachine), ISupportsBatchDeletion, ISupportsCreating(Of IBlank), ISupportsDeletingById, ISupportsDeletingByResourceGroup, ISupportsGettingById(Of IVirtualMachine), ISupportsGettingByResourceGroup(Of IVirtualMachine), ISupportsListing(Of IVirtualMachine), ISupportsListingByResourceGroup(Of IVirtualMachine), IVirtualMachinesBeta
Implements

Properties

Inner (Inherited from IHasInner<T>)
Manager

Gets the manager client type of this resource type.

(Inherited from IHasManager<ManagerT>)
Sizes

Gets available virtual machine sizes.

Methods

Capture(String, String, String, String, Boolean)

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.

CaptureAsync(String, String, String, String, Boolean, CancellationToken)

Captures the virtual machine by copying virtual hard disks of the VM asynchronously.

Create(ICreatable<IFluentResourceT>[])

Creates a set (batch) of resources.

(Inherited from ISupportsBatchCreation<IFluentResourceT>)
Create(IEnumerable<ICreatable<IFluentResourceT>>)

Creates a set (batch) of resources.

(Inherited from ISupportsBatchCreation<IFluentResourceT>)
CreateAsync(IEnumerable<ICreatable<IFluentResourceT>>, CancellationToken)

Creates a set (batch) of resources.

(Inherited from ISupportsBatchCreation<IFluentResourceT>)
Deallocate(String, String)

Shuts down the virtual machine and releases the compute resources.

DeallocateAsync(String, String, CancellationToken)

Shuts down the virtual machine and releases the compute resources asynchronously.

Define(String) (Inherited from ISupportsCreating<T>)
DeleteById(String, Boolean)

Deletes a resource from Azure, identifying it by its resource ID.

DeleteById(String)

Deletes a resource from Azure, identifying it by its resource ID.

(Inherited from ISupportsDeletingById)
DeleteByIdAsync(String, Boolean, CancellationToken)

Deletes a resource from Azure, identifying it by its resource ID.

DeleteByIdAsync(String, CancellationToken)

Deletes a resource from Azure, identifying it by its resource ID.

(Inherited from ISupportsDeletingById)
DeleteByIds(IList<String>)

Deletes the specified resources from Azure.

(Inherited from ISupportsBatchDeletion)
DeleteByIds(String[])

Deletes the specified resources from Azure.

(Inherited from ISupportsBatchDeletion)
DeleteByIdsAsync(IList<String>, CancellationToken)

Deletes the specified resources from Azure asynchronously and in parallel.

(Inherited from ISupportsBatchDeletion)
DeleteByIdsAsync(String[], CancellationToken)

Deletes the specified resources from Azure asynchronously and in parallel.

(Inherited from ISupportsBatchDeletion)
DeleteByResourceGroup(String, String, Boolean)

Deletes a resource from Azure, identifying it by its name and its resource group.

DeleteByResourceGroup(String, String)

Deletes a resource from Azure, identifying it by its name and its resource group.

(Inherited from ISupportsDeletingByResourceGroup)
DeleteByResourceGroupAsync(String, String, Boolean, CancellationToken)

Deletes a resource from Azure, identifying it by its name and its resource group.

DeleteByResourceGroupAsync(String, String, CancellationToken)

Deletes a resource from Azure, identifying it by its name and its resource group.

(Inherited from ISupportsDeletingByResourceGroup)
Generalize(String, String)

Generalizes the virtual machine.

GeneralizeAsync(String, String, CancellationToken)

Generalizes the virtual machine asynchronously.

GetById(String)

Gets the information about a resource from Azure based on the resource id.

(Inherited from ISupportsGettingById<T>)
GetByIdAsync(String, CancellationToken)

Gets the information about a resource from Azure based on the resource id.

(Inherited from ISupportsGettingById<T>)
GetByResourceGroup(String, String)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

(Inherited from ISupportsGettingByResourceGroup<T>)
GetByResourceGroupAsync(String, String, CancellationToken)

Gets the information about a resource from Azure based on the resource name and the name of its resource group.

(Inherited from ISupportsGettingByResourceGroup<T>)
List()

Lists all the resources of the specified type in the currently selected subscription.

(Inherited from ISupportsListing<T>)
ListAsync(Boolean, CancellationToken)

Lists all the resources of the specified type in the currently selected subscription.

(Inherited from ISupportsListing<T>)
ListByResourceGroup(String)

Lists resources of the specified type in the specified resource group.

(Inherited from ISupportsListingByResourceGroup<T>)
ListByResourceGroupAsync(String, Boolean, CancellationToken)

Lists resources of the specified type in the specified resource group.

(Inherited from ISupportsListingByResourceGroup<T>)
MigrateToManaged(String, String)

Migrates the virtual machine with unmanaged disks to use managed disks.

MigrateToManagedAsync(String, String, CancellationToken)

Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.

PowerOff(String, String)

Powers off (stops) a virtual machine.

PowerOffAsync(String, String, CancellationToken)

Powers off (stops) the virtual machine asynchronously.

Redeploy(String, String)

Redeploys a virtual machine.

RedeployAsync(String, String, CancellationToken)

Redeploys the virtual machine asynchronously.

Reimage(String, String, Nullable<Boolean>)

Reimages a virtual machine.

ReimageAsync(String, String, Nullable<Boolean>, CancellationToken)

Reimages the virtual machine asynchronously.

Restart(String, String)

Restarts a virtual machine.

RestartAsync(String, String, CancellationToken)

Restarts the virtual machine asynchronously.

RunCommand(String, String, RunCommandInput)

Run commands in a virtual machine.

(Inherited from IVirtualMachinesBeta)
RunCommandAsync(String, String, RunCommandInput, CancellationToken)

Run commands in a virtual machine asynchronously.

(Inherited from IVirtualMachinesBeta)
RunPowerShellScript(String, String, IList<String>, IList<RunCommandInputParameter>)

Run shell script in a virtual machine.

(Inherited from IVirtualMachinesBeta)
RunPowerShellScriptAsync(String, String, IList<String>, IList<RunCommandInputParameter>, CancellationToken)

Run shell script in a virtual machine asynchronously.

(Inherited from IVirtualMachinesBeta)
RunShellScript(String, String, IList<String>, IList<RunCommandInputParameter>)

Run shell script in a virtual machine.

(Inherited from IVirtualMachinesBeta)
RunShellScriptAsync(String, String, IList<String>, IList<RunCommandInputParameter>, CancellationToken)

Run shell script in a virtual machine asynchronously.

(Inherited from IVirtualMachinesBeta)
Start(String, String)

Starts a virtual machine.

StartAsync(String, String, CancellationToken)

Starts the virtual machine asynchronously.

Applies to