Skip to content

Instantly share code, notes, and snippets.

@snobu
Last active August 23, 2021 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save snobu/4ba8372596011d3d2f7a0bc48b93c15c to your computer and use it in GitHub Desktop.
Save snobu/4ba8372596011d3d2f7a0bc48b93c15c to your computer and use it in GitHub Desktop.
Add/remove IP addresses from Service Bus firewall (Premium SKU)
PUT https://management.azure.com/subscriptions/SUBSCRIPTION_ID/resourcegroups/premiumbus/providers/
Authorization: Bearer eyJ...

{
    "id": "/subscriptions/SUBSCRIPTION_ID/resourcegroups/premiumbus/providers/Microsoft.ServiceBus/
    "properties": {
        "defaultAction": "Deny",
        "ipRules": [
            {"ipMask": "86.125.28.105"},
            {"ipMask": "123.42.42.5"},
            {"ipMask": "6.7.8.9"},
            {"ipMask": "244.244.244.244"},
            {"ipMask": "8.8.8.8"}
        ],
        "virtualNetworkRules": []
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment