Can I allow only certain IPs to access the app?

Junaid Qazi 6 Reputation points
2020-11-01T20:52:14.03+00:00

Hi,
I have created a sample dash app, now I want to give permission to only few IPs to view, how to implement this thing? This is the link to the app. https://myirisapp.azurewebsites.net

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,994 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,621 Reputation points
    2020-11-02T10:37:21.283+00:00

    Thanks for asking question! If I have understood right you want to implement IP restriction.

    Access restrictions enable you to define a priority ordered allow/deny list that controls network access to your app.

    To add an access restriction rule from Azure Portal to your app, use the menu to open Network>Access Restrictions and click on Configure Access Restrictions.

    36826-inkeddemonet1-li.jpg

    Please refer to Azure App Service access restrictions for details

    For adding an access restriction in case of Azure PowerShell:

    Add-AzWebAppAccessRestrictionRule -ResourceGroupName "ResourceGroup" -WebAppName "AppName" -Name "Ip example rule" -Priority 100 -Action Allow -IpAddress 122.133.144.0/24

    Let us know if you have questions on this.

    1 person found this answer helpful.
    0 comments No comments

  2. Junaid Qazi 6 Reputation points
    2020-11-02T11:09:43.777+00:00

    Is it possible to create username/password based access?

    1 person found this answer helpful.

  3. Khurram Rahim 1,841 Reputation points
    2020-11-06T20:15:24.247+00:00
    1 person found this answer helpful.
    0 comments No comments