wiki.getshifting.com

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


copilotazureunattacheddisks
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
copilotazureunattacheddisks [2025/12/02 11:08] – created - external edit 127.0.0.1copilotazureunattacheddisks [2025/12/03 07:15] (current) – [Copilot Prompt to Get All Unattached Disks in an Azure Subscription] sjoerd
Line 1: Line 1:
 = Copilot Prompt to Get All Unattached Disks in an Azure Subscription = = Copilot Prompt to Get All Unattached Disks in an Azure Subscription =
  
-**Summary**: This wiki pgae shows how I used copilot to get all unattached disks in an Azure subscription. \\+**Summary**: This wiki page shows how I used copilot to get all unattached disks in an Azure subscription. It's part of the 'copilot' tag series in which I showcase the use of copilot in infrastructure related tasks.\\
 **Date**: 2 December 2025 \\ **Date**: 2 December 2025 \\
 {{tag>copilot azure powershell azurecli}} {{tag>copilot azure powershell azurecli}}
  
-I've been using copilot for a while now, and I keep noticing how much need to do to get working output. I wanted to share these lessons with the tag 'copilot' to create an overview for myself.+I've been using copilot for a while now, and I mostly use it without using a prompt. let it finish my sentences, or create a small comment and wait for a few seconds to let copilot to give me some hints on how to proceedBut sometimes also use a prompt, and on this page I show you how I used some prompts to create a script.
  
 The hard facts: The hard facts:
  
 * IDE: VS Code, 1.106.3 * IDE: VS Code, 1.106.3
-* Copilot Version: 1.388.0+* Copilot Extension Version: 1.388.0 
 +* Model: Claude Sonnet 4
  
 = The Prompt = = The Prompt =
Line 165: Line 166:
 Originally, copilot had a very easy to read query, with every field in a separate line. However, that gave the following error: Originally, copilot had a very easy to read query, with every field in a separate line. However, that gave the following error:
  
-<pre>+<code>
 ERROR: argument --query: invalid jmespath_type value: "[?diskState=='Unattached'].{" ERROR: argument --query: invalid jmespath_type value: "[?diskState=='Unattached'].{"
 To learn more about --query, please visit: 'https://learn.microsoft.com/cli/azure/query-azure-cli' To learn more about --query, please visit: 'https://learn.microsoft.com/cli/azure/query-azure-cli'
-</pre>+</code>
  
 I updated the query to be just on one line, which solved the issue. I updated the query to be just on one line, which solved the issue.
copilotazureunattacheddisks.1764673686.txt.gz · Last modified: by 127.0.0.1