Class ImageTemplatePowerShellCustomizerArgs
- java.lang.Object
-
- com.pulumi.resources.InputArgs
-
- com.pulumi.resources.ResourceArgs
-
- com.pulumi.azurenative.virtualmachineimages.inputs.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageTemplatePowerShellCustomizerArgs.Builder
-
Field Summary
Fields Modifier and Type Field Description static ImageTemplatePowerShellCustomizerArgs
Empty
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImageTemplatePowerShellCustomizerArgs.Builder
builder()
static ImageTemplatePowerShellCustomizerArgs.Builder
builder(ImageTemplatePowerShellCustomizerArgs defaults)
java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.String>>>
inline()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
name()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
runAsSystem()
java.util.Optional<com.pulumi.core.Output<java.lang.Boolean>>
runElevated()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
scriptUri()
java.util.Optional<com.pulumi.core.Output<java.lang.String>>
sha256Checksum()
com.pulumi.core.Output<java.lang.String>
type()
java.util.Optional<com.pulumi.core.Output<java.util.List<java.lang.Integer>>>
validExitCodes()
-
-
-
Field Detail
-
Empty
public static final ImageTemplatePowerShellCustomizerArgs Empty
-
-
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]
-
builder
public static ImageTemplatePowerShellCustomizerArgs.Builder builder()
-
builder
public static ImageTemplatePowerShellCustomizerArgs.Builder builder(ImageTemplatePowerShellCustomizerArgs defaults)
-
-