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.
This commit is contained in:
TsuyoshiUshio 2017-04-19 15:26:37 +09:00
parent 127df1e320
commit 47419e92ea
1 changed files with 8 additions and 0 deletions

View File

@ -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