0

According to this manual one can build an image on Azure using Azure Image Builder. When running the first example, the following error is shown in the customization log:

PACKER ERR ==> azure-arm: ERROR: -> RequestDisallowedByPolicy :
Resource '1f43d6s8hd4fr5e' was disallowed by policy
"Virtual Machine Naming Policy"

The question is how to set the Virtual Machine image name using Azure Image Builder.

Attempts to solve the issue

  1. Asked the team that is responsible for the policy to remove are change the Virtual Machine Naming Policy
  2. Tried to change the VM image name by modifying some keys in the json file.
  3. Created the following GitHub issue.

1 Answer 1

0

Use the following configuration key:

.
.
"temp_compute_name": "<desired_name>",
.
.

Note: Try to keep name short.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.