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/generate-powershell-scripts.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,31 +1,31 @@
1
1
---
2
-
title: Generate Azure PowerShell scripts using Microsoft Copilot for Azure
3
-
description: Learn about scenarios where Microsoft Copilot for Azure can generate Azure PowerShell scripts for you to customize and use.
2
+
title: Generate PowerShell scripts using Microsoft Copilot for Azure
3
+
description: Learn about scenarios where Microsoft Copilot for Azure can generate PowerShell scripts for you to customize and use.
4
4
ms.date: 05/21/2024
5
5
ms.topic: conceptual
6
6
ms.service: copilot-for-azure
7
7
ms.author: jenhayes
8
8
author: JnHs
9
9
---
10
10
11
-
# Generate Azure PowerShell scripts using Microsoft Copilot for Azure
11
+
# Generate PowerShell scripts using Microsoft Copilot for Azure
12
12
13
-
Microsoft Copilot for Azure (preview) can generate [Azure PowerShell](/powershell/azure/) scripts that you can use to create or manage resources.
13
+
Microsoft Copilot for Azure (preview) can generate [PowerShell](/powershell/azure/) scripts that you can use to create or manage resources.
14
14
15
-
When you tell Microsoft Copilot for Azure about a task you want to perform by using Azure PowerShell, it provides a script with the necessary cmdlets. You'll see which placeholder values that you need to update with the actual values based on your environment.
15
+
When you tell Microsoft Copilot for Azure about a task you want to perform by using PowerShell, it provides a script with the necessary cmdlets. You'll see which placeholder values that you need to update with the actual values based on your environment.
Here are a few examples of the kinds of prompts you can use to generate Azure PowerShell scripts. Some prompts return a single cmdlet, while others provide multiple steps walking through the full scenario. Modify these prompts based on your real-life scenarios, or try additional prompts to create different kinds of queries.
23
+
Here are a few examples of the kinds of prompts you can use to generate PowerShell scripts. Some prompts return a single cmdlet, while others provide multiple steps walking through the full scenario. Modify these prompts based on your real-life scenarios, or try additional prompts to create different kinds of queries.
24
24
25
25
- "How do I list the VMs I have running in Azure using PowerShell?"
26
26
- "Create a storage account using PowerShell."
27
27
- "How do I get all quota limits for a subscription using Azure PowerShell?"
28
-
- "Can you show me how to stop all virtual machines in a specific resource group using Azure PowerShell?"
28
+
- "Can you show me how to stop all virtual machines in a specific resource group using PowerShell?"
Copy file name to clipboardExpand all lines: articles/copilot/query-attack-surface.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,11 @@ author: JnHs
15
15
16
16
[Microsoft Defender External Attack Surface Management (Defender EASM)](/azure/external-attack-surface-management/overview) scans inventory assets and collects robust contextual metadata that powers Attack Surface Insights. These insights help an organization understand what their attack surface looks like, where the risk resides, and what assets they need to focus on.
17
17
18
+
> [!IMPORTANT]
19
+
> Use of Copilot for Azure to query Defender EASM is included with Copilot for Security and requires [security compute units (SCUs)](/copilot/security/get-started-security-copilot#security-compute-units). You can provision SCUs and increase or decrease them at any time. For more information on SCUs, see [Get started with Microsoft Copilot](/copilot/security/get-started-security-copilot) and [Manage usage of security compute units](/copilot/security/manage-usage).
20
+
>
21
+
> To use Copilot for Azure to query Defender EASM, you or your admin team must be a member of the appropriate role in Copilot for Security and must have access to a Defender EASM resource. For information on supported roles, see [Understand authentication in Microsoft Copilot for Security](/copilot/security/authentication).
22
+
18
23
With Microsoft Copilot for Azure (preview), you can use natural language to ask questions and better understand your organization's attack surface. Through Defender EASM's extensive querying capabilities, you can extract asset metadata and key asset information, even if you don't have an advanced Defender EASM querying skillset.
19
24
20
25
When you ask Microsoft Copilot for Azure about your attack surface, it automatically pulls context when possible, based on the current conversation or on the page you're viewing in the Azure portal. If the context isn't clear, you'll be prompted to specify which Defender EASM resource to use.
@@ -29,9 +34,19 @@ Here are a few examples of the kinds of prompts you can use to query attack surf
29
34
30
35
- "Tell me about Defender EASM high priority attack surface insights."
31
36
- "What are my externally facing assets?"
32
-
- "Find all the page and host assets in my inventory with the IP address `<address>`"
37
+
- "Find all the page and host assets in my inventory with the IP address (address)"
33
38
- "Show me all assets that require investigation."
34
39
- "Do I have any domains that are expiring within 30 days?"
40
+
- "What assets are using jQuery version 3.1.0?"
41
+
- "Get the hosts with port X open in my attack surface?"
42
+
- "Which of my assets have a registrant email of `[email protected]`?"
43
+
- "Which of my assets have services containing 'Azure' and vulnerabilities on them?"
44
+
45
+
## Example
46
+
47
+
You can use a natural language query to better understand your attack surface. In this example, the query is "**find all the page and host assets in my inventory with an ip address that is (list of IP addresses)**". Copilot for Azure queries your Defender EASM inventory and provides details about the assets matching your criteria. You can then follow up with additional questions as needed.
48
+
49
+
:::image type="content" source="media/query-attack-surface/query-assets-inventory.png" alt-text="Screenshot showing Copilot in Azure providing results for a natural language attack surface query." lightbox="media/query-attack-surface/query-assets-inventory.png":::
Copy file name to clipboardExpand all lines: articles/copilot/troubleshoot-app-service.md
+21-3Lines changed: 21 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,35 @@ When you ask Microsoft Copilot for Azure for troubleshooting help, it automatica
24
24
25
25
## Sample prompts
26
26
27
-
Here are a few examples of the kinds of prompts you can use to get help with App Service troubleshooting. Modify these prompts based on your real-life scenarios, or try additional prompts to get help with different types of issues.
27
+
Here are a few examples of the kinds of prompts you can use to access troubleshooting tools and understand diagnostic information. Modify these prompts based on your real-life scenarios, or try additional prompts to get help with different types of issues.
28
+
29
+
Troubleshooting:
28
30
29
31
- "My web app is down"
30
-
- "My web app is slow"
32
+
- "Why is my web app slow?"
31
33
- "Enable auto heal"
32
-
- "Take a memory dump"
33
34
- "High CPU issue"
34
35
- "Troubleshoot performance issues with my app"
35
36
- "Analyze app latency?"
37
+
- "Take a memory dump"
38
+
39
+
Understanding available tools:
40
+
41
+
- "Can I track uptime and downtime of my web app over a specific time period?"
42
+
- "Is there a tool that can help me view event logs for my web app?"
43
+
44
+
Proactive practices:
45
+
46
+
- "Risk alerts for my app"
47
+
- "Are there any best practices for availability for this app?"
48
+
- "How can I make my app future-proof"
49
+
50
+
Summarization and explanation:
51
+
36
52
- "Give me a summary of these diagnostics."
53
+
- "Summarize this page."
37
54
- "What does this error mean?"
55
+
- "Can you tell me more about the 3rd diagnostic on this page?"
38
56
- "What are the next steps to resolve this error?"
0 commit comments