Ask Your Question

Revision history [back]

To restrict access to an Azure app to only another Azure app within the same app service plan, you can use the "Access restrictions" feature in Azure App Service. Here are the steps:

  1. Open the Azure Portal and navigate to the app that you want to restrict access to.
  2. Click on "Networking" under "Settings" in the left-hand menu.
  3. Under "Access restrictions," click on "Add" to create a new rule.
  4. In the "Add access restriction" pane, enter a name for the rule and select "Service tag" as the rule type.
  5. Select "Virtual Network" as the service tag, and choose the app service plan's virtual network from the dropdown list.
  6. Under "Action," select "Allow access from" and choose "Virtual Network" from the dropdown list.
  7. Click "Add" to save the rule.

This will ensure that only Azure apps within the same app service plan and virtual network can access the app. You can add additional rules if you need to allow access from other specific IP addresses or ranges.