I don’t know where the command Get-AzureRmEffectiveNetworkSecurityGroup
came from, but you don’t need the instructions in the SwapFaq link to setup swap, you should follow the swap instructions in How to setup Discourse on Azure.
Specifically did you edit /etc/waagent.conf
and restart your vm?