This is a little modification I did from the great library Sandrino Di Mattia created: WindowsAzure.IPAddressRestrictions. The main reason of use this type of libraries is to allow you to configure firewall rules from the Azure Settings Panel without the need to republish the package or to RDP into an instance.
My change will allow you to manage firewall rules directly using allow/block actions, setting a specific port or "all" ports, set a specific IP, range of IPs, multiples IPs, Hosts or also All IPs.
Install-Package WindowsAzure.IPAddressRules -Version 1.0.3
dotnet add package WindowsAzure.IPAddressRules --version 1.0.3
<PackageReference Include="WindowsAzure.IPAddressRules" Version="1.0.3" />
paket add WindowsAzure.IPAddressRules --version 1.0.3
Support for Azure SDK 2.3
This package has no dependencies.