For Azure Batch users, when you tried to resize your Batch pool, but it failed with the error message of Allocation failed due to marketplace purchase eligibility. You can follow the below steps to check if it’s the same scenario with this blog.
Navigate to your Batch overview page, check the pool allocation mode
If you are using the User Subscription mode, you can go to step 2 and follow the instructions below.
Otherwise, if the pool allocation mode is Batch Service mode, pleasecontact Azure Support and open a technical support ticket, as this blog would only cover the scenario of the user subscription mode.
Run PowerShell commands needed for the legal terms
Usually, for Batch users (in user subscription mode), there are some legal terms of the image that users need to accept before the subscription can be used. If you haven’t done this before, you might encounter the error Allocation failed due to marketplace purchase eligibilty.
You have two options to check and accept the terms:
Option 1: Run the PS command in Cloud Shell to check the current terms. An example below: