0

I have created a vnet and integrate Nsg with it and in Nsg I have allow the my app service all outbound ip's and my local system public ip's. In My App service I have add the above created Vnet and in app service access restriction I added the vnet rule.

Now when I browse app service, it gives error

403 forbidden

I have verified the all ip's rules are allowed in Nsg rule.

Imran
  • 3,875
  • 2
  • 3
  • 12

1 Answers1

0

I tried the same in my environment I got the same error like below:

enter image description here

Created app service and added outbound traffic vnet integration like below:

enter image description here

Vnet integration:

enter image description here

enter image description here

Ensure that virtual network allocated service endpoint Microsoft. Web to allow traffic from your vnet network.

enter image description here

enter image description here

I have allow the my app service all outbound ip's and my local system public ip's

To allow all outbound Ip and local public Ip give address block 0.0.0.0/0 in access restriction this block will allow to access your Ip like below:

enter image description here

Now when I browse app service it's run successfully like below:

enter image description here

  • Check that the appropriate subnet of the virtual network(vnet) is connected to your app service. The NSG rules might not be applied to the traffic if the app service is not connected to the appropriate subnet.
  • For your app service, enable diagnostic logging to obtain more information about the request and possible issues or warnings that might help you identify the problem.
Imran
  • 3,875
  • 2
  • 3
  • 12
  • I don't want to use the access restrictions i want to implement same thing with Nsg which attached with vnet but it's not working any way to achieve that i attach the images below https://imgur.com/a/hlWALdj – Nauman Kyani Jun 06 '23 at 04:34