{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/packer/issues/5045","repository_url":"https://api.github.com/repos/hashicorp/packer","labels_url":"https://api.github.com/repos/hashicorp/packer/issues/5045/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/packer/issues/5045/comments","events_url":"https://api.github.com/repos/hashicorp/packer/issues/5045/events","html_url":"https://github.com/hashicorp/packer/issues/5045","id":237809358,"number":5045,"title":"Packer Azure keep temporary resource group","user":{"login":"luisamador","id":18208396,"avatar_url":"https://avatars0.githubusercontent.com/u/18208396?v=3","gravatar_id":"","url":"https://api.github.com/users/luisamador","html_url":"https://github.com/luisamador","followers_url":"https://api.github.com/users/luisamador/followers","following_url":"https://api.github.com/users/luisamador/following{/other_user}","gists_url":"https://api.github.com/users/luisamador/gists{/gist_id}","starred_url":"https://api.github.com/users/luisamador/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luisamador/subscriptions","organizations_url":"https://api.github.com/users/luisamador/orgs","repos_url":"https://api.github.com/users/luisamador/repos","events_url":"https://api.github.com/users/luisamador/events{/privacy}","received_events_url":"https://api.github.com/users/luisamador/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-22T11:06:06Z","updated_at":"2017-06-22T11:06:06Z","closed_at":null,"body":"Packer should give you the option to keep the temporary resource group when building an image.\r\n\r\nWhy? If the security principal used by Packer doesn't have permissions to create/delete resource groups within the Azure subscription, Packer build will fail.\r\n\r\nThe admin of my subscription could create a resource group called 'packer' which would be used by Packer during the build process as the temporary resource group.\r\n\r\nThe basic steps for a build are:\r\nCreate a resource group. -----------> If the temporary resource group already exists, leave it as it is \r\nValidate and deploy a VM template.\r\nExecute provision - defined by the user; typically shell commands.\r\nPower off and capture the VM.\r\nDelete the resource group. ----------> Should be optional to delete it so can it can be reused\r\nDelete the temporary VM's OS disk.\r\n\r\nIt would make my life much easier since we don't want to create a super-admin service principal in our Azure subscription.\r\n\r\n"}}
{"actor":{"display_login":"luisamador"}}