Issue on creating VM using packer in the backend

I know packer creates VM in the backend while automating the image.
so We have to make sure that packer creates VM in the backend even public IP set to NONE how we can achieve it?

Logs I see after executing the build:

c56077c7e3fc",“policyExemptionIds”:},“type”:“PolicyViolation”}],“code”:“RequestDisallowedByPolicy”,“message”:"Resource ‘pkrnihhqzm20za7’ was disallowed by policy. Reasons: ‘this is not a permissions error. you are trying to create a VM with an public IP this is denied by policy, if it is something you need please reach out to techops’. See error details for policy resource

‘pkrvmhhqzm20za7’ was disallowed by policy. Policy identifiers: