Skip to content

Commit aca93b4

Browse files
committed
examples
1 parent abf44bf commit aca93b4

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

articles/copilot/execute-commands.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ author: JnHs
1010

1111
# Execute commands using Microsoft Copilot in Azure (preview)
1212

13-
Microsoft Copilot in Azure (preview) can help you execute individual or bulk commands on your resources. With Copilot in Azure, you can save time by prompting Copilot for Azure with natural language, rather than manually navigating to a resource and selecting a button in a resource's command bar.
13+
Microsoft Copilot in Azure (preview) can help you execute individual or bulk commands on your resources. With Copilot in Azure, you can save time by prompting Copilot in Azure with natural language, rather than manually navigating to a resource and selecting a button in a resource's command bar.
1414

15-
For example, you can restart your virtual machines by using prompts like "Restart my VM named ContosoDemo" or "Stop my VMs in West US 2." Copilot for Azure infers relevant resources inferred through an Azure Resource Graph query and determines the relevant command. Next, it asks you to confirm the action. Commands are never executed without your explicit confirmation. Once the command has been executed, you can track progress in the notification pane, just as if you manually ran the command from within the Azure portal. For faster responses, specify the resource ID of the resources that you want to run the command on.
15+
For example, you can restart your virtual machines by using prompts like "Restart my VM named ContosoDemo" or "Stop my VMs in West US 2." Copilot in Azure infers relevant resources inferred through an Azure Resource Graph query and determines the relevant command. Next, it asks you to confirm the action. Commands are never executed without your explicit confirmation. Once the command has been executed, you can track progress in the notification pane, just as if you manually ran the command from within the Azure portal. For faster responses, specify the resource ID of the resources that you want to run the command on.
1616

17-
Copilot for Azure can execute many common commands on your behalf, as long as you have the permissions to perform them yourself. If Copilot for Azure is unable to run a command for you, it will generally provide instructions to help you perform the task yourself. To learn more about which commands you can execute with natural language for a resource or service, you can ask Copilot for Azure directly. For instance, you can say "Which commands can you help me perform on virtual machines?"
17+
Copilot in Azure can execute many common commands on your behalf, as long as you have the permissions to perform them yourself. If Copilot in Azure is unable to run a command for you, it will generally provide instructions to help you perform the task yourself. To learn more about which commands you can execute with natural language for a resource or service, you can ask Copilot in Azure directly. For instance, you can say "Which commands can you help me perform on virtual machines?"
1818

1919
[!INCLUDE [scenario-note](includes/scenario-note.md)]
2020

@@ -33,7 +33,21 @@ Here are a few examples of the kinds of prompts you can use to execute commands.
3333

3434
## Examples
3535

36-
TK
36+
When you say **"Restore my deleted storage account**, Copilot in Azure launches the **Restored deleted account** experience. From here, you can select the subscription and the storage account that you want to recover.
37+
38+
:::image type="content" source="media/execute-commands/restore-deleted-account.png" alt-text="Screenshot of Microsoft Copilot in Azure responding to a request to restore a deleted storage account.":::
39+
40+
If you say **"Find the VMs running right now and stop them"**, Copilot in Azure first queries to find all VMs running in your selected subscriptions. It then shows you the results and asks you to confirm that the selected VMs should be stopped. You can uncheck a box to exclude a resource from the command. After you confirm, the command is run, with progress shown in your notifications.
41+
42+
:::image type="content" source="media/execute-commands/stop-running-vms.png" alt-text="Screenshot showing Copilot in Azure responding to a request to stop running VMs.":::
43+
44+
Similarly, if you say **"Delete my VMs in West US 2"**, Copilot in Azure runs a query and then asks you to confirm before running the delete command.
45+
46+
:::image type="content" source="media/execute-commands/delete-vms.png" alt-text="Screenshot of Copilot in Azure responding to a request to delete VMs.":::
47+
48+
You can also specify the resource name in your prompt. When you say things like **"Restart my VM named ContosoDemo**", Copilot in Azure looks for that resource, then prompts you to confirm the operation.
49+
50+
:::image type="content" source="media/execute-commands/restart-vm.jpg" alt-text="Screenshot of Copilot in Azure responding to a request to restart a VM.":::
3751

3852
## Next steps
3953

39.3 KB
Loading
55.2 KB
Loading
63 KB
Loading
51.4 KB
Loading
42.5 KB
Loading

0 commit comments

Comments
 (0)