Hi Handian
Incase you are using Azure Firewall as tagged in this forum, you ca create Azure Firewall Application Rule. Please specify Application Rule as following.
Name | Source Type | Source | Protocal | Destination Type | Destination | |
---|---|---|---|---|---|---|
Rule1 | IP Address | <Your Source VM IP> | https | fqdn | *.azurewebsite.net | |
Rule2 | IP Address | <Your Source VM IP> | mysql | fqdn | *.database.windows.net |
Incase you are using Network Security group to secure you VM, you can setup NSG outbound rule as below.
Source | Source Port Range | Destination | Destination Service Tag | Service | Action | |
---|---|---|---|---|---|---|
Any | * | Service Tag | Sql | MSQL | Allow | |
Any | * | Service Tag | AppService | HTTPS | Allow | |
Any | * | Any | Any | Any | Deny |
Thanks Pisitpong