IVirtualMachines Interface

Definition

Entry point to virtual machine management API.

public interface IVirtualMachines : 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>
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)
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)
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)
Define(String) (Inherited from ISupportsCreating<T>)
DeleteById(String)

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

(Inherited from ISupportsDeletingById)
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)

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

(Inherited from ISupportsDeletingByResourceGroup)
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)
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)
MigrateToManagedAsync(String, String, CancellationToken)
PowerOff(String, String)

Powers off (stops) a virtual machine.

PowerOffAsync(String, String, CancellationToken)
Redeploy(String, String)

Redeploys a virtual machine.

RedeployAsync(String, String, CancellationToken)
Restart(String, String)

Restarts a virtual machine.

RestartAsync(String, String, CancellationToken)
Start(String, String)

Starts a virtual machine.

StartAsync(String, String, CancellationToken)

Applies to