Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IVirtualMachineScaleSets 接口

定义

虚拟机规模集管理 API 的入口点。

public interface IVirtualMachineScaleSets : Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetsBeta, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchCreation<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSet>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsBatchDeletion, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsCreating<Microsoft.Azure.Management.Compute.Fluent.VirtualMachineScaleSet.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.IVirtualMachineScaleSet>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsGettingByResourceGroup<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSet>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListing<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSet>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.CollectionActions.ISupportsListingByResourceGroup<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSet>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasInner<Microsoft.Azure.Management.Compute.Fluent.IVirtualMachineScaleSetsOperations>, Microsoft.Azure.Management.ResourceManager.Fluent.Core.IHasManager<Microsoft.Azure.Management.Compute.Fluent.IComputeManager>
type IVirtualMachineScaleSets = interface
    interface ISupportsListing<IVirtualMachineScaleSet>
    interface ISupportsListingByResourceGroup<IVirtualMachineScaleSet>
    interface ISupportsGettingByResourceGroup<IVirtualMachineScaleSet>
    interface ISupportsGettingById<IVirtualMachineScaleSet>
    interface ISupportsCreating<IBlank>
    interface ISupportsDeletingById
    interface ISupportsDeletingByResourceGroup
    interface ISupportsBatchCreation<IVirtualMachineScaleSet>
    interface ISupportsBatchDeletion
    interface IBeta
    interface IHasManager<IComputeManager>
    interface IHasInner<IVirtualMachineScaleSetsOperations>
    interface IVirtualMachineScaleSetsBeta
Public Interface IVirtualMachineScaleSets
Implements IHasInner(Of IVirtualMachineScaleSetsOperations), IHasManager(Of IComputeManager), ISupportsBatchCreation(Of IVirtualMachineScaleSet), ISupportsBatchDeletion, ISupportsCreating(Of IBlank), ISupportsDeletingById, ISupportsDeletingByResourceGroup, ISupportsGettingById(Of IVirtualMachineScaleSet), ISupportsGettingByResourceGroup(Of IVirtualMachineScaleSet), ISupportsListing(Of IVirtualMachineScaleSet), ISupportsListingByResourceGroup(Of IVirtualMachineScaleSet), IVirtualMachineScaleSetsBeta
实现

属性

Inner

虚拟机规模集管理 API 的入口点。

(继承自 IHasInner<T>)
Manager

获取此资源类型的管理器客户端类型。

(继承自 IHasManager<ManagerT>)

方法

Create(ICreatable<IFluentResourceT>[])

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Create(IEnumerable<ICreatable<IFluentResourceT>>)

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
CreateAsync(IEnumerable<ICreatable<IFluentResourceT>>, CancellationToken)

创建一组资源 (批处理) 。

(继承自 ISupportsBatchCreation<IFluentResourceT>)
Deallocate(String, String)

关闭规模集中的虚拟机并释放计算资源。

DeallocateAsync(String, String, CancellationToken)

关闭规模集中的虚拟机,并异步释放计算资源。

Define(String)

虚拟机规模集管理 API 的入口点。

(继承自 ISupportsCreating<T>)
DeleteById(String)

从 Azure 中删除资源,并按资源 ID 标识该资源。

(继承自 ISupportsDeletingById)
DeleteByIdAsync(String, CancellationToken)

从 Azure 中删除资源,并按资源 ID 标识该资源。

(继承自 ISupportsDeletingById)
DeleteByIds(IList<String>)

从 Azure 中删除指定的资源。

(继承自 ISupportsBatchDeletion)
DeleteByIds(String[])

从 Azure 中删除指定的资源。

(继承自 ISupportsBatchDeletion)
DeleteByIdsAsync(IList<String>, CancellationToken)

以异步方式和并行方式从 Azure 中删除指定的资源。

(继承自 ISupportsBatchDeletion)
DeleteByIdsAsync(String[], CancellationToken)

以异步方式和并行方式从 Azure 中删除指定的资源。

(继承自 ISupportsBatchDeletion)
DeleteByResourceGroup(String, String)

从 Azure 中删除资源,并按其名称和资源组对其进行标识。

(继承自 ISupportsDeletingByResourceGroup)
DeleteByResourceGroupAsync(String, String, CancellationToken)

从 Azure 中删除资源,并按其名称和资源组对其进行标识。

(继承自 ISupportsDeletingByResourceGroup)
GetById(String)

根据资源 ID 从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingById<T>)
GetByIdAsync(String, CancellationToken)

根据资源 ID 从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingById<T>)
GetByResourceGroup(String, String)

根据资源名称和资源组的名称,从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingByResourceGroup<T>)
GetByResourceGroupAsync(String, String, CancellationToken)

根据资源名称和资源组的名称,从 Azure 获取有关资源的信息。

(继承自 ISupportsGettingByResourceGroup<T>)
List()

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListAsync(Boolean, CancellationToken)

列出当前所选订阅中指定类型的所有资源。

(继承自 ISupportsListing<T>)
ListByResourceGroup(String)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
ListByResourceGroupAsync(String, Boolean, CancellationToken)

列出指定资源组中指定类型的资源。

(继承自 ISupportsListingByResourceGroup<T>)
PowerOff(String, String)

关闭 (停止) 规模集中的虚拟机。

PowerOffAsync(String, String, CancellationToken)

关闭 (会异步停止) 规模集中的虚拟机。

Reimage(String, String)

重新映像 (更新规模集中的虚拟机) 已安装操作系统的版本。

ReimageAsync(String, String, CancellationToken)

重新映像 (异步更新规模集中的虚拟机) 已安装操作系统的版本。

Restart(String, String)

重启规模集中的虚拟机。

RestartAsync(String, String, CancellationToken)

异步重启规模集中的虚拟机。

RunCommandInVMInstance(String, String, String, RunCommandInput)

在规模集中的虚拟机实例中运行命令。

(继承自 IVirtualMachineScaleSetsBeta)
RunCommandVMInstanceAsync(String, String, String, RunCommandInput, CancellationToken)

以异步方式在规模集中的虚拟机实例中运行命令。

(继承自 IVirtualMachineScaleSetsBeta)
RunPowerShellScriptInVMInstance(String, String, String, IList<String>, IList<RunCommandInputParameter>)

在规模集中的虚拟机实例中运行 PowerShell 脚本。

(继承自 IVirtualMachineScaleSetsBeta)
RunPowerShellScriptInVMInstanceAsync(String, String, String, IList<String>, IList<RunCommandInputParameter>, CancellationToken)

在规模集中的虚拟机实例中异步运行 PowerShell。

(继承自 IVirtualMachineScaleSetsBeta)
RunShellScriptInVMInstance(String, String, String, IList<String>, IList<RunCommandInputParameter>)

在规模集中的虚拟机实例中运行 shell 脚本。

(继承自 IVirtualMachineScaleSetsBeta)
RunShellScriptInVMInstanceAsync(String, String, String, IList<String>, IList<RunCommandInputParameter>, CancellationToken)

以异步方式在规模集中的虚拟机实例中运行 shell 脚本。

(继承自 IVirtualMachineScaleSetsBeta)
Start(String, String)

启动规模集中的虚拟机。

StartAsync(String, String, CancellationToken)

异步启动规模集中的虚拟机。

适用于