From ade95350d69dd086aea801cdd1d01fcade3b7692 Mon Sep 17 00:00:00 2001 From: Paul Meyer Date: Mon, 7 Oct 2019 21:38:32 +0000 Subject: [PATCH] Use sudo in docs --- website/source/docs/builders/azure-chroot.html.md.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/website/source/docs/builders/azure-chroot.html.md.erb b/website/source/docs/builders/azure-chroot.html.md.erb index a6a52bc46..069fc1853 100644 --- a/website/source/docs/builders/azure-chroot.html.md.erb +++ b/website/source/docs/builders/azure-chroot.html.md.erb @@ -120,6 +120,13 @@ to fill in the subscription ID of the VM in any of the configuration options. ## Examples Here are some examples using this builder. +This builder requires privileged actions, such as mounting disks, running +`chroot` and other admin commands. Usually it needs to be run with root +permissions, for example: + +``` +sudo -E packer build example.json +``` ### Using a VM with a Managed Identity On a VM with a system-assigned managed identity that has the contributor role @@ -131,8 +138,6 @@ updated Debian image: "builders": [{ "type": "azure-chroot", - "command_wrapper": "sudo {{.Command}}", - "image_resource_id": "/subscriptions/{{vm `subscription_id`}}/resourceGroups/{{vm `resource_group`}}/providers/Microsoft.Compute/images/MyDebianOSImage-{{timestamp}}", "source": "credativ:Debian:9:latest" }],