From f83e4110358e039da3e65ddedee30cda4c9eb6a6 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Fri, 16 Jun 2023 16:57:49 +0200 Subject: [PATCH] Update GenerateResourcesAndImage related documentation (#7738) --- docs/create-image-and-azure-resources.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/create-image-and-azure-resources.md b/docs/create-image-and-azure-resources.md index 6f340b6a6..c951aa20d 100644 --- a/docs/create-image-and-azure-resources.md +++ b/docs/create-image-and-azure-resources.md @@ -85,6 +85,11 @@ Then import [GenerateResourcesAndImage](../helpers/GenerateResourcesAndImage.ps1 Import-Module .\helpers\GenerateResourcesAndImage.ps1 ``` +> :warning: When running `GenerateResourcesAndImage` in PowerShell 7.3, following command should be executed first: +> ```powershell +> $PSNativeCommandArgumentPassing = 'Legacy' +> ``` + Finally, run `GenerateResourcesAndImage` function setting mandatory arguments: image type and where to create resources: - `SubscriptionId` - your Azure Subscription ID @@ -92,11 +97,6 @@ Finally, run `GenerateResourcesAndImage` function setting mandatory arguments: i - `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") -> :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. When image is ready you may proceed to [deployment](#generated-machine-deployment)