Skip to content

Commit 4e9517f

Browse files
committed
update example
1 parent f6c8ee6 commit 4e9517f

File tree

10 files changed

+42
-126
lines changed

10 files changed

+42
-126
lines changed

src/SecurityInsights/SecurityInsights.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@
2424
[assembly: System.Reflection.AssemblyVersionAttribute("3.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27+
28+

src/SecurityInsights/SecurityInsights.Autorest/docs/Update-AzSentinelAlertRuleAction.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,14 @@ Update the action of alert rule.
5151

5252
## EXAMPLES
5353

54-
### Example 1: {{ Add title here }}
54+
### Example 1: Updates an alert rule action
5555
```powershell
56-
{{ Add code here }}
56+
$LogicAppResourceId = Get-AzLogicApp -ResourceGroupName "myLogicAppResourceGroupName" -Name "myLogicAppPlaybookName"
57+
$LogicAppTriggerUri = Get-AzLogicAppTriggerCallbackUrl -ResourceGroupName "myLogicAppResourceGroupName" -Name $LogicAppResourceId.Name -TriggerName "When_a_response_to_an_Azure_Sentinel_alert_is_triggered"
58+
Update-AzSentinelAlertRuleAction -ResourceGroupName "mySentinelResourceGroupName" -workspaceName "myWorkspaceName" -RuleId "48bbf86d-540b-4a7b-9fee-2bd7d810dbed" -LogicAppResourceId ($LogicAppResourceId.Id) -TriggerUri ($LogicAppTriggerUri.Value) -Id ((New-Guid).Guid)
5759
```
5860

59-
```output
60-
{{ Add output here (remove the output block if the example doesn't have an output) }}
61-
```
62-
63-
{{ Add description here }}
64-
65-
### Example 2: {{ Add title here }}
66-
```powershell
67-
{{ Add code here }}
68-
```
69-
70-
```output
71-
{{ Add output here (remove the output block if the example doesn't have an output) }}
72-
```
73-
74-
{{ Add description here }}
61+
This command updates an alert rule action
7562

7663
## PARAMETERS
7764

src/SecurityInsights/SecurityInsights.Autorest/docs/Update-AzSentinelOnboardingState.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,12 @@ Update Sentinel onboarding state
3030

3131
## EXAMPLES
3232

33-
### Example 1: {{ Add title here }}
33+
### Example 1: Update Sentinel onboarding state
3434
```powershell
35-
{{ Add code here }}
35+
Update-AzSentinelOnboardingState -ResourceGroupName "myResourceGroupName" -WorkspaceName "myWorkspaceName" -Name "default"
3636
```
3737

38-
```output
39-
{{ Add output here (remove the output block if the example doesn't have an output) }}
40-
```
41-
42-
{{ Add description here }}
43-
44-
### Example 2: {{ Add title here }}
45-
```powershell
46-
{{ Add code here }}
47-
```
48-
49-
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
51-
```
52-
53-
{{ Add description here }}
38+
This command updates the onboarding state of Sentinel.
5439

5540
## PARAMETERS
5641

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,8 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Updates an alert rule action
22
```powershell
3-
{{ Add code here }}
3+
$LogicAppResourceId = Get-AzLogicApp -ResourceGroupName "myLogicAppResourceGroupName" -Name "myLogicAppPlaybookName"
4+
$LogicAppTriggerUri = Get-AzLogicAppTriggerCallbackUrl -ResourceGroupName "myLogicAppResourceGroupName" -Name $LogicAppResourceId.Name -TriggerName "When_a_response_to_an_Azure_Sentinel_alert_is_triggered"
5+
Update-AzSentinelAlertRuleAction -ResourceGroupName "mySentinelResourceGroupName" -workspaceName "myWorkspaceName" -RuleId "48bbf86d-540b-4a7b-9fee-2bd7d810dbed" -LogicAppResourceId ($LogicAppResourceId.Id) -TriggerUri ($LogicAppTriggerUri.Value) -Id ((New-Guid).Guid)
46
```
57

6-
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
8-
```
9-
10-
{{ Add description here }}
11-
12-
### Example 2: {{ Add title here }}
13-
```powershell
14-
{{ Add code here }}
15-
```
16-
17-
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
19-
```
20-
21-
{{ Add description here }}
22-
8+
This command updates an alert rule action
Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,6 @@
1-
### Example 1: {{ Add title here }}
1+
### Example 1: Update Sentinel onboarding state
22
```powershell
3-
{{ Add code here }}
3+
Update-AzSentinelOnboardingState -ResourceGroupName "myResourceGroupName" -WorkspaceName "myWorkspaceName" -Name "default"
44
```
55

6-
```output
7-
{{ Add output here (remove the output block if the example doesn't have an output) }}
8-
```
9-
10-
{{ Add description here }}
11-
12-
### Example 2: {{ Add title here }}
13-
```powershell
14-
{{ Add code here }}
15-
```
16-
17-
```output
18-
{{ Add output here (remove the output block if the example doesn't have an output) }}
19-
```
20-
21-
{{ Add description here }}
22-
6+
This command updates the onboarding state of Sentinel.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "26f50af4-8f26-40d1-a067-dbcf42269928"
2+
"generate_Id": "61786739-a6c9-4222-8b06-82085bb36b95"
33
}

src/SecurityInsights/SecurityInsights.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SecurityInsights", "Securit
2121
EndProject
2222
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SecurityInsights.Autorest", "SecurityInsights.Autorest", "{1F2C7E28-510C-0414-601C-25083DE2C7DC}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SecurityInsights", "..\..\generated\SecurityInsights\SecurityInsights.Autorest\Az.SecurityInsights.csproj", "{CCB6F3CB-CB03-4EE9-8264-779710101DAA}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.SecurityInsights", "..\..\generated\SecurityInsights\SecurityInsights.Autorest\Az.SecurityInsights.csproj", "{88BA9687-97AC-4C99-9D2D-452FA951B46F}"
2525
EndProject
2626
Global
2727
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -117,18 +117,18 @@ Global
117117
{F74A1659-4994-47CB-A786-DF83675AD4DF}.Release|x64.Build.0 = Release|Any CPU
118118
{F74A1659-4994-47CB-A786-DF83675AD4DF}.Release|x86.ActiveCfg = Release|Any CPU
119119
{F74A1659-4994-47CB-A786-DF83675AD4DF}.Release|x86.Build.0 = Release|Any CPU
120-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
122-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|x64.ActiveCfg = Debug|Any CPU
123-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|x64.Build.0 = Debug|Any CPU
124-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|x86.ActiveCfg = Debug|Any CPU
125-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Debug|x86.Build.0 = Debug|Any CPU
126-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
127-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|Any CPU.Build.0 = Release|Any CPU
128-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|x64.ActiveCfg = Release|Any CPU
129-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|x64.Build.0 = Release|Any CPU
130-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|x86.ActiveCfg = Release|Any CPU
131-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA}.Release|x86.Build.0 = Release|Any CPU
120+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|x64.ActiveCfg = Debug|Any CPU
123+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|x64.Build.0 = Debug|Any CPU
124+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|x86.ActiveCfg = Debug|Any CPU
125+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Debug|x86.Build.0 = Debug|Any CPU
126+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|Any CPU.Build.0 = Release|Any CPU
128+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|x64.ActiveCfg = Release|Any CPU
129+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|x64.Build.0 = Release|Any CPU
130+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|x86.ActiveCfg = Release|Any CPU
131+
{88BA9687-97AC-4C99-9D2D-452FA951B46F}.Release|x86.Build.0 = Release|Any CPU
132132
EndGlobalSection
133133
GlobalSection(SolutionProperties) = preSolution
134134
HideSolutionNode = FALSE
@@ -140,6 +140,6 @@ Global
140140
{8DD4BC41-DC30-4267-ACBA-93FBD67044D9} = {F3681287-CEBF-4540-A820-B4B174AFF47F}
141141
{0FEAB705-FEE4-4B66-A6E1-F3FF3BA6B04C} = {F3681287-CEBF-4540-A820-B4B174AFF47F}
142142
{453F081C-D5FD-418E-95AF-231F1BAE1E8C} = {F3681287-CEBF-4540-A820-B4B174AFF47F}
143-
{CCB6F3CB-CB03-4EE9-8264-779710101DAA} = {1F2C7E28-510C-0414-601C-25083DE2C7DC}
143+
{88BA9687-97AC-4C99-9D2D-452FA951B46F} = {1F2C7E28-510C-0414-601C-25083DE2C7DC}
144144
EndGlobalSection
145145
EndGlobal

src/SecurityInsights/SecurityInsights/Az.SecurityInsights.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 8/21/2025
6+
# Generated on: 8/25/2025
77
#
88

99
@{

src/SecurityInsights/SecurityInsights/help/Update-AzSentinelAlertRuleAction.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,14 @@ Update the action of alert rule.
5252

5353
## EXAMPLES
5454

55-
### Example 1: {{ Add title here }}
55+
### Example 1: Updates an alert rule action
5656
```powershell
57-
{{ Add code here }}
57+
$LogicAppResourceId = Get-AzLogicApp -ResourceGroupName "myLogicAppResourceGroupName" -Name "myLogicAppPlaybookName"
58+
$LogicAppTriggerUri = Get-AzLogicAppTriggerCallbackUrl -ResourceGroupName "myLogicAppResourceGroupName" -Name $LogicAppResourceId.Name -TriggerName "When_a_response_to_an_Azure_Sentinel_alert_is_triggered"
59+
Update-AzSentinelAlertRuleAction -ResourceGroupName "mySentinelResourceGroupName" -workspaceName "myWorkspaceName" -RuleId "48bbf86d-540b-4a7b-9fee-2bd7d810dbed" -LogicAppResourceId ($LogicAppResourceId.Id) -TriggerUri ($LogicAppTriggerUri.Value) -Id ((New-Guid).Guid)
5860
```
5961

60-
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
65-
66-
### Example 2: {{ Add title here }}
67-
```powershell
68-
{{ Add code here }}
69-
```
70-
71-
```output
72-
{{ Add output here (remove the output block if the example doesn't have an output) }}
73-
```
74-
75-
{{ Add description here }}
62+
This command updates an alert rule action
7663

7764
## PARAMETERS
7865

src/SecurityInsights/SecurityInsights/help/Update-AzSentinelOnboardingState.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,12 @@ Update Sentinel onboarding state
3030

3131
## EXAMPLES
3232

33-
### Example 1: {{ Add title here }}
33+
### Example 1: Update Sentinel onboarding state
3434
```powershell
35-
{{ Add code here }}
35+
Update-AzSentinelOnboardingState -ResourceGroupName "myResourceGroupName" -WorkspaceName "myWorkspaceName" -Name "default"
3636
```
3737

38-
```output
39-
{{ Add output here (remove the output block if the example doesn't have an output) }}
40-
```
41-
42-
{{ Add description here }}
43-
44-
### Example 2: {{ Add title here }}
45-
```powershell
46-
{{ Add code here }}
47-
```
48-
49-
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
51-
```
52-
53-
{{ Add description here }}
38+
This command updates the onboarding state of Sentinel.
5439

5540
## PARAMETERS
5641

0 commit comments

Comments
 (0)