AppService access restrictions and access from Release Pipelines

Viewed 438

As part of my deployment I would like to call some endpoint in my application to smoke test it. But we are using Access Restrictions and calls from Azure Devops Release Pipeline are rejected. Is there a way around this?

1 Answers

Right after asking question I noticed there is new option in Preview in Access Restrictions page in Azure portal.

enter image description here

With this rule Azure Devops will be able to reach application endpoints.

Or using Powershell

Add-AzWebAppAccessRestrictionRule
  -ResourceGroupName "resourcegroup"
  -WebAppName "webapi"
  -Priority 65000
  -ServiceTag Azurecloud
  -Action Allow

In future you should be able to use AzureDevOps service tag, but looks like it's not supported in Preview - Set a service tag-based rule (preview)

Related