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>
This commit is contained in:
Mariusz Ferdyn
2022-01-18 15:55:31 +00:00
committed by GitHub
parent 9b6af5b76e
commit 84c135f86f

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