Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Azure Utilities
Azure Utilities

Azure Utilities

DarkLoop

|
36 installs
| (0) | Free
Azure Extensions
Get it free

Azure Utilities that allow you to interact with the Azure cloud from Azure DevOps.

Included tasks

  • Extract ARM outputs to variables
  • Embed APIM policies into ARM

Extract ARM outputs to variables

Enables you to assign values from output properties to Task Variables after an ARM template is executed.

It requires to execute the Azure resource group deployment and specify the variable where the outputs of the ARM template execution will be stored.

specify-arm-outputs-variable

When we consider the following ARM template section:

{
    ...
    "outputs": {
        "output1": {
            "type": "string",
            "value":"value1"
        },
        "output2": {
            "type": "string",
            "value":"value2"
        }
    }
}

Same variable should be referenced in this task in order to map individual outputs to values. Optionally the template executed can be referenced to aid setting up the mapping of output to variable as shown in the images bellow.

setup output extraction map outputs from template

Embed APIM policies into ARM

Azure APIM allows you develop policies to enforce behavior on APIs. These policies are defined using XML. Deploying these policies along with templates sometimes is desired.

This extension allows you to tokenize your ARM templates to embed these policies at build or release time.

When having this ARM template section:

...
{
    "type": "policies",
    "name": "policy",
    "properties": {
        "format": "rawxml",
        "value": "_{my-policy}_"
    }
}
...

the extension will look recursivey for a my-policy.cshtml file in the Policies root folder or task working directory when root folder is not specified and it will embed its encoded content into the ARM template.

You can modify the delimeters used. Default values are _{ and }_.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft