From 47419e92eae37e2a1f96f94e1c90a4074037f3ae Mon Sep 17 00:00:00 2001 From: TsuyoshiUshio Date: Wed, 19 Apr 2017 15:26:37 +0900 Subject: [PATCH] Adding object_id for OSType = Windows When we build a Windows based VHD image, we need to specify object_id. However, object_id is very ambigous and not mentioned on this document. I add some explanation and how to get it. --- website/source/docs/builders/azure-setup.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/source/docs/builders/azure-setup.html.md b/website/source/docs/builders/azure-setup.html.md index 0c0405844..9917fc43f 100644 --- a/website/source/docs/builders/azure-setup.html.md +++ b/website/source/docs/builders/azure-setup.html.md @@ -17,6 +17,8 @@ In order to build VMs in Azure Packer needs 6 configuration options to be specif - `client_secret` - service principal secret / password +- `object_id` - service principal object id (OSType = Windows Only) + - `resource_group_name` - name of the resource group where your VHD(s) will be stored - `storage_account` - name of the storage account where your VHD(s) will be stored @@ -192,6 +194,12 @@ Get `client_secret` This cannot be retrieved. If you forgot this, you will have to delete and re-create your service principal and the associated permissions. +Get `object_id` (OSTYpe=Windows only) + +```shell +azure ad sp show -n CLIENT_ID +``` + Get `resource_group_name` ```shell