Class ImageTemplatePowerShellCustomizerResponse


  • public final class ImageTemplatePowerShellCustomizerResponse
    extends java.lang.Object
    • Method Detail

      • inline

        public java.util.List<java.lang.String> inline()
        Returns:
        Array of PowerShell commands to execute
      • name

        public java.util.Optional<java.lang.String> name()
        Returns:
        Friendly Name to provide context on what this customization step does
      • runAsSystem

        public java.util.Optional<java.lang.Boolean> runAsSystem()
        Returns:
        If specified, the PowerShell script will be run with elevated privileges using the Local System user. Can only be true when the runElevated field above is set to true.
      • runElevated

        public java.util.Optional<java.lang.Boolean> runElevated()
        Returns:
        If specified, the PowerShell script will be run with elevated privileges
      • scriptUri

        public java.util.Optional<java.lang.String> scriptUri()
        Returns:
        URI of the PowerShell script to be run for customizing. It can be a github link, SAS URI for Azure Storage, etc
      • sha256Checksum

        public java.util.Optional<java.lang.String> sha256Checksum()
        Returns:
        SHA256 checksum of the power shell script provided in the scriptUri field above
      • type

        public java.lang.String type()
        Returns:
        The type of customization tool you want to use on the Image. For example, "Shell" can be shell customizer Expected value is 'PowerShell'.
      • validExitCodes

        public java.util.List<java.lang.Integer> validExitCodes()
        Returns:
        Valid exit codes for the PowerShell script. [Default: 0]