Class ImageTemplatePowerShellCustomizerArgs


  • public final class ImageTemplatePowerShellCustomizerArgs
    extends com.pulumi.resources.ResourceArgs
    Runs the specified PowerShell on the VM (Windows). Corresponds to Packer powershell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified.
    • Method Detail

      • inline

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

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

        public java.util.Optional<com.pulumi.core.Output<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<com.pulumi.core.Output<java.lang.Boolean>> runElevated()
        Returns:
        If specified, the PowerShell script will be run with elevated privileges
      • scriptUri

        public java.util.Optional<com.pulumi.core.Output<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<com.pulumi.core.Output<java.lang.String>> sha256Checksum()
        Returns:
        SHA256 checksum of the power shell script provided in the scriptUri field above
      • type

        public com.pulumi.core.Output<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.Optional<com.pulumi.core.Output<java.util.List<java.lang.Integer>>> validExitCodes()
        Returns:
        Valid exit codes for the PowerShell script. [Default: 0]