mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
Add double quote escaping and update documentation (#7613)
This commit is contained in:
committed by
GitHub
parent
f2b1fa1399
commit
7e295782c3
@@ -92,6 +92,11 @@ Finally, run `GenerateResourcesAndImage` function setting mandatory arguments: i
|
|||||||
- `AzureLocation` - location where resources will be created (e.g. "East US")
|
- `AzureLocation` - location where resources will be created (e.g. "East US")
|
||||||
- `ImageType` - what image to build (we suggest choosing "UbuntuMinimal" here, other valid options are "Windows2019", "Windows2022", "Ubuntu2004", "Ubuntu2204")
|
- `ImageType` - what image to build (we suggest choosing "UbuntuMinimal" here, other valid options are "Windows2019", "Windows2022", "Ubuntu2004", "Ubuntu2204")
|
||||||
|
|
||||||
|
> :warning: When running `GenerateResourcesAndImage` in PowerShell 7.3, following command should be executed first:
|
||||||
|
> ```powershell
|
||||||
|
> $PSNativeCommandArgumentPassing = 'Legacy'
|
||||||
|
> ```
|
||||||
|
|
||||||
This function automatically creates all required Azure resources and kicks off packer image generation for the selected image type.
|
This function automatically creates all required Azure resources and kicks off packer image generation for the selected image type.
|
||||||
|
|
||||||
When image is ready you may proceed to [deployment](#generated-machine-deployment)
|
When image is ready you may proceed to [deployment](#generated-machine-deployment)
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ Function GenerateResourcesAndImage {
|
|||||||
|
|
||||||
if ($builderScriptPath.Contains("pkr.hcl")) {
|
if ($builderScriptPath.Contains("pkr.hcl")) {
|
||||||
if ($AgentIp) {
|
if ($AgentIp) {
|
||||||
$AgentIp = '[ "{0}" ]' -f $AgentIp
|
$AgentIp = '[ \"{0}\" ]' -f $AgentIp
|
||||||
} else {
|
} else {
|
||||||
$AgentIp = "[]"
|
$AgentIp = "[]"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user