DEV Community

Cover image for using jq to handle az graph output
Antoine
Antoine

Posted on

1 1

using jq to handle az graph output

Photo by Raphael Renter on Unsplash

I had to improve the az graph query due to a change in tsv format provided by az graph to a csv produced by jq.

Reminder:

IFS_old=$IFS;
IFS=$'\n';
az graph query -q "where type =~ 'Microsoft.Web/sites' and kind=~'$type' | project name, resourceGroup" | jq '.data[] | [.name, .resourceGroup] | @csv' -r | for i in ` awk -F ',' '{print " --name " $1 " --resource-group " $2 }' ` ; do eval "az webapp config appsettings set $i --settings WEBSITE_RUN_FROM_PACKAGE='$PackageLink' " ;done;
IFS=$IFS_old;
Enter fullscreen mode Exit fullscreen mode

Useful Links:

Hope this helps

Image of AssemblyAI tool

Transforming Interviews into Publishable Stories with AssemblyAI

Insightview is a modern web application that streamlines the interview workflow for journalists. By leveraging AssemblyAI's LeMUR and Universal-2 technology, it transforms raw interview recordings into structured, actionable content, dramatically reducing the time from recording to publication.

Key Features:
🎥 Audio/video file upload with real-time preview
🗣️ Advanced transcription with speaker identification
⭐ Automatic highlight extraction of key moments
✍️ AI-powered article draft generation
📤 Export interview's subtitles in VTT format

Read full post

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay