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 eligibilty
You can follow the below steps to check if it’s the same scenario with this blog.
Step 1: 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.
Step 2: 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.
There are two ways we can do to check and accept the terms:
Run the PS command in Cloud Shell to check the current terms. An example below: