Finding deployed Azure OpenAI resources

Published on

Note: I recently moved from a Ghost application, to an Astro built application. I used to filter out Code Snippets to fix out problems I’d experienced from the main blog feed - I still intend to do this, but at present, they’re mixed in. I’ll fix this soon.

Many organisations want to monitor or identify deployed Azure OpenAI services in your tenant.

This snippet is a command that you can run in your terminal using the Azure CLI to find deployed OpenAI resources.

Code Snippet

az resource list --resource-type Microsoft.CognitiveServices/accounts --output tsv --query "[?kind=='OpenAI'].{Name:name, Kind:kind, CreatedBy:systemData.createdBy, CreatedAt:systemData.createdAt, Id: id}" > openai.tsv

Example of output

In an openai.tsv file, you’ll see output like this:

<resource group name> <resource type> <email, like name@domain.tld> <date of creation> and <full ID for the resource>