Allowing only specific Azure Virtual Machines images and restrict everything else

Bombbe 1,441 Reputation points
2025-01-17T13:00:48.7366667+00:00

Hi,

I know that I can use Azure policy to enforce (deny) to only use only specific images / publishers but are there ways to enforce this in Azure marketplace level so that application teams would only be allowed on use e.g Windows server 2025 and rest would be blocked?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,016 questions
0 comments No comments
{count} votes

Accepted answer
  1. Akshay kumar Mandha 3,390 Reputation points Microsoft External Staff Moderator
    2025-01-17T22:22:36.7166667+00:00

    Hi Bombbe,
    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here
    Based on your query,
    Do you want to allow only a specific image and block all remaining images from the Azure Marketplace? If that is the case, you can allow custom images by following the documentation provided below.
    https://github.com/Azure/azure-policy/tree/master/samples/Compute/allowed-custom-images
    you can deploy with Azure CLI, PowerShell, or JSON. Everything is mentioned in the documentation.

    Try with Azure PowerShell
    Try with Azure CLI

    Pleases let me know if you need any further assistance or have any questions. I’m always available to support you and help resolve your issue as you needed.!

    If you found this information helpful, please click an accepting the answer and 👍"Upvote" on my post for other community member's reference
    User's image


1 additional answer

Sort by: Most helpful
  1. Divyesh Govaerdhanan 6,235 Reputation points
    2025-01-17T22:59:32.21+00:00

    Hello,

    I would recommend using Private Azure Marketplace, which lets administrators govern which Microsoft partner solutions people across an organization can deploy. It does this by allowing a person to deploy only offers that the marketplace administrator approves.

    https://learn.microsoft.com/en-us/marketplace/create-manage-private-azure-marketplace-new

    Please Upvote and Accept the answer if it helps!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.