Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppService access restrictions and access from Release Pipelines

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?

like image 892
Piotr Perak Avatar asked Sep 06 '25 03:09

Piotr Perak


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)

like image 186
Piotr Perak Avatar answered Sep 07 '25 19:09

Piotr Perak