You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/image-builder-json.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to create a Bicep file or ARM template JSON template to u
4
4
author: kof-f
5
5
ms.author: kofiforson
6
6
ms.reviewer: erd
7
-
ms.date: 07/17/2023
7
+
ms.date: 09/18/2023
8
8
ms.topic: reference
9
9
ms.service: virtual-machines
10
10
ms.subservice: image-builder
@@ -575,14 +575,16 @@ The `PowerShell` customizer supports running PowerShell scripts and inline comma
575
575
"name": "<name>",
576
576
"scriptUri": "<path to script>",
577
577
"runElevated": <true false>,
578
+
"runAsSystem": <true false>,
578
579
"sha256Checksum": "<sha256 checksum>"
579
580
},
580
581
{
581
582
"type": "PowerShell",
582
583
"name": "<name>",
583
584
"inline": "<PowerShell syntax to run>",
584
585
"validExitCodes": [<exit code>],
585
-
"runElevated": <true or false>
586
+
"runElevated": <true or false>,
587
+
"runAsSystem": <true or false>
586
588
}
587
589
]
588
590
```
@@ -596,6 +598,7 @@ customize: [
596
598
name: '<name>'
597
599
scriptUri: '<path to script>'
598
600
runElevated: <true false>
601
+
runAsSystem: <true false>
599
602
sha256Checksum: '<sha256 checksum>'
600
603
}
601
604
{
@@ -604,6 +607,7 @@ customize: [
604
607
inline: '<PowerShell syntax to run>'
605
608
validExitCodes: [<exit code>]
606
609
runElevated: <true or false>
610
+
runAsSystem: <true or false>
607
611
}
608
612
]
609
613
```
@@ -617,6 +621,7 @@ Customize properties:
617
621
-**inline** – Inline commands to be run, separated by commas.
618
622
-**validExitCodes** – Optional, valid codes that can be returned from the script/inline command. The property avoids reported failure of the script/inline command.
619
623
-**runElevated** – Optional, boolean, support for running commands and scripts with elevated permissions.
624
+
-**runAsSystem** - Optional, boolean, determines whether the PowerShell script should be run as the System user.
620
625
-**sha256Checksum** - generate the SHA256 checksum of the file locally, update the checksum value to lowercase, and Image Builder will validate the checksum during the deployment of the image template.
621
626
622
627
To generate the sha256Checksum, use the [Get-FileHash](/powershell/module/microsoft.powershell.utility/get-filehash) cmdlet in PowerShell.
0 commit comments