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 <[email protected]>

Co-authored-by: Mikhail Timofeev <[email protected]>
This commit is contained in:
Mariusz Ferdyn
2022-01-18 18:55:31 +03:00
committed by GitHub
co-authored by Mikhail Timofeev
parent 9b6af5b76e
commit 84c135f86f
+6
View File
@@ -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