You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/copilot/execute-commands.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@ author: JnHs
10
10
11
11
# Execute commands using Microsoft Copilot in Azure (preview)
12
12
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.
14
14
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.
16
16
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?"
@@ -33,7 +33,21 @@ Here are a few examples of the kinds of prompts you can use to execute commands.
33
33
34
34
## Examples
35
35
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.":::
0 commit comments