|
1 | 1 | ---
|
2 | 2 | title: Generate Azure CLI scripts using Microsoft Copilot for Azure (preview)
|
3 | 3 | description: Learn about scenarios where Microsoft Copilot for Azure (preview) can generate Azure CLI scripts for you to customize and use.
|
4 |
| -ms.date: 03/25/2024 |
| 4 | +ms.date: 04/25/2024 |
5 | 5 | ms.topic: conceptual
|
6 | 6 | ms.service: copilot-for-azure
|
7 | 7 | ms.custom: ignite-2023, ignite-2023-copilotinAzure, devx-track-azurecli
|
@@ -33,20 +33,21 @@ Here are a few examples of the kinds of prompts you can use to generate Azure CL
|
33 | 33 | - "Create VNet service endpoints for Azure Database for PostgreSQL using CLI"
|
34 | 34 | - "I want to create a function app with a named storage account connection using Azure CLI"
|
35 | 35 | - "How to create an App Service app and deploy code to a staging environment using CLI?"
|
| 36 | +- "I want to use Azure CLI to deploy and manage AKS using a private service endpoint." |
36 | 37 |
|
37 | 38 | ## Examples
|
38 | 39 |
|
39 | 40 | In this example, the prompt "**I want to use Azure CLI to create a web application**" provides a list of steps, along with the necessary Azure CLI commands.
|
40 | 41 |
|
41 | 42 | :::image type="content" source="media/generate-cli-scripts/cli-web-app.png" alt-text="Screenshot of Microsoft Copilot for Azure (preview) providing Azure CLI commands to create a web app.":::
|
42 | 43 |
|
43 |
| -Similarly, you can say "**I want to create a virtual machine using Azure CLI**" to get a step-by-step guide with commands. |
| 44 | +When you follow that request with "**Provide full script**", the commands are shown together in one script. |
44 | 45 |
|
45 |
| -:::image type="content" source="media/generate-cli-scripts/cli-vm.png" alt-text="Screenshot of Microsoft Copilot for Azure (preview) providing Azure CLI commands to create a VM."::: |
| 46 | +:::image type="content" source="media/generate-cli-scripts/cli-web-app-full.png" alt-text="Screenshot of Microsoft Copilot for Azure (preview) providing a full Azure CLI script to create a web app."::: |
46 | 47 |
|
47 |
| -For more detailed scenarios, you can use prompts like "**I want to use Azure CLI to deploy and manage AKS using a private service endpoint**." |
| 48 | +You can also start off by letting Microsoft Copilot for Azure (preview) know that you want the commands all together. For example, you could say "**I want a script to create a low cost VM (all in one codeblock for me to copy and paste)**". |
48 | 49 |
|
49 |
| -:::image type="content" source="media/generate-cli-scripts/cli-aks.png" alt-text="Screenshot of Microsoft Copilot for Azure (preview) providing commands to deploy and manage AKS using a private service endpoint."::: |
| 50 | +:::image type="content" source="media/generate-cli-scripts/cli-vm.png" alt-text="Screenshot of Microsoft Copilot for Azure (preview) providing an Azure CLI script to create a VM."::: |
50 | 51 |
|
51 | 52 | ## Next steps
|
52 | 53 |
|
|
0 commit comments