To add your local IP address to the Azure SQL Database firewall rules, follow these steps:
- Check Your Permissions: Ensure that your account has the necessary permissions to modify firewall rules. You mentioned having Global Administrator and SQL Database Contributor roles, which should typically allow you to perform this action. If you're still encountering issues, it might be worth checking if there are any additional permissions required or if your role has been correctly assigned.
- Add Your IP Address: You can add your local IP address by using the Azure portal:
- Navigate to your SQL server in the Azure portal.
- Go to the Firewalls and virtual networks settings.
- Click on Add client IP to automatically add your current IP address.
- Alternatively, you can manually enter your IP address and save the changes.
- Refresh Credentials: If you have recently been granted permissions, try refreshing your credentials or logging out and back into the Azure portal to ensure that your permissions are recognized.
- Wait for Changes to Take Effect: After adding your IP address, it may take a few minutes for the changes to propagate. If you still cannot access the database after a few minutes, double-check the firewall settings.
- Check for Dynamic IP Issues: If your local machine uses a dynamic IP address, ensure that you are adding the correct IP address each time you connect. You may want to consider using a static IP address if this is a recurring issue.
If you continue to face issues, consider contacting Azure support for further assistance.
References: