Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate Deployment fails #160

Open
igor-teresco opened this issue Jun 24, 2019 · 17 comments
Open

Validate Deployment fails #160

igor-teresco opened this issue Jun 24, 2019 · 17 comments

Comments

@igor-teresco
Copy link

When trying to add the template getting this:
Deployment validation failed.
Additional details from the underlying API that might be helpful: Marketplace purchase eligibilty check returned errors.
Offer with PublisherId: chef-software, OfferId: chef-automate-vm-image cannot be purchased due to validation errors. See details for more information.[{\"Offer with PublisherId: chef-software and OfferId: chef-automate-vm-image not found. If this offer has been created recently, please allow up to 30 minutes for this offer to be available for Purchase. If error persists, contact support.

Please advise!

@eamonnk
Copy link
Contributor

eamonnk commented Jun 24, 2019

Can you confirm the lab on which you are encountering the error is Deploy app with Chef on Azure

Thanks,
eamonn

@igor-teresco
Copy link
Author

Yes, that is the one :-)

@igor-teresco
Copy link
Author

I've accepted Legal Terms in PowerShell, but that doesn't help

@eamonnk
Copy link
Contributor

eamonnk commented Jun 27, 2019

Have been able to deploy that Chef automate image successfully with a new Azure subscription, what region are you specifying? Am wondering if its related to the region you are deploying the image into, have you tried the region valies as per the lab s?

Thanks,
eamonn

@igor-teresco
Copy link
Author

Just tried with same location as in Lab - North Europe. Same result...
"status": {
"value": "Failed",
"localizedValue": "Failed"
},
"subStatus": {
"value": "BadRequest",
"localizedValue": "Bad Request (HTTP Status Code: 400)"
},
"submissionTimestamp": "2019-06-27T13:39:25.1091239Z",
"subscriptionId": "64fd453f-6026-4825-9ad7-a13a770350b8",
"properties": {
"statusCode": "BadRequest",
"serviceRequestId": null,
"statusMessage": "{"error":{"code":"MarketplacePurchaseEligibilityFailed","message":"Marketplace purchase eligibilty check returned errors. See inner errors for details. ","details":[{"code":"BadRequest","message":"Offer with PublisherId: chef-software, OfferId: chef-automate-vm-image cannot be purchased due to validation errors. See details for more information.[{\"Offer with PublisherId: chef-software and OfferId: chef-automate-vm-image not found. If this offer has been created recently, please allow up to 30 minutes for this offer to be available for Purchase. If error persists, contact support.\":\"StoreApi\"}]"}]}}"

@igor-teresco
Copy link
Author

Same with East US region. There is something I miss on parameters perhaps.
But error message is quite clear...

@eamonnk
Copy link
Contributor

eamonnk commented Jun 28, 2019

Its still deploying fie for me. It does look like its related to the marketplace terms associated with the subscription, and having to accept those. You mentioned you accepted the terms in powershell, perhaps double check that this was for the same subscription that you're deploying with.

It might be an idea to try deploy it manually in the portal and accept the terms in the portal that way, that really should work for you, you could then delete the deployment and try it via the template in the lab then. If you don't provide a license file it will give you a 30 day trial license, so it shouldn't prevent you from deploying.

There's also an Azure CLI option around accepting the marketplace terms, something along the lines of the below once you're signed in
az vm image accept-terms --urn Chef-software:chef-automate-vm-image:byol:1.6.1791

Also, might be an idea to check that you can view the chef automate sku fine with the subscription you're deploying with, you can do that in powershell with a command something like the below

Get-AzureRMVMImage -Location westeurope -PublisherName Chef-software -Offer chef-automate-vm-image -Sku byol | Select Version
If it returns the versions without error at least you can view and access the sku in tha tlocation under that subscription.

Sure let me know if any of these options above help and work for you.

Thanks Again,
Eamonn

@igor-teresco
Copy link
Author

I can see versions:
Get-AzVMImage -Location westeurope -PublisherName Chef-software -Offer chef-automate-vm-image -Sku byol | Select Version Version ------- 1.6.1791 1.6.991 1.7.391 1.7.392 1.8.683

Terms are also accepted:
Get-AzMarketplaceTerms -Publisher chef-software -Product chef-automate-vm-image -name chef-automate-vm-image Publisher : chef-software Product : chef-automate-vm-image Plan : chef-automate-vm-image LicenseTextLink : https://storelegalterms.blob.core.windows.net/legalterms/3E5ED_legalterms_CHEF%253a2DSOFTWARE%253a24CHEF%253a2DAUTOMATE%253a2DVM%253a2DIMAGE%253a24CHEF%253a2DAUTOMATE%253a2DVM%253a2DIMAGE%253a24K4 M7SCFWZ4JNCMHKPNWMN6YVRPMLXODDF3M3XRM4RHZWODAA65RLW63FF7CBDHHWOZ7S2HD4K76IBVFHV3X5YETXZQ43KAY74YCBRKI.txt PrivacyPolicyLink : https://www.chef.io/privacy-policy/ Signature : KWLSJBAFMSTJEJVH7MZA6JOLZPG7WIECO3FV73FCBL2UTDL4GJZJBSEPLBVJ7BBIP47YPZHAYXOCZFSQ2YRD7YJUFZTJLZZJLPCCXNQ Accepted : True

No issues here....

@igor-teresco
Copy link
Author

Tried manual procurement from portal - failed on 4th step:
BadRequestOffer with PublisherId: chef-software, OfferId: chef-automate-vm-image cannot be purchased due to validation errors. See details for more information.[{"Offer with PublisherId: chef-software and OfferId: chef-automate-vm-image not found. If this offer has been created recently, please allow up to 30 minutes for this offer to be available for Purchase. If error persists, contact support.":"StoreApi"}]
Basics
Subscription
Visual Studio Enterprise – MPN
Resource group
NB-Chef-RG
Location
(Europe) West Europe
Virtual Machine name
ChefAutomate
Username
azure
Password


Virtual machine settings
Storage account
chefdiske580022a2f
Diagnostic storage account
chefdiagb1a5123861
Virtual machine size
Standard D2 v2
Chef Automate public IP address
ChefAutomatePubIP
Chef Automate FQDN DNS Label
nbchefpubip
Virtual network
vnet01
Chef subnet
chefautomate-subnet
Chef subnet address prefix
10.0.4.0/24
Chef Automate License
Chef Automate License File

@eamonnk
Copy link
Contributor

eamonnk commented Jun 30, 2019

What type of subscription is it? Could you try create a new subscription and try the manual deployment with that?

Thanks again,
eamonn

@igor-teresco
Copy link
Author

Subscription was made using VS Enterprise benefit, has 150$ credit.
Will try with new free trial subscription and update.

@igor-teresco
Copy link
Author

Very funny, manual deployment got validated with another subscription.
Sadly I can't use that for lab, as it is production one.
Knowing that, can you please advise what else I can check/change on my subscription to get that lab?

@igor-teresco
Copy link
Author

And I tried manual deploy 3 times, and twice got a bit different error, saying something about invalid download from https://catalogartifact.azureedge.net/publicartifacts/chef-software.chef-automate-0fecdb54-dd5c-457b-87a2-2b6f247a981a-allinone/Artifacts/storageaccount_new.json

@igor-teresco
Copy link
Author

New day, new error - "The Publisher: chef-software does not make available Offer: chef-automate-vm-image, Plan: byol in your Subscription/Azure account’s region: MD."
Couldn't find a way around this yet, strange that production subscription does allow this from same PC.

@igor-teresco
Copy link
Author

Even 2 week vacation doesn't help here :-)
Please advise what to do?

@darryncurranHP
Copy link

I'm also running into this issue trying to deploy a template containing chef using a subscription created by an EA account.
Error:

Message: Marketplace purchase eligibilty check returned errors. See inner errors for details. 
Exception Details:
	Error Code: BadRequest
	Message: Offer with PublisherId: chef-software, OfferId: chef-automate-vm-image, PlanId: byol can not be purchased by subscriptionId: xxxxxxx-xxxx-xxxx-xxxxxxxxxxxxx

I accepted the terms first using the cli by executing the below command but still received the above error.
az vm image accept-terms --urn chef-software:chef-automate-vm-image:byol:1.8.683

Re-attempted the deployment with a pay-as-you-go subscription and it worked fine.
Region was westeurope.

@SuvankarC
Copy link

This error may be encountered if Azure marketplace feature is disabled in the EA portal. Enabling it from the EA portal by an EA Admin should resolve the issue.

To enable Azure Marketplace purchases on Azure Enterprise Portal (by EA Administrator):

  1. Sign into the Azure Enterprise portal (ea.azure.com) as an enterprise administrator.
  2. Go to Manage.
  3. Under Enrolment Detail, select the pencil icon next to the Azure Marketplace line item.
  4. Toggle Enabled/Disabled or Free BYOL SKUs Only as appropriate.
  5. Select Save.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants