Edit

Share via


Common issues: Marketplace images

Possible error messages

  • Creating Virtual Machine (User failed validation to purchase resources)

Resolution

When you use a marketplace image with CycleCloud, the service principal must have the right permissions on the subscription to programmatically accept the licensing terms for the image. To resolve this issue, either grant the appropriate Microsoft Entra ID permission to the service principal or use the Azure portal or CLI to accept the terms with a user who has the right permissions.

To enable CycleCloud to automatically accept license terms on your behalf, enable the Accept marketplace terms on my behalf option on your subscription in the web interface:

Accept Marketplace terms

To accept license terms from the Azure CLI:

az vm image accept-terms --urn PUBLISHER:OFFER:SKU:VERSION

or

az vm image accept-terms --publisher PUBLISHER --offer OFFER --plan SKU

More information

For more information, see Marketplace Terms.