microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
263 stars 519 forks source link

fix long running az cli command #759

Closed wotey closed 1 week ago

wotey commented 2 weeks ago

This pull request includes a change to the scripts/inf-manual-destroy.sh file. The change modifies the command used to retrieve the appid value. Previously, the az ad sp list --all command was used with a query to filter the results. The updated code uses the az ad sp list --filter command instead, which directly filters the results based on the displayname value. The output is then parsed using jq to extract the appId. This change enhances the efficiency of the script by directly filtering the required data.