ScriptExecutionProperties interface
用户调用的脚本的属性
属性
| errors | Powershell 执行中的标准错误输出流 |
| failure |
如果脚本能够运行,但脚本本身有错误或 powershell 引发异常,则错误消息 |
| finished |
脚本执行完成的时间 |
| hidden |
对 ARM 隐藏/不可见的参数,例如密码和凭据 |
| information | PowerShell 执行中的标准信息传出流 |
| named |
用户定义的字典。 |
| output | Powershell 执行中的标准输出流 |
| parameters | 脚本将接受的参数 |
| provisioning |
脚本执行资源的状态 |
| retention | 资源生存时间。 如果未提供,将可用于 60 天 |
| script |
如果用户正在运行 AVS 脚本,则对脚本 cmdlet 资源的引用 |
| started |
脚本执行启动时间 |
| submitted |
提交脚本执行的时间 |
| timeout | 执行时间限制 |
| warnings | Powershell 执行中的标准警告流 |
属性详细信息
errors
Powershell 执行中的标准错误输出流
errors?: string[]
属性值
string[]
failureReason
如果脚本能够运行,但脚本本身有错误或 powershell 引发异常,则错误消息
failureReason?: string
属性值
string
finishedAt
脚本执行完成的时间
finishedAt?: Date
属性值
Date
hiddenParameters
对 ARM 隐藏/不可见的参数,例如密码和凭据
hiddenParameters?: ScriptExecutionParameterUnion[]
属性值
information
PowerShell 执行中的标准信息传出流
information?: string[]
属性值
string[]
namedOutputs
用户定义的字典。
namedOutputs?: Record<string, Record<string, any>>
属性值
Record<string, Record<string, any>>
output
Powershell 执行中的标准输出流
output?: string[]
属性值
string[]
parameters
provisioningState
脚本执行资源的状态
provisioningState?: string
属性值
string
retention
资源生存时间。 如果未提供,将可用于 60 天
retention?: string
属性值
string
scriptCmdletId
如果用户正在运行 AVS 脚本,则对脚本 cmdlet 资源的引用
scriptCmdletId?: string
属性值
string
startedAt
脚本执行启动时间
startedAt?: Date
属性值
Date
submittedAt
提交脚本执行的时间
submittedAt?: Date
属性值
Date
timeout
执行时间限制
timeout: string
属性值
string
warnings
Powershell 执行中的标准警告流
warnings?: string[]
属性值
string[]