Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Hashicorp Packer Tutorial: Creating Azure Vm Image


Create Azure resource group


Create Azure resource group
$ az group create -n myResourceGroup -l eastus

Create Azure credentials
$ az ad sp create-for-rbac --role Contributor --scopes /subscriptions/<subscription_id> --query "{ client_id: appId, client_secret: password, tenant_id: tenant }"

$ az account show --query "{ subscription_id: id }"

Build Packer image


$ packer init
$ packer build ubuntu.pkr.hcl
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x