Skip to content

Commit

Permalink
Adding object_id for OSType = Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TsuyoshiUshio committed Apr 19, 2017
1 parent 127df1e commit 47419e9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/source/docs/builders/azure-setup.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47419e9

Please sign in to comment.