Skip to content

Instantly share code, notes, and snippets.

@henkin
Last active May 21, 2024 18:23
Show Gist options
  • Save henkin/b406e5a71002a26d5716e379d0f76714 to your computer and use it in GitHub Desktop.
Save henkin/b406e5a71002a26d5716e379d0f76714 to your computer and use it in GitHub Desktop.
azure
MYIP=1.2.3.4
# add MYIP to list of allowed IPs for the Azure CosmosDB server s00354ncdbbridgedev using az cli
az cosmosdb firewall-rule create --name AllowMyIP --resource-group grp --account-name accoutn --start-ip-address $MYIP --end-ip-address $MYIP
az cosmosdb firewall-rule create --name AllowMyIP --resource-group grp --account-name accoubnt --start-ip-address 650.46.64.1 --end-ip-address 3.8.54.4
# install the Azure CLI extension for Cosmos DB.
az extension add --name cosmosdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment