Let's configure Inbound security rules and Outbound security rules.
In the SETTINGS section, click on Inbound security rules and click on +Add.
Here, we can give the name of the rule and the priority of the rule in the case of execution. To get detailed information on priority, click on the small icon after the label:
We can select from which source traffic should be allowed or restricted, for which protocol, the port range or port number along with the action. The following rule is just an example where any source is allowed to access any port. Observe the Priority given to this:
Let's configure another rule ...