Skip to content

Commit 19f5fc8

Browse files
jkore1911Copilot
andauthored
Liftr Elastic PS cmdlets for stable version 2025-06-01 (#28705)
Co-authored-by: Copilot <[email protected]>
1 parent 3ab3bed commit 19f5fc8

File tree

119 files changed

+4666
-3336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+4666
-3336
lines changed

src/Elastic/Elastic.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Elastic")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

src/Elastic/Elastic.Autorest/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ For information on how to develop for `Az.Elastic`, see [how-to.md](how-to.md).
2828
2929
``` yaml
3030
# lock the commit
31-
commit: d38a2c3ce2e2dfc38053af2f6b5fc10cb6221961
32-
tag: package-2024-03-01
31+
commit: 3c1ce8207350922f820d20e04547cc4785c758d3
32+
tag: package-2025-06-01
3333
require:
3434
- $(this-folder)/../../readme.azure.noprofile.md
3535
- $(repo)/specification/elastic/resource-manager/readme.md
@@ -61,6 +61,14 @@ directive:
6161
"readOnly": true,
6262
"$ref": "#/definitions/ProvisioningState"
6363
}
64+
# This is necessary because the Get-AzElasticResubscribeOrganization cmdlet has both:
65+
# 1. A path parameter "SubscriptionId" (from the Azure subscription context)
66+
# 2. A body parameter "subscriptionId" (the target subscription for resubscription)
67+
# PowerShell cannot have the same parameter name with different types [String[], String]
68+
# Renaming the body parameter to "TargetSubscriptionId" resolves this conflict while maintaining clarity
69+
- from: swagger-document
70+
where: $.definitions.ResubscribeProperties.properties.subscriptionId
71+
transform: $["x-ms-client-name"] = "TargetSubscriptionId"
6472

6573
- where:
6674
verb: Set
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"resourceType": "monitors/monitoredSubscriptions",
3+
"apiVersion": "2025-06-01",
4+
"learnMore": {
5+
"url": "https://learn.microsoft.com/powershell/module/az.elastic"
6+
},
7+
"commands": [
8+
{
9+
"name": "Get-AzElasticMonitoredSubscription",
10+
"description": "Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.elastic/get-azelasticmonitoredsubscription"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-ConfigurationName <String>",
20+
"-MonitorName <String>",
21+
"-ResourceGroupName <String>",
22+
"[-SubscriptionId <String[]>]"
23+
]
24+
}
25+
]
26+
},
27+
"examples": [
28+
{
29+
"description": "Get detailed information about all subscriptions currently being monitored by the Elastic monitor resource.",
30+
"parameters": [
31+
{
32+
"name": "-ConfigurationName",
33+
"value": "[Path.configurationName]"
34+
},
35+
{
36+
"name": "-MonitorName",
37+
"value": "[Path.monitorName]"
38+
},
39+
{
40+
"name": "-ResourceGroupName",
41+
"value": "[Path.resourceGroupName]"
42+
},
43+
{
44+
"name": "-SubscriptionId",
45+
"value": "[Path.subscriptionId]"
46+
}
47+
]
48+
}
49+
]
50+
},
51+
{
52+
"name": "Remove-AzElasticMonitoredSubscription",
53+
"description": "Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities.",
54+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/monitoredSubscriptions/{configurationName}",
55+
"help": {
56+
"learnMore": {
57+
"url": "https://learn.microsoft.com/powershell/module/az.elastic/remove-azelasticmonitoredsubscription"
58+
},
59+
"parameterSets": [
60+
{
61+
"parameters": [
62+
"-ConfigurationName <String>",
63+
"-MonitorName <String>",
64+
"-ResourceGroupName <String>",
65+
"[-SubscriptionId <String>]"
66+
]
67+
}
68+
]
69+
},
70+
"examples": [
71+
{
72+
"description": "Delete subscriptions being monitored by the Elastic monitor resource, removing their observability and monitoring capabilities.",
73+
"parameters": [
74+
{
75+
"name": "-ConfigurationName",
76+
"value": "[Path.configurationName]"
77+
},
78+
{
79+
"name": "-MonitorName",
80+
"value": "[Path.monitorName]"
81+
},
82+
{
83+
"name": "-ResourceGroupName",
84+
"value": "[Path.resourceGroupName]"
85+
},
86+
{
87+
"name": "-SubscriptionId",
88+
"value": "[Path.subscriptionId]"
89+
}
90+
]
91+
}
92+
]
93+
}
94+
]
95+
}

src/Elastic/Elastic.Autorest/UX/Microsoft.Elastic/monitors-openAIIntegrations.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors/openAIIntegrations",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-06-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elastic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzElasticOpenAiStatus",
10-
"description": "Get OpenAI integration status for a given integration.",
10+
"description": "Get the status of OpenAI integration for a given Elastic monitor resource, ensuring optimal observability and performance.",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/openAIIntegrations/{integrationName}/getStatus",
1212
"help": {
1313
"learnMore": {
@@ -26,7 +26,7 @@
2626
},
2727
"examples": [
2828
{
29-
"description": "Get OpenAI integration status for a given integration.",
29+
"description": "Get the status of OpenAI integration for a given Elastic monitor resource, ensuring optimal observability and performance.",
3030
"parameters": [
3131
{
3232
"name": "-IntegrationName",
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"name": "Get-AzElasticOpenAi",
53-
"description": "Get OpenAI integration rule for a given monitor resource.",
53+
"description": "Get detailed information about OpenAI integration rules for a given Elastic monitor resource.",
5454
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/openAIIntegrations/{integrationName}",
5555
"help": {
5656
"learnMore": {
@@ -69,7 +69,7 @@
6969
},
7070
"examples": [
7171
{
72-
"description": "Get OpenAI integration rule for a given monitor resource.",
72+
"description": "Get detailed information about OpenAI integration rules for a given Elastic monitor resource.",
7373
"parameters": [
7474
{
7575
"name": "-IntegrationName",
@@ -93,7 +93,7 @@
9393
},
9494
{
9595
"name": "Remove-AzElasticOpenAi",
96-
"description": "Delete OpenAI integration rule for a given monitor resource.",
96+
"description": "Delete an OpenAI integration rule for a given Elastic monitor resource, removing AI-driven observability and monitoring capabilities.",
9797
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/openAIIntegrations/{integrationName}",
9898
"help": {
9999
"learnMore": {
@@ -112,7 +112,7 @@
112112
},
113113
"examples": [
114114
{
115-
"description": "Delete OpenAI integration rule for a given monitor resource.",
115+
"description": "Delete an OpenAI integration rule for a given Elastic monitor resource, removing AI-driven observability and monitoring capabilities.",
116116
"parameters": [
117117
{
118118
"name": "-IntegrationName",

src/Elastic/Elastic.Autorest/UX/Microsoft.Elastic/monitors-tagRules.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors/tagRules",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-06-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elastic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzElasticTagRule",
10-
"description": "Get a tag rule set for a given monitor resource.",
10+
"description": "Get detailed information about a tag rule set for a given Elastic monitor resource.",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/tagRules/{ruleSetName}",
1212
"help": {
1313
"learnMore": {
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "Get a tag rule set for a given monitor resource.",
28+
"description": "Get detailed information about a tag rule set for a given Elastic monitor resource.",
2929
"parameters": [
3030
{
3131
"name": "-MonitorName",

src/Elastic/Elastic.Autorest/UX/Microsoft.Elastic/monitors.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"resourceType": "monitors",
3-
"apiVersion": "2024-03-01",
3+
"apiVersion": "2025-06-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.elastic"
66
},
77
"commands": [
88
{
99
"name": "Get-AzElasticBillingInfo",
10-
"description": "Get marketplace and organization info mapped to the given monitor.",
10+
"description": "Retrieve marketplace and organization billing information mapped to the given Elastic monitor resource.",
1111
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/getBillingInfo",
1212
"help": {
1313
"learnMore": {
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "Get marketplace and organization info mapped to the given monitor.",
28+
"description": "Retrieve marketplace and organization billing information mapped to the given Elastic monitor resource.",
2929
"parameters": [
3030
{
3131
"name": "-MonitorName",
@@ -45,7 +45,7 @@
4545
},
4646
{
4747
"name": "Get-AzElasticDetailUpgradableVersion",
48-
"description": "List of upgradable versions for a given monitor resource.",
48+
"description": "List all upgradable versions for your Elastic monitor resource, helping you plan and execute upgrades.",
4949
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/listUpgradableVersions",
5050
"help": {
5151
"learnMore": {
@@ -63,7 +63,7 @@
6363
},
6464
"examples": [
6565
{
66-
"description": "List of upgradable versions for a given monitor resource.",
66+
"description": "List all upgradable versions for your Elastic monitor resource, helping you plan and execute upgrades.",
6767
"parameters": [
6868
{
6969
"name": "-MonitorName",
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"name": "Get-AzElasticDetailVMIngestion",
86-
"description": "List the vm ingestion details that will be monitored by the Elastic monitor resource.",
86+
"description": "List detailed information about VM ingestion that will be monitored by the Elastic monitor resource, ensuring optimal observability and performance.",
8787
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}/vmIngestionDetails",
8888
"help": {
8989
"learnMore": {
@@ -101,7 +101,7 @@
101101
},
102102
"examples": [
103103
{
104-
"description": "List the vm ingestion details that will be monitored by the Elastic monitor resource.",
104+
"description": "List detailed information about VM ingestion that will be monitored by the Elastic monitor resource, ensuring optimal observability and performance.",
105105
"parameters": [
106106
{
107107
"name": "-Name",
@@ -121,7 +121,7 @@
121121
},
122122
{
123123
"name": "Get-AzElasticMonitor",
124-
"description": "Get the properties of a specific monitor resource.",
124+
"description": "Get detailed properties of a specific Elastic monitor resource, helping you manage observability and performance.",
125125
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
126126
"help": {
127127
"learnMore": {
@@ -139,7 +139,7 @@
139139
},
140140
"examples": [
141141
{
142-
"description": "Get the properties of a specific monitor resource.",
142+
"description": "Get detailed properties of a specific Elastic monitor resource, helping you manage observability and performance.",
143143
"parameters": [
144144
{
145145
"name": "-Name",
@@ -159,7 +159,7 @@
159159
},
160160
{
161161
"name": "Remove-AzElasticMonitor",
162-
"description": "Delete a monitor resource.",
162+
"description": "Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities.",
163163
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Elastic/monitors/{monitorName}",
164164
"help": {
165165
"learnMore": {
@@ -177,7 +177,7 @@
177177
},
178178
"examples": [
179179
{
180-
"description": "Delete a monitor resource.",
180+
"description": "Delete an existing Elastic monitor resource from your Azure subscription, removing its observability and monitoring capabilities.",
181181
"parameters": [
182182
{
183183
"name": "-Name",

0 commit comments

Comments
 (0)