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

ImageTemplateShellCustomizer interface

在自定义阶段(Linux)中运行 shell 脚本。 对应于 Packer shell 预配程序。 只能指定“scriptUri”或“内联”之一。

扩展

属性

inline

要执行的 shell 命令数组

scriptUri

要运行用于自定义的 shell 脚本的 URI。 它可以是 github 链接、Azure 存储的 SAS URI 等

sha256Checksum

scriptUri 字段中提供的 shell 脚本的 SHA256 校验和

type

多态鉴别器,它指定此对象可以的不同类型的

继承属性

name

用于提供此自定义步骤的上下文的友好名称

属性详细信息

inline

要执行的 shell 命令数组

inline?: string[]

属性值

string[]

scriptUri

要运行用于自定义的 shell 脚本的 URI。 它可以是 github 链接、Azure 存储的 SAS URI 等

scriptUri?: string

属性值

string

sha256Checksum

scriptUri 字段中提供的 shell 脚本的 SHA256 校验和

sha256Checksum?: string

属性值

string

type

多态鉴别器,它指定此对象可以的不同类型的

type: "Shell"

属性值

"Shell"

继承属性详细信息

name

用于提供此自定义步骤的上下文的友好名称

name?: string

属性值

string

继承自 ImageTemplateCustomizer.name