install only from App store or from trusted developers -- MAC

Option 1:

 System Preferences > Security & Privacy > General > Allow applications downloaded from > Anywhere

Option 2:

1.  Hold down "control" button
2.  Click on the app that is triggering the message about the security preferences
3.  Select "open" to override and install/open the application

This allows you to avoid changing the security setting to "anywhere."
i think this 2 options may help

no option to add affinity group to virtual network azure

This option have intentionally been replaced by the Region/Location as you said.
Regional Virtual Networks are supposed to be more appropriate than affinity groups.


Obviously, if you still want to bring back the Affinity group, then try this:
Create a Virtual Network from the Management Portal Download the Virtual Network Configuration File
Edit the appropriate file section to get

VirtualNetworkSitename="VNetDemo" AffinityGroup="VNetDemoAG"


instead of

VirtualNetworkSitename="VNetUSWest" Location="West US"

Then, delete the previously created virtual network and import your file in the management portal to recreate the network with your defined settings