Azure ELK offer not found when installing via Terraform

Keywords: ELK - Microsoft Azure - Technical issue - Other
Description:
Hello Community,
I am trying to set up the Bitnami Certified ELK (https://azuremarketplace.microsoft.com/en-us/marketplace/apps/bitnami.elk?tab=Overview) in Azure with Terraform.

But for some reason on Apply the offer is not found as soon as I add a plan to my azurerm_virtual_machine Block.

I receive the following error:

    Error: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 
    -- Original Error: Code="ResourcePurchaseValidationFailed" Message="User failed validation to purchase resources. 
    Error message: 'Offer with PublisherId: 'bitnami' and OfferId: 'elk' not found. 
    See similar offers in here 'https://azuremarketplace.microsoft.com/en-us/marketplace/apps?page=1%26search=bitnami%20elk'. Correlation Id '234c222f-3b63-4c92-ba82-bd88548ff39d'.'"

If I check via azure cli for the terms, they are accepted:

    PS C:\> az vm image terms show --plan default --offer elk --publisher bitnami
    {
    "accepted": true,
    "id": "/subscriptions/xxxx/providers/Microsoft.MarketplaceOrdering/offerTypes/VirtualMachine/publishers/bitnami/offers/elk/plans/default/agreements/current",
    "licenseTextLink": "https://storelegalterms.blob.core.windows.net/legalterms/3E5ED_legalterms_BITNAMI%253a24ELK%253a24DEFAULT%253a24TUHRPTBFUGCFZ7MYDV5YYPIWHN26Z4EG25KVSJP4ICXU6QHBC6MM2RIWDMKPZN7GE5Z43UNM3JLUYIGL6PPEHFCDIYYYPZFBXMWBNCA.txt",
    "name": "default",
    "plan": "default",
    "privacyPolicyLink": "https://www.vmware.com/help/privacy.html",
    "product": "elk",
    "publisher": "bitnami",
    "retrieveDatetime": "2020-12-10T11:14:28.8883263Z",
    "signature": "XKL5YFBEK6EWVVGUHHRN7VVSONBR2YJX4CV6ERWDNL2WJQWTLSWXQC2RZZNRPJXEPRAFXEBJGWTE6G6GNLFRXBSZOOQBCIZGVW7DMLQ",
    "type": "Microsoft.MarketplaceOrdering/offertypes"
    }

Any Suggestions what I am doing wrong here ?

Cheers,
Rene

Hi @rene.hengstermann,

We could also verify the marketplace image is found as expected. We suspect the issue might be in the way it is referred to in the Terraform code.

Could you share the relevant Terraform code failing? That way could probably try to help you debug further.

Thanks,

Jose

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.