Quick Tip: Function calling patterns with Azure OpenAI
Quick Tip: Function calling patterns with Azure OpenAI The Problem Many developers struggle to implement AI solutions efficiently on Azure. The Solution Here's a quick command that solves this: # Your command here az resource list --query "[?contains(name, 'searchTerm')]" --output table How it works This command uses JMESPath query syntax to filter resources. The --query parameter allows you to: Filter results based on conditions Transform output format Extract specific fields Example output Name ResourceGroup Location ----------------- --------------- ---------- myResource1 myRG eastus myResource2 myRG westus Why This Works Fast : Queries run server-side Flexible : JMESPath is powerful Readable : Table output is clean Pro Tips Tip 1: Combine with other commands az resource list --query "[?type=='Microsoft.Storage/storageAccounts']" | jq '.[].name' Tip 2: Save as alias # Add to ~/.bashrc or ~/.zshrc alias azfind = 'az resource list --query' Tip 3: Export to CSV az resource list --query
Continue reading on Dev.to Tutorial
Opens in a new tab




