packer-plugin-azure does not remove the datadisk after image creation

15 views
Skip to first unread message

John Trump

unread,
Mar 2, 2023, 12:59:12 PM3/2/23
to Packer
packer-plugin-azure does not remove the datadisk after image creation. 

Scenario:

  • Building image in an existing azure resource group
  • Adding 200GB datadisk which is automatically named with prefix pkrdd, then a random string and ending with -1. For example - ( pkrdd327zb3txgw-1 )
  • After image creation and cleanup the temporary vm, nic, osdisk, etc. are removed but the datadisk remains. 
How can the randomly named temporary datadisk be deleted?

Mike Schinkel

unread,
Mar 2, 2023, 3:35:53 PM3/2/23
to Packer
Can you share your packer script (with any sensitive information redacted, of course?)
Reply all
Reply to author
Forward
0 new messages