Skip to content

Commit d86205f

Browse files
authored
[Monitor] Generate UX folder and update UX folder (Azure#21744)
* generate UX folder * generate UX folder * generate UX folder * generate UX folder
1 parent 60adce3 commit d86205f

File tree

5 files changed

+438
-0
lines changed

5 files changed

+438
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "activityLogAlerts",
3+
"apiVersion": "2020-10-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.monitor"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzActivityLogAlert",
10+
"description": "Get an Activity Log Alert rule.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/get-azactivitylogalert"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Get an Activity Log Alert rule.",
29+
"parameters": [
30+
{
31+
"name": "-Name",
32+
"value": "[Path.activityLogAlertName]"
33+
},
34+
{
35+
"name": "-ResourceGroupName",
36+
"value": "[Path.resourceGroupName]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
46+
{
47+
"name": "Remove-AzActivityLogAlert",
48+
"description": "Delete an Activity Log Alert rule.",
49+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/activityLogAlerts/{activityLogAlertName}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/remove-azactivitylogalert"
53+
},
54+
"parameterSets": [
55+
{
56+
"parameters": [
57+
"-Name <String>",
58+
"-ResourceGroupName <String>",
59+
"[-SubscriptionId <String>]"
60+
]
61+
}
62+
]
63+
},
64+
"examples": [
65+
{
66+
"description": "Delete an Activity Log Alert rule.",
67+
"parameters": [
68+
{
69+
"name": "-Name",
70+
"value": "[Path.activityLogAlertName]"
71+
},
72+
{
73+
"name": "-ResourceGroupName",
74+
"value": "[Path.resourceGroupName]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
}
84+
]
85+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"resourceType": "autoscalesettings",
3+
"apiVersion": "2022-10-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.monitor"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzAutoscaleSetting",
10+
"description": "Gets an autoscale setting",
11+
"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/get-azautoscalesetting"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Gets an autoscale setting",
29+
"parameters": [
30+
{
31+
"name": "-Name",
32+
"value": "[Path.autoscaleSettingName]"
33+
},
34+
{
35+
"name": "-ResourceGroupName",
36+
"value": "[Path.resourceGroupName]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
46+
{
47+
"name": "Remove-AzAutoscaleSetting",
48+
"description": "Deletes and autoscale setting",
49+
"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/autoscalesettings/{autoscaleSettingName}",
50+
"help": {
51+
"learnMore": {
52+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/remove-azautoscalesetting"
53+
},
54+
"parameterSets": [
55+
{
56+
"parameters": [
57+
"-Name <String>",
58+
"-ResourceGroupName <String>",
59+
"[-SubscriptionId <String>]"
60+
]
61+
}
62+
]
63+
},
64+
"examples": [
65+
{
66+
"description": "Deletes and autoscale setting",
67+
"parameters": [
68+
{
69+
"name": "-Name",
70+
"value": "[Path.autoscaleSettingName]"
71+
},
72+
{
73+
"name": "-ResourceGroupName",
74+
"value": "[Path.resourceGroupName]"
75+
},
76+
{
77+
"name": "-SubscriptionId",
78+
"value": "[Path.subscriptionId]"
79+
}
80+
]
81+
}
82+
]
83+
}
84+
]
85+
}
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"resourceType": "diagnosticSettings",
3+
"apiVersion": "2021-05-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.monitor"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzDiagnosticSetting",
10+
"description": "Gets the active diagnostic settings for the specified resource.",
11+
"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/get-azdiagnosticsetting"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceId <String>"
21+
]
22+
}
23+
]
24+
},
25+
"examples": [
26+
{
27+
"description": "Gets the active diagnostic settings for the specified resource.",
28+
"parameters": [
29+
{
30+
"name": "-Name",
31+
"value": "[Path.name]"
32+
},
33+
{
34+
"name": "-ResourceId",
35+
"value": "[Path.resourceUri]"
36+
}
37+
]
38+
}
39+
]
40+
},
41+
{
42+
"name": "Get-AzSubscriptionDiagnosticSetting",
43+
"description": "Gets the active subscription diagnostic settings for the specified resource.",
44+
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
45+
"help": {
46+
"learnMore": {
47+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/get-azsubscriptiondiagnosticsetting"
48+
},
49+
"parameterSets": [
50+
{
51+
"parameters": [
52+
"-Name <String>",
53+
"[-SubscriptionId <String[]>]"
54+
]
55+
}
56+
]
57+
},
58+
"examples": [
59+
{
60+
"description": "Gets the active subscription diagnostic settings for the specified resource.",
61+
"parameters": [
62+
{
63+
"name": "-Name",
64+
"value": "[Path.name]"
65+
},
66+
{
67+
"name": "-SubscriptionId",
68+
"value": "[Path.subscriptionId]"
69+
}
70+
]
71+
}
72+
]
73+
},
74+
{
75+
"name": "Remove-AzDiagnosticSetting",
76+
"description": "Deletes existing diagnostic settings for the specified resource.",
77+
"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettings/{name}",
78+
"help": {
79+
"learnMore": {
80+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/remove-azdiagnosticsetting"
81+
},
82+
"parameterSets": [
83+
{
84+
"parameters": [
85+
"-Name <String>",
86+
"-ResourceId <String>"
87+
]
88+
}
89+
]
90+
},
91+
"examples": [
92+
{
93+
"description": "Deletes existing diagnostic settings for the specified resource.",
94+
"parameters": [
95+
{
96+
"name": "-Name",
97+
"value": "[Path.name]"
98+
},
99+
{
100+
"name": "-ResourceId",
101+
"value": "[Path.resourceUri]"
102+
}
103+
]
104+
}
105+
]
106+
},
107+
{
108+
"name": "Remove-AzSubscriptionDiagnosticSetting",
109+
"description": "Deletes existing subscription diagnostic settings for the specified resource.",
110+
"path": "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/diagnosticSettings/{name}",
111+
"help": {
112+
"learnMore": {
113+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/remove-azsubscriptiondiagnosticsetting"
114+
},
115+
"parameterSets": [
116+
{
117+
"parameters": [
118+
"-Name <String>",
119+
"[-SubscriptionId <String>]"
120+
]
121+
}
122+
]
123+
},
124+
"examples": [
125+
{
126+
"description": "Deletes existing subscription diagnostic settings for the specified resource.",
127+
"parameters": [
128+
{
129+
"name": "-Name",
130+
"value": "[Path.name]"
131+
},
132+
{
133+
"name": "-SubscriptionId",
134+
"value": "[Path.subscriptionId]"
135+
}
136+
]
137+
}
138+
]
139+
}
140+
]
141+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"resourceType": "diagnosticSettingsCategories",
3+
"apiVersion": "2021-05-01-preview",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.monitor"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzDiagnosticSettingCategory",
10+
"description": "Gets the diagnostic settings category for the specified resource.",
11+
"path": "/{resourceUri}/providers/Microsoft.Insights/diagnosticSettingsCategories/{name}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.monitor/get-azdiagnosticsettingcategory"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-Name <String>",
20+
"-ResourceId <String>"
21+
]
22+
}
23+
]
24+
},
25+
"examples": [
26+
{
27+
"description": "Gets the diagnostic settings category for the specified resource.",
28+
"parameters": [
29+
{
30+
"name": "-Name",
31+
"value": "[Path.name]"
32+
},
33+
{
34+
"name": "-ResourceId",
35+
"value": "[Path.resourceUri]"
36+
}
37+
]
38+
}
39+
]
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)