你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualMachineRunCommandInner 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
VirtualMachineRunCommandInner()
初始化 VirtualMachineRunCommandInner 类的新实例。
public VirtualMachineRunCommandInner ();
Public Sub New ()
适用于
VirtualMachineRunCommandInner(String, String, String, String, IDictionary<String,String>, VirtualMachineRunCommandScriptSource, IList<RunCommandInputParameter>, IList<RunCommandInputParameter>, Nullable<Boolean>, String, String, Nullable<Int32>, String, String, String, VirtualMachineRunCommandInstanceView)
初始化 VirtualMachineRunCommandInner 类的新实例。
public VirtualMachineRunCommandInner (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandScriptSource source = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> parameters = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> protectedParameters = default, bool? asyncExecution = default, string runAsUser = default, string runAsPassword = default, int? timeoutInSeconds = default, string outputBlobUri = default, string errorBlobUri = default, string provisioningState = default, Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInstanceView instanceView = default);
new Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandScriptSource * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> * System.Collections.Generic.IList<Microsoft.Azure.Management.Compute.Fluent.Models.RunCommandInputParameter> * Nullable<bool> * string * string * Nullable<int> * string * string * string * Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInstanceView -> Microsoft.Azure.Management.Compute.Fluent.Models.VirtualMachineRunCommandInner
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional source As VirtualMachineRunCommandScriptSource = Nothing, Optional parameters As IList(Of RunCommandInputParameter) = Nothing, Optional protectedParameters As IList(Of RunCommandInputParameter) = Nothing, Optional asyncExecution As Nullable(Of Boolean) = Nothing, Optional runAsUser As String = Nothing, Optional runAsPassword As String = Nothing, Optional timeoutInSeconds As Nullable(Of Integer) = Nothing, Optional outputBlobUri As String = Nothing, Optional errorBlobUri As String = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As VirtualMachineRunCommandInstanceView = Nothing)
参数
- location
- String
- id
- String
- name
- String
- type
- String
- tags
- IDictionary<String,String>
运行命令脚本的源。
- parameters
- IList<RunCommandInputParameter>
脚本使用的参数。
- protectedParameters
- IList<RunCommandInputParameter>
脚本使用的参数。
- runAsUser
- String
指定执行 run 命令时 VM 上的用户帐户。
- runAsPassword
- String
指定执行 run 命令时 VM 上的用户帐户密码。
- outputBlobUri
- String
指定要在其中上传脚本输出流的 Azure 存储 Blob。
- errorBlobUri
- String
指定要在其中上传脚本错误流的 Azure 存储 Blob。
- provisioningState
- String
预配状态,仅显示在响应中。
- instanceView
- VirtualMachineRunCommandInstanceView
虚拟机运行命令实例视图。