Share via


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

IVirtualMachineBeta 接口

定义

Azure 虚拟机的不可变客户端表示形式。

public interface IVirtualMachineBeta : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IBeta
type IVirtualMachineBeta = interface
    interface IBeta
Public Interface IVirtualMachineBeta
Implements IBeta
派生
实现

属性

AvailabilityZones

获取分配给虚拟机的可用性区域。

BillingProfile

获取低优先级虚拟机的计费相关详细信息。

EvictionPolicy

获取虚拟机的逐出策略。

IsManagedServiceIdentityEnabled

如果为虚拟机启用了托管服务标识,则为 true。

ManagedServiceIdentityType

获取用于虚拟机的托管服务标识的类型。

Priority

获取虚拟机的优先级。

SystemAssignedManagedServiceIdentityPrincipalId

获取分配给虚拟机的系统分配 (本地) 托管服务标识特定的 Active Directory 服务主体 ID。

SystemAssignedManagedServiceIdentityTenantId

获取分配给虚拟机的系统分配 (本地) 托管服务标识特定的 Active Directory 租户 ID。

UserAssignedManagedServiceIdentityIds

获取与虚拟机关联的用户分配的托管服务标识的资源 ID。

方法

RunCommand(RunCommandInput)

在虚拟机中运行命令。

RunCommandAsync(RunCommandInput, CancellationToken)

在虚拟机中异步运行命令。

RunPowerShellScript(IList<String>, IList<RunCommandInputParameter>)

在虚拟机中运行 shell 脚本。

RunPowerShellScriptAsync(IList<String>, IList<RunCommandInputParameter>, CancellationToken)

在虚拟机中异步运行 shell 脚本。

RunShellScript(IList<String>, IList<RunCommandInputParameter>)

在虚拟机中运行 shell 脚本。

RunShellScriptAsync(IList<String>, IList<RunCommandInputParameter>, CancellationToken)

在虚拟机中异步运行 shell 脚本。

适用于