Common Issues: Marketplace Images

Possible Error Messages

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

Resolution

When using a marketplace image with CycleCloud, the service principal must have appropriate permissions on the subscription to programmatically accept the licensing terms for the image. To resolve this issue, you may either grant the appropriate AAD permission to the service principal or use the Azure portal or CLI to accept the terms with a user with appropriate 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 a 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