Block/allow specific IP addresses on Azure Cloud Services

Published Sep 21 2021 06:14 AM 1,634 Views
Microsoft

For certain scenario, the application / website hosted in Azure Cloud Services needs more secure without anonymous access, this blog will introduce below four ways to specify IP address (or a range of IP addresses) could be blocked / allowed from accessing applications running on Azure Cloud Services:

 

  • Using the "IP and Domain Restrictions" feature on cloud services web role via a startup task
  • Adding a firewall rule to block access to an IP address via the below command in the startup task
  • Implementing NSG rule by placing the cloud service in a VNET
  • Implementing ACL on the cloud service

 

- Using the "IP and Domain Restrictions" feature on cloud services web role via a startup task:

You can restrict an Azure web role access to a set of specified IP addresses by modifying your IIS web.config file. Using a command file which unlocks the ipSecurity section of the ApplicationHost.config file.

 

  1. To do unlock the ipSecurity section of the ApplicationHost.config file, create a command file named startup.cmd that runs at role start. Add this file to your Visual Studio project and set the properties to Copy Always to ensure that it is included in your package.     yiyang2_19-1632192556789.png
  2. Add following commands in your startup.cmd file.

 

@echo off
@echo Installing "IPv4 Address and Domain Restrictions" feature 
powershell -ExecutionPolicy Unrestricted -command "Install-WindowsFeature Web-IP-Security"
@echo Unlocking configuration for "IPv4 Address and Domain Restrictions" feature 
%windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security/ipSecurity

 

  1. Add the startup task to the ServiceDefinition.csdef file.

 

<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="BlogSpecificIP" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
  <WebRole name="WebRole1" vmsize="Standard_D1_v2">    
    <Startup>
      <Task commandLine="startup.cmd" executionContext="elevated" />
    </Startup>
  </WebRole>
</ServiceDefinition>

 

  1. Modify the system.webServer section in your web role’s Web.config file to add a list of IP addresses that are granted access, as shown in the following example:

  This sample config allows all IPs to access the server except the one defined.

 

<system.webServer>
	  <security>
		  <!--Unlisted IP addresses are granted access-->
		  <ipSecurity>
			  <!--The following IP addresses are denied access-->
			  <add allowed="false" ipAddress="denied IP address" subnetMask="releated subnetMask" />			  
		  </ipSecurity>
	  </security>	  
  </system.webServer>

 

This sample config denies all IPs to access the server except the one defined.

 

<system.webServer>
	  <security>
		  <!--Unlisted IP addresses are granted access-->
		  <ipSecurity>
			  <!--The following IP addresses are denied access-->
			  <add allowed="true" ipAddress="allowed IP address" subnetMask="releated subnetMask" />			  
		  </ipSecurity>
	  </security>	  
  </system.webServer>

 

  1. If you use deny configuration for specific IPs, you may see the following page when you try to connect to your cloud service from the denied IP address.

yiyang2_0-1632280525237.png

 

 

 Refer more details via https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-startup-tasks-common#block-a-sp...

 

- Adding a firewall rule to block access to an IP address via the below command in the startup task

 

In Azure, there are effectively two firewalls. The first firewall controls connections between the virtual machine and the outside world. It is controlled by the EndPoints element in the ServiceDefinition.csdef file.

 

In this guide, we focus on the second firewall. It controls connections between the virtual machine and the processes within that virtual machine. This firewall can be controlled by the netsh advfirewall firewall command-line tool.

 

Azure creates firewall rules for the processes started within your roles. These firewall rules can be created by using a startup task. A startup task that creates a firewall rule must have an executionContext of elevated.

 

  1. Add the startup task to the ServiceDefinition.csdef file.

 

<ServiceDefinition name="Blogfirewallblock" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
  <WebRole name="WebRole1" vmsize="Standard_D1_v2">   
    <Startup>
      <Task commandLine="BlockIP.cmd" executionContext="elevated" taskType="simple" />
    </Startup>
  </WebRole>
</ServiceDefinition>

 

  1. In this example, the firewall try to block some specific IPs. Add following commands to your start up task file.

 

REM   Add a firewall rule in a startup task.

REM   Add an inbound rule requiring Block IPs
netsh advfirewall firewall add rule name="Blacklisted IP" dir=in interface=any action=block remoteip= your denied IP

REM   If an error occurred, return the errorlevel.
EXIT /B %errorlevel%

 

 

  1. After deploying it, if you try to visit the cloud service site URL from the IP address above. You will see the following message.

yiyang2_1-1632280984583.png

 

Refer more details via https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-startup-tasks-common#add-firewa...

 

- Implementing NSG rule by placing the cloud service in a VNET:

 

You can use the Network Security Groups(NSG) to block some IPs. You can add different rules in one NSG and config this NSG to your cloud service’s VNet.

 

Firstly, you need to have a NSG with rules that can block the target IPs. You can use portal to create the NSG and add rules in it.

 

The following lines config a subnet with an existing NSG to your cloud service. You can add the following lines in your ServiceConfiguration.Cloud.cscfg file and redeploy your cloud .

 

<NetworkConfiguration>
		<VirtualNetworkSite name="Your cloud service Vnet name" />
		<AddressAssignments>
			<InstanceAddress roleName="The instance role name">
				<Subnets>
					<Subnet name="Your cloud service Subnet name" />
				</Subnets>
			</InstanceAddress>
		</AddressAssignments>
	<NetworkSecurityGroupRefs>
		<NetworkSecurityGroupRef roleName="The instance role name">
			<NetworkSecurityGroup name="Your existing NSG name"/>
		</NetworkSecurityGroupRef>			
		</NetworkSecurityGroupRefs>
	</NetworkConfiguration>

 

 

There is another way if you prefer to config the NSG to the VNet from the portal. This method is more suitable for an existing cloud service that already had a VNet and do not want to redeploy the whole cloud service.

 

If your cloud service does not have a VNet and also want to config the following steps from the portal, you may need to config a VNet in the ServiceConfiguration.Cloud.cscfg firstly and redeploy it, and then follow the below steps.

 

Since we have a cloud service (classic) here, all related resources should also be classic resources.

 

  1. You need to create a NSG classic and add some rules that block target IPs.

yiyang2_12-1632192225161.png

  1. In this case, we add an inbound rule and reject my local host IP visit the site.

yiyang2_13-1632192225166.png

 

  1. Put my IP address in the source IP resource range. You can also reject a range of IPs here.

yiyang2_14-1632192225171.png

 

  1. You need to config this NSG to your cloud service VNet.

Picture3.png

  1. When we tried to visit the cloud service URL from Microsoft Edge browser, we can see the following message.

yiyang2_2-1632281046340.png

 

 

Refer more details via https://docs.microsoft.com/en-us/archive/blogs/igorpag/azure-network-security-groups-nsg-best-practi...

 

- Implementing ACL on the cloud service:

Please keep in mind the Network/Endpoint ACLs is however not compatible with NSG, so use either one of them.

Network (or Endpoint) Access Control List (ACL) are the key to protecting Web or Worker role public endpoints and controlling that type of access to them.

  1. In the ServiceConfiguration.Cloud.cscfg file, you can add the NetworkConfiguration element with the required ACL information within to control allowed IPs.
    <NetworkConfiguration>
        <AccessControls>
          <AccessControl name="test">
            <Rule action="permit" description="test" order="100" remoteSubnet="52.139.239.219/32" />
            <Rule action="deny" description="test" order="200" remoteSubnet="0.0.0.0/0" />
          </AccessControl>
        </AccessControls>
    	  <EndpointAcls>
    		  <EndpointAcl role="WebRole1" endPoint="Endpoint1" accessControl="test" />
    	  </EndpointAcls>
      </NetworkConfiguration>​

In this “test” ACL, we have created “permit” and “deny” rules, which will be evaluated by their numerical order. So rule 100 will be evaluated before 200. In the permit rule, we allowed my local host IP address to access the Web role (note that this must be in CIDR format, so we have to append with a /32 which denotes a subnet range consisting of this one IP address), but in the second deny rule, we denyed any and all other IP addresses from accessing the Web role (which includes any Azure machines that access the public endpoint). Now look at the EndpointAcls section. We have specified that this combination of Web role and endpoint will use the ACL named “test”.

 

  1. After publishing this cloud service, we try to access the Web role from my local IP and it is available.

yiyang2_2-1632194082378.png

 

  1. We now try to access the Web role from a browser in one of Azure virtual machines, which fails as it should.

yiyang2_3-1632281163800.png

 

 

Refer more details via https://docs.microsoft.com/en-us/archive/blogs/walterm/windows-azure-paas-acls-are-here

 

 

 

Working Scope

IP blocking in IIS

WebRole

IP blocking in OS Firewall

Windows OS

VNET NSG

Subnet

Network ACL

Cloud Service Endpoint

 

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2769203%22%20slang%3D%22en-US%22%3EBlock%2Fallow%20specific%20IP%20addresses%20on%20Azure%20Cloud%20Services%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2769203%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20certain%20scenario%2C%20the%20application%20%2F%20website%20hosted%20in%20Azure%20Cloud%20Services%20needs%20more%20secure%20without%20anonymous%20access%2C%20this%20blog%20will%20introduce%20below%20four%20ways%20to%20specify%20IP%20address%20(or%20a%20range%20of%20IP%20addresses)%20could%20be%20blocked%20%2F%20allowed%20from%20accessing%20applications%20running%20on%20Azure%20Cloud%20Services%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUsing%20the%20%22IP%20and%20Domain%20Restrictions%22%20feature%20on%20cloud%20services%20web%20role%20via%20a%20startup%20task%3C%2FLI%3E%0A%3CLI%3EAdding%20a%20firewall%20rule%20to%20block%20access%20to%20an%20IP%20address%20via%20the%20below%20command%20in%20the%20startup%20task%3C%2FLI%3E%0A%3CLI%3EImplementing%20NSG%20rule%20by%20placing%20the%20cloud%20service%20in%20a%20VNET%3C%2FLI%3E%0A%3CLI%3EImplementing%20ACL%20on%20the%20cloud%20service%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-%20Using%20the%20%22IP%20and%20Domain%20Restrictions%22%20feature%20on%20cloud%20services%20web%20role%20via%20a%20startup%20task%3A%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20restrict%20an%20Azure%20web%20role%20access%20to%20a%20set%20of%20specified%20IP%20addresses%20by%20modifying%20your%20IIS%26nbsp%3Bweb.config%26nbsp%3Bfile.%20Using%20a%20command%20file%20which%20unlocks%20the%26nbsp%3BipSecurity%26nbsp%3Bsection%20of%20the%26nbsp%3BApplicationHost.config%26nbsp%3Bfile.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ETo%20do%20unlock%20the%26nbsp%3BipSecurity%26nbsp%3Bsection%20of%20the%26nbsp%3BApplicationHost.config%26nbsp%3Bfile%2C%20create%20a%20command%20file%20named%20%3CEM%3Estartup.cmd%3C%2FEM%3E%20that%20runs%20at%20role%20start.%20Add%20this%20file%20to%20your%20Visual%20Studio%20project%20and%20set%20the%20properties%20to%26nbsp%3B%3CEM%3ECopy%20Always%3C%2FEM%3E%26nbsp%3Bto%20ensure%20that%20it%20is%20included%20in%20your%20package.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_19-1632192556789.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311728i72FF87ED1E235AAB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_19-1632192556789.png%22%20alt%3D%22yiyang2_19-1632192556789.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20following%20commands%20in%20your%20%3CEM%3Estartup.cmd%3C%2FEM%3E%20file.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%40echo%20off%0A%40echo%20Installing%20%22IPv4%20Address%20and%20Domain%20Restrictions%22%20feature%20%0Apowershell%20-ExecutionPolicy%20Unrestricted%20-command%20%22Install-WindowsFeature%20Web-IP-Security%22%0A%40echo%20Unlocking%20configuration%20for%20%22IPv4%20Address%20and%20Domain%20Restrictions%22%20feature%20%0A%25windir%25%5Csystem32%5Cinetsrv%5CAppCmd.exe%20unlock%20config%20-section%3Asystem.webServer%2Fsecurity%2FipSecurity%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EAdd%20the%20startup%20task%20to%20the%26nbsp%3B%3CEM%3EServiceDefinition.csdef%3C%2FEM%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3Efile.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%0A%3CSERVICEDEFINITION%20name%3D%22BlogSpecificIP%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2FServiceHosting%2F2008%2F10%2FServiceDefinition%22%20schemaversion%3D%222015-04.2.6%22%3E%0A%20%20%3CWEBROLE%20name%3D%22WebRole1%22%20vmsize%3D%22Standard_D1_v2%22%3E%20%20%20%20%0A%20%20%20%20%3CSTARTUP%3E%0A%20%20%20%20%20%20%3CTASK%20commandline%3D%22startup.cmd%22%20executioncontext%3D%22elevated%22%3E%3C%2FTASK%3E%0A%20%20%20%20%3C%2FSTARTUP%3E%0A%20%20%3C%2FWEBROLE%3E%0A%3C%2FSERVICEDEFINITION%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EModify%20the%26nbsp%3B%3CEM%3Esystem.webServer%3C%2FEM%3E%20section%26nbsp%3Bin%20your%20web%20role%E2%80%99s%26nbsp%3B%3CEM%3EWeb.config%26nbsp%3B%3C%2FEM%3Efile%20to%20add%20a%20list%20of%20IP%20addresses%20that%20are%20granted%20access%2C%20as%20shown%20in%20the%20following%20example%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%20This%20sample%20config%26nbsp%3Ballows%26nbsp%3Ball%20IPs%20to%20access%20the%20server%20except%20the%20one%20defined.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CSYSTEM.WEBSERVER%3E%0A%20%20%20%3CSECURITY%3E%0A%20%20%20%20%3C!--Unlisted%20IP%20addresses%20are%20granted%20access--%3E%0A%20%20%20%20%3CIPSECURITY%3E%0A%20%20%20%20%20%3C!--The%20following%20IP%20addresses%20are%20denied%20access--%3E%0A%20%20%20%20%20%3CADD%20allowed%3D%22false%22%20ipaddress%3D%22denied%20IP%20address%22%20subnetmask%3D%22releated%20subnetMask%22%3E%3C%2FADD%3E%20%20%20%20%20%0A%20%20%20%20%3C%2FIPSECURITY%3E%0A%20%20%20%3C%2FSECURITY%3E%20%20%20%0A%20%20%3C%2FSYSTEM.WEBSERVER%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EThis%20sample%20config%20denies%20all%20IPs%20to%20access%20the%20server%20except%20the%20one%20defined.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CSYSTEM.WEBSERVER%3E%0A%20%20%20%3CSECURITY%3E%0A%20%20%20%20%3C!--Unlisted%20IP%20addresses%20are%20granted%20access--%3E%0A%20%20%20%20%3CIPSECURITY%3E%0A%20%20%20%20%20%3C!--The%20following%20IP%20addresses%20are%20denied%20access--%3E%0A%20%20%20%20%20%3CADD%20allowed%3D%22true%22%20ipaddress%3D%22allowed%20IP%20address%22%20subnetmask%3D%22releated%20subnetMask%22%3E%3C%2FADD%3E%20%20%20%20%20%0A%20%20%20%20%3C%2FIPSECURITY%3E%0A%20%20%20%3C%2FSECURITY%3E%20%20%20%0A%20%20%3C%2FSYSTEM.WEBSERVER%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EIf%20you%20use%20deny%20configuration%20for%20specific%20IPs%2C%20you%20may%20see%20the%20following%20page%20when%20you%20try%20to%20connect%20to%20your%20cloud%20service%20from%20the%20denied%20IP%20address.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_0-1632280525237.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311925i81457C7087328EDD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_0-1632280525237.png%22%20alt%3D%22yiyang2_0-1632280525237.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3ERefer%20more%20details%20via%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fcloud-services%252Fcloud-services-startup-tasks-common%2523block-a-specific-ip-address%26amp%3Bdata%3D04%257C01%257CVipin.Dwivedi%2540microsoft.com%257Cb23326359d57485ca88008d8878af377%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637408378188400246%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DQnY9nfeRuOanbEMUnY2LKNQ1E4LSLFd1jmR2tRv6Sz0%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcloud-services%2Fcloud-services-startup-tasks-common%23block-a-specific-ip-address%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-%20Adding%20a%20firewall%20rule%20to%20block%20access%20to%20an%20IP%20address%20via%20the%20below%20command%20in%20the%20startup%20task%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Azure%2C%20there%20are%20effectively%20two%20firewalls.%20The%20first%20firewall%20controls%20connections%20between%20the%20virtual%20machine%20and%20the%20outside%20world.%20It%20is%20controlled%20by%20the%26nbsp%3B%3CEM%3EEndPoints%3C%2FEM%3E%26nbsp%3Belement%20in%20the%26nbsp%3B%3CEM%3EServiceDefinition.csdef%3C%2FEM%3E%26nbsp%3Bfile.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20guide%2C%20we%20focus%20on%20the%20second%20firewall.%20It%20controls%20connections%20between%20the%20virtual%20machine%20and%20the%20processes%20within%20that%20virtual%20machine.%20This%20firewall%20can%20be%20controlled%20by%20the%26nbsp%3B%3CEM%3Enetsh%20advfirewall%20firewall%3C%2FEM%3E%26nbsp%3Bcommand-line%20tool.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20creates%20firewall%20rules%20for%20the%20processes%20started%20within%20your%20roles.%20These%20firewall%20rules%20can%20be%20created%20by%20using%20a%20startup%20task.%20A%20startup%20task%20that%20creates%20a%20firewall%20rule%20must%20have%20an%26nbsp%3BexecutionContext%26nbsp%3Bof%26nbsp%3Belevated%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EAdd%20the%20startup%20task%20to%20the%26nbsp%3B%3CEM%3EServiceDefinition.csdef%3C%2FEM%3E%26nbsp%3Bfile.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3CSERVICEDEFINITION%20name%3D%22Blogfirewallblock%22%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2FServiceHosting%2F2008%2F10%2FServiceDefinition%22%20schemaversion%3D%222015-04.2.6%22%3E%0A%20%20%3CWEBROLE%20name%3D%22WebRole1%22%20vmsize%3D%22Standard_D1_v2%22%3E%20%20%20%0A%20%20%20%20%3CSTARTUP%3E%0A%20%20%20%20%20%20%3CTASK%20commandline%3D%22BlockIP.cmd%22%20executioncontext%3D%22elevated%22%20tasktype%3D%22simple%22%3E%3C%2FTASK%3E%0A%20%20%20%20%3C%2FSTARTUP%3E%0A%20%20%3C%2FWEBROLE%3E%0A%3C%2FSERVICEDEFINITION%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EIn%20this%20example%2C%20the%20firewall%20try%20to%20block%20some%20specific%20IPs.%20Add%20following%20commands%20to%20your%20start%20up%20task%20file.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3EREM%20%20%20Add%20a%20firewall%20rule%20in%20a%20startup%20task.%0A%0AREM%20%20%20Add%20an%20inbound%20rule%20requiring%20Block%20IPs%0Anetsh%20advfirewall%20firewall%20add%20rule%20name%3D%22Blacklisted%20IP%22%20dir%3Din%20interface%3Dany%20action%3Dblock%20remoteip%3D%20your%20denied%20IP%0A%0AREM%20%20%20If%20an%20error%20occurred%2C%20return%20the%20errorlevel.%0AEXIT%20%2FB%20%25errorlevel%25%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EAfter%20deploying%20it%2C%20if%20you%20try%20to%20visit%20the%20cloud%20service%20site%20URL%20from%20the%20IP%20address%20above.%20You%20will%20see%20the%20following%20message.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_1-1632280984583.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311926i023E6F547EF08CF9%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_1-1632280984583.png%22%20alt%3D%22yiyang2_1-1632280984583.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERefer%20more%20details%20via%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fcloud-services%252Fcloud-services-startup-tasks-common%2523add-firewall-rules%26amp%3Bdata%3D04%257C01%257CVipin.Dwivedi%2540microsoft.com%257Cb23326359d57485ca88008d8878af377%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637408378188400246%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3Dci8lGH8E9y5cgWSFCpCyTx5%252BEqRBV4fF6EXFu3AHcMU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fcloud-services%2Fcloud-services-startup-tasks-common%23add-firewall-rules%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E-%20%3CSTRONG%3EImplementing%20NSG%20rule%20by%20placing%20the%20cloud%20service%20in%20a%20VNET%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20use%20the%20Network%20Security%20Groups(NSG)%20to%20block%20some%20IPs.%20You%20can%20add%20different%20rules%20in%20one%20NSG%20and%20config%20this%20NSG%20to%20your%20cloud%20service%E2%80%99s%20VNet.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirstly%2C%20you%20need%20to%20have%20a%20NSG%20with%20rules%20that%20can%20block%20the%20target%20IPs.%20You%20can%20use%20portal%20to%20create%20the%20NSG%20and%20add%20rules%20in%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20following%20lines%20config%20a%20subnet%20with%20an%20existing%20NSG%20to%20your%20cloud%20service.%20You%20can%20add%20the%20following%20lines%20in%20your%20%3CEM%3EServiceConfiguration.Cloud.cscfg%3C%2FEM%3E%20file%20and%20redeploy%20your%20cloud%20.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CNETWORKCONFIGURATION%3E%0A%20%20%3CVIRTUALNETWORKSITE%20name%3D%22Your%20cloud%20service%20Vnet%20name%22%3E%3C%2FVIRTUALNETWORKSITE%3E%0A%20%20%3CADDRESSASSIGNMENTS%3E%0A%20%20%20%3CINSTANCEADDRESS%20rolename%3D%22The%20instance%20role%20name%22%3E%0A%20%20%20%20%3CSUBNETS%3E%0A%20%20%20%20%20%3CSUBNET%20name%3D%22Your%20cloud%20service%20Subnet%20name%22%3E%3C%2FSUBNET%3E%0A%20%20%20%20%3C%2FSUBNETS%3E%0A%20%20%20%3C%2FINSTANCEADDRESS%3E%0A%20%20%3C%2FADDRESSASSIGNMENTS%3E%0A%20%3CNETWORKSECURITYGROUPREFS%3E%0A%20%20%3CNETWORKSECURITYGROUPREF%20rolename%3D%22The%20instance%20role%20name%22%3E%0A%20%20%20%3CNETWORKSECURITYGROUP%20name%3D%22Your%20existing%20NSG%20name%22%3E%3C%2FNETWORKSECURITYGROUP%3E%0A%20%20%3C%2FNETWORKSECURITYGROUPREF%3E%20%20%20%0A%20%20%3C%2FNETWORKSECURITYGROUPREFS%3E%0A%20%3C%2FNETWORKCONFIGURATION%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20is%20another%20way%20if%20you%20prefer%20to%20config%20the%20NSG%20to%20the%20VNet%20from%20the%20portal.%20This%20method%20is%20more%20suitable%20for%20an%20existing%20cloud%20service%20that%20already%20had%20a%20VNet%20and%20do%20not%20want%20to%20redeploy%20the%20whole%20cloud%20service.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20your%20cloud%20service%20does%20not%20have%20a%20VNet%20and%20also%20want%20to%20config%20the%20following%20steps%20from%20the%20portal%2C%20you%20may%20need%20to%20config%20a%20VNet%20in%20the%20%3CEM%3EServiceConfiguration.Cloud.cscfg%20%3C%2FEM%3Efirstly%20and%20redeploy%20it%2C%20and%20then%20follow%20the%20below%20steps.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20we%20have%20a%20cloud%20service%20(classic)%20here%2C%20all%20related%20resources%20should%20also%20be%20classic%20resources.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EYou%20need%20to%20create%20a%20NSG%20classic%20and%20add%20some%20rules%20that%20block%20target%20IPs.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_12-1632192225161.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311718i9DD5D506807F3C3C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_12-1632192225161.png%22%20alt%3D%22yiyang2_12-1632192225161.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EIn%20this%20case%2C%20we%20add%20an%20inbound%20rule%20and%20reject%20my%20local%20host%20IP%20visit%20the%20site.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_13-1632192225166.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311719iDA00DAD7FA6CA31D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_13-1632192225166.png%22%20alt%3D%22yiyang2_13-1632192225166.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EPut%20my%20IP%20address%20in%20the%20source%20IP%20resource%20range.%20You%20can%20also%20reject%20a%20range%20of%20IPs%20here.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_14-1632192225171.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311721i409569E6249F3CD5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_14-1632192225171.png%22%20alt%3D%22yiyang2_14-1632192225171.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EYou%20need%20to%20config%20this%20NSG%20to%20your%20cloud%20service%20VNet.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Picture3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311732iBB9782028E3F89BB%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Picture3.png%22%20alt%3D%22Picture3.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3EWhen%20we%20tried%20to%20visit%20the%20cloud%20service%20URL%20from%20Microsoft%20Edge%20browser%2C%20we%20can%20see%20the%20following%20message.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_2-1632281046340.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311927i727F5B27ECD70B3A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_2-1632281046340.png%22%20alt%3D%22yiyang2_2-1632281046340.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERefer%20more%20details%20via%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Farchive%252Fblogs%252Figorpag%252Fazure-network-security-groups-nsg-best-practices-and-lessons-learned%2523nsg-and-azure-cloud-services-paas%26amp%3Bdata%3D04%257C01%257CVipin.Dwivedi%2540microsoft.com%257Cb23326359d57485ca88008d8878af377%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637408378188410206%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DZ0k1kNc3KEL73ivHe3%252FFNT9c9Zsdlv%252FeDHn3Xjw0zuo%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Figorpag%2Fazure-network-security-groups-nsg-best-practices-and-lessons-learned%23nsg-and-azure-cloud-services-paas%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E-%20Implementing%20ACL%20on%20the%20cloud%20service%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EPlease%20keep%20in%20mind%20the%20Network%2FEndpoint%20ACLs%20is%20however%20not%20compatible%20with%20NSG%2C%20so%20use%20either%20one%20of%20them.%3C%2FP%3E%0A%3CP%3ENetwork%20(or%20Endpoint)%20Access%20Control%20List%20(ACL)%20are%20the%20key%20to%20protecting%20Web%20or%20Worker%20role%20public%20endpoints%20and%20controlling%20that%20type%20of%20access%20to%20them.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EIn%20the%20%3CEM%3EServiceConfiguration.Cloud.cscfg%3C%2FEM%3E%20file%2C%20you%20can%20add%20the%26nbsp%3B%3CEM%3ENetworkConfiguration%3C%2FEM%3E%26nbsp%3Belement%20with%20the%20required%20ACL%20information%20within%20to%20control%20allowed%20IPs.%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3CNETWORKCONFIGURATION%3E%0A%20%20%20%20%3CACCESSCONTROLS%3E%0A%20%20%20%20%20%20%3CACCESSCONTROL%20name%3D%22test%22%3E%0A%20%20%20%20%20%20%20%20%3CRULE%20action%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fpermit%22%20description%3D%22test%22%20order%3D%22100%22%20remotesubnet%3D%2252.139.239.219%2F32%22%3E%3C%2FRULE%3E%0A%20%20%20%20%20%20%20%20%3CRULE%20action%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fdeny%22%20description%3D%22test%22%20order%3D%22200%22%20remotesubnet%3D%220.0.0.0%2F0%22%3E%3C%2FRULE%3E%0A%20%20%20%20%20%20%3C%2FACCESSCONTROL%3E%0A%20%20%20%20%3C%2FACCESSCONTROLS%3E%0A%20%20%20%3CENDPOINTACLS%3E%0A%20%20%20%20%3CENDPOINTACL%20role%3D%22WebRole1%22%20endpoint%3D%22Endpoint1%22%20accesscontrol%3D%22test%22%3E%3C%2FENDPOINTACL%3E%0A%20%20%20%3C%2FENDPOINTACLS%3E%0A%20%20%3C%2FNETWORKCONFIGURATION%3E%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3EIn%20this%20%E2%80%9Ctest%E2%80%9D%20ACL%2C%20we%20have%20created%20%E2%80%9Cpermit%E2%80%9D%20and%20%E2%80%9Cdeny%E2%80%9D%20rules%2C%20which%20will%20be%20evaluated%20by%20their%20numerical%20order.%20So%20rule%20100%20will%20be%20evaluated%20before%20200.%20In%20the%26nbsp%3B%3CEM%3Epermit%3C%2FEM%3E%26nbsp%3Brule%2C%20we%20allowed%20my%20local%20host%20IP%20address%20to%20access%20the%20Web%20role%20(note%20that%20this%20must%20be%20in%20CIDR%20format%2C%20so%20we%20have%20to%20append%20with%20a%20%2F32%20which%20denotes%20a%20subnet%20range%20consisting%20of%20this%20one%20IP%20address)%2C%20but%20in%20the%20second%26nbsp%3B%3CEM%3Edeny%3C%2FEM%3E%26nbsp%3Brule%2C%20we%20denyed%20any%20and%20all%26nbsp%3Bother%26nbsp%3BIP%20addresses%20from%20accessing%20the%20Web%20role%20(which%26nbsp%3B%3CEM%3Eincludes%3C%2FEM%3E%26nbsp%3Bany%20Azure%20machines%20that%20access%20the%26nbsp%3B%3CEM%3Epublic%3C%2FEM%3E%26nbsp%3Bendpoint).%20Now%20look%20at%20the%26nbsp%3B%3CEM%3EEndpointAcls%3C%2FEM%3E%26nbsp%3Bsection.%20We%20have%20specified%20that%20this%20combination%20of%20Web%20role%20and%20endpoint%20will%20use%20the%20ACL%20named%20%E2%80%9Ctest%E2%80%9D.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EAfter%20publishing%20this%20cloud%20service%2C%20we%20try%20to%20access%20the%20Web%20role%20from%20my%20local%20IP%20and%20it%20is%20available.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_2-1632194082378.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311734iF87A471E61AC6C8C%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_2-1632194082378.png%22%20alt%3D%22yiyang2_2-1632194082378.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EWe%20now%20try%20to%20access%20the%20Web%20role%20from%20a%20browser%20in%20one%20of%20Azure%20virtual%20machines%2C%20which%20fails%20as%20it%20should.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yiyang2_3-1632281163800.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F311928i9374CD21A2309066%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22yiyang2_3-1632281163800.png%22%20alt%3D%22yiyang2_3-1632281163800.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERefer%20more%20details%20via%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Farchive%252Fblogs%252Fwalterm%252Fwindows-azure-paas-acls-are-here%26amp%3Bdata%3D04%257C01%257CVipin.Dwivedi%2540microsoft.com%257Cb23326359d57485ca88008d8878af377%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637408378188410206%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DXNQZBE%252BBYSGouXmXZ1Gj87cWe1DhGKTVMPZV2MOqL7g%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fwalterm%2Fwindows-azure-paas-acls-are-here%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22180%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22155%22%3E%3CP%3EWorking%20Scope%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22180%22%3E%3CP%3EIP%20blocking%20in%20IIS%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22155%22%3E%3CP%3EWebRole%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22182%22%3E%3CP%3EIP%20blocking%20in%20OS%20Firewall%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22154%22%3E%3CP%3EWindows%20OS%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22180%22%3E%3CP%3EVNET%20NSG%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22155%22%3E%3CP%3ESubnet%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22180%22%3E%3CP%3ENetwork%20ACL%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22162%22%3E%3CP%3ECloud%20Service%20Endpoint%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2769203%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20certain%20scenario%2C%20the%20application%20%2F%20website%20hosted%20in%20Azure%20Cloud%20Services%20needs%20more%20secure%20without%20anonymous%20access%2C%20this%20blog%20will%20introduce%20four%20ways%20to%20block%20%2F%20allow%20specific%20IPs%20or%20range%20of%20IPs%20from%20accessing%20applications%20running%20on%20Azure%20Cloud%20Services.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Sep 23 2021 05:01 AM
Updated by:
www.000webhost.com