A few days ago a vulnerability in CosmosDB was announced that allows attackers to access the access keys and thus get into a database.
While Microsoft has disabled the feature that was allowing for the vulnerability, it is strongly recommended that everyone regenerate their access keys. But if you’ve got multiple databases, this can be a slow process.
So, here’s handy script that will do it for you, using the Azure CLI:
| |
You’ll still need to get the keys and update your apps to use the new keys, but this will at least get them all cycled for you!