From 84c135f86ff08cf802a89a71b22c5935104f84f2 Mon Sep 17 00:00:00 2001 From: Mariusz Ferdyn Date: Tue, 18 Jan 2022 15:55:31 +0000 Subject: [PATCH] Added AAD Service Principals to the command (#4886) * Added AAD Service Principals to the command Added: -AzureClientId {AADApplicationID} -AzureClientSecret {AADApplicationSecret} -AzureTenantId {AADTenantID} to the command. * Update docs/create-image-and-azure-resources.md Agree - better. Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Co-authored-by: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> --- docs/create-image-and-azure-resources.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/create-image-and-azure-resources.md b/docs/create-image-and-azure-resources.md index 912def666..21ba92d8a 100644 --- a/docs/create-image-and-azure-resources.md +++ b/docs/create-image-and-azure-resources.md @@ -66,6 +66,12 @@ Where: The function automatically creates all required Azure resources and kicks off packer image generation for the selected image type. +For optional authentication via service principal make sure to provide the following params — `AzureClientId`, `AzureClientSecret`, `AzureTenantId`, so the whole command will be: + +``` +GenerateResourcesAndImage -SubscriptionId {YourSubscriptionId} -ResourceGroupName "myTestResourceGroup" -ImageGenerationRepositoryRoot "$pwd" -ImageType Ubuntu1804 -AzureLocation "East US" -AzureClientId {AADApplicationID} -AzureClientSecret {AADApplicationSecret} -AzureTenantId {AADTenantID} +``` + *Please, check synopsis of `GenerateResourcesAndImage` for details about non-mandatory parameters.* #### Generated VM Deployment