Unable to deploy VM Series bundle1 and Marketplace agreement fails with ResourcePurchaseValidationFailed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to deploy VM Series bundle1 and Marketplace agreement fails with ResourcePurchaseValidationFailed

L1 Bithead

Hello, I am working on a PoC setup having bundle1 Vm series PAFW for a client using Terraform in Azure but no matter what I do I always blocked by Marketplace license. 

  • When I create the VM with Marketplace agreement, the terraform api for Azure complaints that License agreement resource already exist
  • When I create the VM with Market place agreement commented, the api fails and throws ResourcePurchaseValidationFailed error see below. 

 

ResourcePurchaseValidationFailed: User failed validation to purchase resources. Error message: 'The offer with Offer ID 'vmseries1-azure' was not found. Try one of these: 1- Make sure the offer name is written correctly. 2- If this offer was recently created, allow up to 30 minutes for it to be available for purchase. 3- The offer may have been removed from the marketplace. Look for similar offers from this publisher here: 'https:// azuremarketplace.microsoft.com/en-us/marketplace/apps?page=1%26search=paloaltonetworks%20vmseries1-azure'. Publisher ID: 'paloaltonetworks', Offer ID: 'vmseries1-azure', Correlation ID '41e8411e-0e8a-4b9f-1d36-860c23a3467a'.'

```

Can someone please help me on how to move forward as its blocking me either way.  

1 REPLY 1

L1 Bithead

Hi,So I found the solution that was actually working and I verified using the Terraform. I used Azure Powershell to manually remove the Marketplace License agreement. After that the Terraform was able to create it.


# Get and STOP Markeplace Term:
Get-AzMarketplaceTerms -Publisher "paloaltonetworks" -Product "vmseries-flex" -Name "bundle1" | Stop-AzMarketplaceTerms

# License agreement for Palo Alto Firewall VM - bundle1
resource "azurerm_marketplace_agreement" "panfw_license" {
publisher = "paloaltonetworks"
offer = "vmseries-flex"
plan = "bundle1" # byol, bundle1, bundle2
}

  • 172 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!