This worked to me
Navigate to the Azure Portal
Under All Services, select Subscriptions
Select the subscription you are using
On the left menu, under Settings, select Resource Providers
Find the provider you need (Microsoft.Network) and click Register
Thanks