Azure Marketplace for Azure Government

If you're an Azure Government partner who's interested in publishing offerings to the Azure Marketplace, find the details in this article.

Currently BYOL VM Images and Solution Templates are supported in Azure Government Marketplace. As a best practice, Solution Templates should be reviewed prior to publishing to Azure Government to ensure it will function on both Azure Public and Azure Government Clouds. If you are only publishing a VM Image you can proceed to the publishing steps further below.

Pre-Publishing Validation for Solution Templates

Before you publish your solution template to Azure Government, we recommend checking a couple of common best practice areas to ensure your Template will work in both Azure Public Cloud and Azure Government.

  1. Verify endpoints are not hard coded into your solution Template for Azure Public Cloud. These won't be valid for any other Azure Environments. Instead modify the Solution template to request an API call to pull the valid end point:


    Incorrect VHD uri (hard coded) "uri": "[concat('https://', variables('storageAccountName'), '', '/osdisk.vhd')]",

    Correct VHD uri (referenced)

    "uri": "[concat(reference(resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))).primaryEndpoints.blob, 'osdisk.vhd')]",

    The corrected syntax will ensure the template will work on any cloud (Gov, Public Azure, AzureStack, China, etc)

  2. Verify that resources used in your solution template are available in the Sovereign Cloud you are publishing to. RPs in Azure & API version

    Identify availability Azure Government using Resource Explorer in the portal:

    1. Log into Azure Government Portal
    2. Launch Resource Explorer, following steps listed here

    Most commonly used extensions; Availability in Fairfax

    Publisher/Type Available Versions in Fairfax
    Microsoft.OSTCExtensions/CustomScriptForLinux 1; 1.1;;;;
    Microsoft.Compute/CustomScriptExtension 1.2; 1.3; 1.4; 1.7; 1.8
    Microsoft.Azure.Extensions/DockerExtension Not Available
    Microsoft.Azure.Extensions/CustomScript 2.0.2
    Microsoft.OSTCExtensions/LinuxDiagnostic 2.0.9005; 2.1.9005; 2.2.9005; 2.3.9011

If you put locations in for a list of allowed values, you will need to periodically update it as new regions are added.



If you are not an existing Azure Certified Marketplace partner, complete the steps that show how to publish and manage an offer before proceeding.

Step 1

Sign in to Azure Publishing.

Step 2

Click the offer that you want to publish.

Step 3

Click SKUS, and select the Azure Government Cloud box.


Only Bring Your Own License (BYOL) SKUs are supported. This option is not available for Pay-as-You-Go (PayG) SKUs.

Offer page where the SKUS and Azure Government Cloud options are located

Step 4

Click the + Add Certification link to add links to any certifications for your offer.

Offer page with Add Certification link

Step 5

To test your image in the publishing portal, request a trial account for Microsoft Azure Government.

Your eligibility as a partner who serves US federal, state, local, or tribal entities is verified, and confirmation will be provided via email. Your trial account will be available in three to five business days.

Step 6

Click Publish, and click Push to Staging.

Publish and Push to Staging options

You're prompted to enter a whitelisted subscription that has access to the staged offer. Enter the subscription ID from your newly acquired Azure Government trial account.

Prompt where you specify the subscription IDs that can access the offer

Step 7

After the offer is successfully staged, you can test your image by signing in to the Azure portal by using your Azure Government trial account.

Step 8

After you have validated your image by using the trial subscription, you can make the offer available live by clicking Publish and requesting approval to go to production.

Request approval to go to production command

Next steps

For supplemental information and updates, subscribe to the Microsoft Azure Government Blog.