Skip to content

Commit 6ddf8d6

Browse files
shivansh257Shivansh Agarwal
and
Shivansh Agarwal
authored
Liftr Dynatrace pwsh cmdlets for stable version 2023-04-27 (#27311)
Co-authored-by: Shivansh Agarwal <[email protected]>
1 parent 6f37822 commit 6ddf8d6

File tree

80 files changed

+2382
-2190
lines changed

Some content is hidden

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

80 files changed

+2382
-2190
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@{
2+
GUID = 'f889aadf-56ba-485c-8077-283219e39439'
3+
RootModule = './Az.DynatraceObservability.psm1'
4+
ModuleVersion = '0.1.0'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: DynatraceObservability cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.DynatraceObservability.private.dll'
13+
FormatsToProcess = './Az.DynatraceObservability.format.ps1xml'
14+
FunctionsToExport = 'Get-AzDynatraceMonitor', 'Get-AzDynatraceMonitorAppService', 'Get-AzDynatraceMonitoredResource', 'Get-AzDynatraceMonitorHost', 'Get-AzDynatraceMonitorLinkableEnv', 'Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail', 'Get-AzDynatraceMonitorMetricStatus', 'Get-AzDynatraceMonitorSSOConfig', 'Get-AzDynatraceMonitorSSODetail', 'Get-AzDynatraceMonitorTagRule', 'Get-AzDynatraceMonitorVMHostPayload', 'New-AzDynatraceMonitor', 'New-AzDynatraceMonitorFilteringTagObject', 'New-AzDynatraceMonitorSSOConfig', 'New-AzDynatraceMonitorTagRule', 'Remove-AzDynatraceMonitor', 'Remove-AzDynatraceMonitorTagRule', 'Update-AzDynatraceMonitor', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
17+
PSData = @{
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DynatraceObservability'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the Apache License, Version 2.0 (the ""License"");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
// http://www.apache.org/licenses/LICENSE-2.0
6+
// Unless required by applicable law or agreed to in writing, software
7+
// distributed under the License is distributed on an ""AS IS"" BASIS,
8+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9+
// See the License for the specific language governing permissions and
10+
// limitations under the License.
11+
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
12+
// is regenerated.
13+
14+
using System;
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
20+
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
21+
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DynatraceObservability")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
26+
[assembly: System.CLSCompliantAttribute(false)]
27+

src/DynatraceObservability/DynatraceObservability.Autorest/README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ For information on how to develop for `Az.DynatraceObservability`, see [how-to.m
2727
> see https://aka.ms/autorest
2828
2929
``` yaml
30-
commit: 8820fa48b53c2c5c6cada3d44046b879932893cd
30+
commit: 099640c73c1af7f9410f184d204807f9d0da2edb
31+
tag: package-2023-04-27
3132
require:
3233
- $(this-folder)/../../readme.azure.noprofile.md
33-
input-file:
34-
- $(repo)/specification/dynatrace/resource-manager/Dynatrace.Observability/stable/2021-09-01/dynatrace.json
34+
- $(repo)/specification/dynatrace/resource-manager/readme.md
35+
36+
try-require:
37+
- $(repo)/specification/dynatrace/resource-manager/readme.powershell.md
38+
3539
title: DynatraceObservability
3640
subject-prefix: Dynatrace
3741

src/DynatraceObservability/DynatraceObservability.Autorest/UX/Dynatrace.Observability/monitors-singleSignOnConfigurations.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "monitors/singleSignOnConfigurations",
3-
"apiVersion": "2021-09-01",
3+
"apiVersion": "2023-04-27",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
66
},

src/DynatraceObservability/DynatraceObservability.Autorest/UX/Dynatrace.Observability/monitors-tagRules.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "monitors/tagRules",
3-
"apiVersion": "2021-09-01",
3+
"apiVersion": "2023-04-27",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
66
},

src/DynatraceObservability/DynatraceObservability.Autorest/UX/Dynatrace.Observability/monitors.json

+39-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,48 @@
11
{
22
"resourceType": "monitors",
3-
"apiVersion": "2021-09-01",
3+
"apiVersion": "2023-04-27",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
66
},
77
"commands": [
8+
{
9+
"name": "Get-AzDynatraceMonitorMetricStatus",
10+
"description": "Get metric status",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
12+
"help": {
13+
"learnMore": {
14+
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitormetricstatus"
15+
},
16+
"parameterSets": [
17+
{
18+
"parameters": [
19+
"-MonitorName <String>",
20+
"-ResourceGroupName <String>",
21+
"[-SubscriptionId <String[]>]"
22+
]
23+
}
24+
]
25+
},
26+
"examples": [
27+
{
28+
"description": "Get metric status",
29+
"parameters": [
30+
{
31+
"name": "-MonitorName",
32+
"value": "[Path.monitorName]"
33+
},
34+
{
35+
"name": "-ResourceGroupName",
36+
"value": "[Path.resourceGroupName]"
37+
},
38+
{
39+
"name": "-SubscriptionId",
40+
"value": "[Path.subscriptionId]"
41+
}
42+
]
43+
}
44+
]
45+
},
846
{
947
"name": "Get-AzDynatraceMonitorVMHostPayload",
1048
"description": "Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.",

src/DynatraceObservability/DynatraceObservability.Autorest/custom/New-AzDynatraceMonitorFilteringTagObject.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ Create an in-memory object for FilteringTag.
2121
Create an in-memory object for FilteringTag.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.FilteringTag
24+
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag
2525
#>
2626
function New-AzDynatraceMonitorFilteringTagObject {
27-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.FilteringTag')]
27+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag')]
2828
[CmdletBinding(PositionalBinding=$false)]
2929
Param(
3030

@@ -41,7 +41,7 @@ function New-AzDynatraceMonitorFilteringTagObject {
4141
)
4242

4343
process {
44-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.FilteringTag]::New()
44+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag]::New()
4545

4646
if ($PSBoundParameters.ContainsKey('Action')) {
4747
$Object.Action = $Action

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Az.DynatraceObservability.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ Gets list of App Services with Dynatrace PaaS OneAgent enabled
2121
List the resources currently being monitored by the Dynatrace monitor resource.
2222

2323
### [Get-AzDynatraceMonitorHost](Get-AzDynatraceMonitorHost.md)
24-
List the compute resources currently being monitored by the Dynatrace resource.
24+
List the VM/VMSS resources currently being monitored by the Dynatrace resource.
2525

2626
### [Get-AzDynatraceMonitorLinkableEnv](Get-AzDynatraceMonitorLinkableEnv.md)
2727
Gets all the Dynatrace environments that a user can link a azure resource to
2828

29+
### [Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail](Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.md)
30+
Get Marketplace SaaS resource details of a tenant under a specific subscription
31+
32+
### [Get-AzDynatraceMonitorMetricStatus](Get-AzDynatraceMonitorMetricStatus.md)
33+
Get metric status
34+
2935
### [Get-AzDynatraceMonitorSSOConfig](Get-AzDynatraceMonitorSSOConfig.md)
3036
Get a DynatraceSingleSignOnResource
3137

@@ -59,6 +65,3 @@ Delete a TagRule
5965
### [Update-AzDynatraceMonitor](Update-AzDynatraceMonitor.md)
6066
Update a MonitorResource
6167

62-
### [Update-AzDynatraceMonitorTagRule](Update-AzDynatraceMonitorTagRule.md)
63-
Update a TagRule
64-

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitor.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
181181
182182
## OUTPUTS
183183
184-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.IMonitorResource
184+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IMonitorResource
185185
186186
## NOTES
187187

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorAppService.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
100100
101101
## OUTPUTS
102102
103-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.IAppServiceInfo
103+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IAppServiceInfo
104104
105105
## NOTES
106106

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorHost.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# Get-AzDynatraceMonitorHost
99

1010
## SYNOPSIS
11-
List the compute resources currently being monitored by the Dynatrace resource.
11+
List the VM/VMSS resources currently being monitored by the Dynatrace resource.
1212

1313
## SYNTAX
1414

@@ -18,7 +18,7 @@ Get-AzDynatraceMonitorHost -MonitorName <String> -ResourceGroupName <String> [-S
1818
```
1919

2020
## DESCRIPTION
21-
List the compute resources currently being monitored by the Dynatrace resource.
21+
List the VM/VMSS resources currently being monitored by the Dynatrace resource.
2222

2323
## EXAMPLES
2424

@@ -100,7 +100,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
100100
101101
## OUTPUTS
102102
103-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.IVMInfo
103+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IVMInfo
104104
105105
## NOTES
106106

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorLinkableEnv.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Gets all the Dynatrace environments that a user can link a azure resource to
1313
## SYNTAX
1414

1515
```
16-
Get-AzDynatraceMonitorLinkableEnv -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
17-
[-Region <String>] [-TenantId <String>] [-UserPrincipal <String>] [-DefaultProfile <PSObject>]
16+
Get-AzDynatraceMonitorLinkableEnv -Name <String> -ResourceGroupName <String> -Region <String>
17+
-TenantId <String> -UserPrincipal <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
1818
[<CommonParameters>]
1919
```
2020

@@ -71,7 +71,7 @@ Type: System.String
7171
Parameter Sets: (All)
7272
Aliases:
7373

74-
Required: False
74+
Required: True
7575
Position: Named
7676
Default value: None
7777
Accept pipeline input: False
@@ -117,7 +117,7 @@ Type: System.String
117117
Parameter Sets: (All)
118118
Aliases:
119119

120-
Required: False
120+
Required: True
121121
Position: Named
122122
Default value: None
123123
Accept pipeline input: False
@@ -132,7 +132,7 @@ Type: System.String
132132
Parameter Sets: (All)
133133
Aliases:
134134

135-
Required: False
135+
Required: True
136136
Position: Named
137137
Default value: None
138138
Accept pipeline input: False
@@ -146,7 +146,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
146146
147147
## OUTPUTS
148148
149-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20210901.ILinkableEnvironmentResponse
149+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.ILinkableEnvironmentResponse
150150
151151
## NOTES
152152

0 commit comments

Comments
 (0)