Skip to content

Commit 30f3f25

Browse files
Powershell Refresh for Dynatrace API version 2024-04-24 (#28829)
1 parent 9deda16 commit 30f3f25

File tree

97 files changed

+6633
-922
lines changed

Some content is hidden

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

97 files changed

+6633
-922
lines changed

src/DynatraceObservability/DynatraceObservability.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 - DynatraceObservability")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
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/DynatraceObservability/DynatraceObservability.Autorest/README.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ For information on how to develop for `Az.DynatraceObservability`, see [how-to.m
2727
> see https://aka.ms/autorest
2828
2929
``` yaml
30-
commit: 099640c73c1af7f9410f184d204807f9d0da2edb
31-
tag: package-2023-04-27
30+
commit: a0793fce3022a236e74f774aac1b2fb07974a1ab
31+
tag: package-2024-04-24
3232
require:
3333
- $(this-folder)/../../readme.azure.noprofile.md
3434
- $(repo)/specification/dynatrace/resource-manager/readme.md
@@ -41,6 +41,9 @@ subject-prefix: Dynatrace
4141

4242
inlining-threshold: 100
4343

44+
## Flags to use PATCH method for Update-*
45+
disable-transform-identity-type: true
46+
4447
directive:
4548
- where:
4649
verb: Set
@@ -82,6 +85,21 @@ directive:
8285
set:
8386
subject: MonitoredResource
8487
# remove cmdlet
88+
- where:
89+
verb: Update
90+
subject-prefix: Dynatrace
91+
subject: MonitoredSubscription
92+
remove: true
93+
- where:
94+
verb: Get
95+
subject-prefix: Dynatrace
96+
subject: MonitorConnectedResourceCount
97+
remove: true
98+
- where:
99+
verb: Get
100+
subject-prefix: Dynatrace
101+
subject: CreationSupported
102+
remove: true
85103
# unsupport on server
86104
- where:
87105
subject: ^MonitorAccountCredential$

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

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

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

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

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

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"resourceType": "monitors",
3-
"apiVersion": "2023-04-27",
3+
"apiVersion": "2024-04-24",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
66
},
77
"commands": [
88
{
9-
"name": "Get-AzDynatraceMonitorMetricStatus",
10-
"description": "Get metric status",
11-
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
9+
"name": "Get-AzDynatraceMonitoredSubscription",
10+
"description": "List the subscriptions currently being monitored by the Dynatrace monitor resource.",
11+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/monitoredSubscriptions/default",
1212
"help": {
1313
"learnMore": {
14-
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitormetricstatus"
14+
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitoredsubscription"
1515
},
1616
"parameterSets": [
1717
{
@@ -25,7 +25,7 @@
2525
},
2626
"examples": [
2727
{
28-
"description": "Get metric status",
28+
"description": "List the subscriptions currently being monitored by the Dynatrace monitor resource.",
2929
"parameters": [
3030
{
3131
"name": "-MonitorName",
@@ -119,6 +119,44 @@
119119
}
120120
]
121121
},
122+
{
123+
"name": "Remove-AzDynatraceMonitoredSubscription",
124+
"description": "Delete the subscriptions that are being monitored by the Dynatrace monitor resource",
125+
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/monitoredSubscriptions/default",
126+
"help": {
127+
"learnMore": {
128+
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/remove-azdynatracemonitoredsubscription"
129+
},
130+
"parameterSets": [
131+
{
132+
"parameters": [
133+
"-MonitorName <String>",
134+
"-ResourceGroupName <String>",
135+
"[-SubscriptionId <String>]"
136+
]
137+
}
138+
]
139+
},
140+
"examples": [
141+
{
142+
"description": "delete the subscriptions that are being monitored by the Dynatrace monitor resource",
143+
"parameters": [
144+
{
145+
"name": "-MonitorName",
146+
"value": "[Path.monitorName]"
147+
},
148+
{
149+
"name": "-ResourceGroupName",
150+
"value": "[Path.resourceGroupName]"
151+
},
152+
{
153+
"name": "-SubscriptionId",
154+
"value": "[Path.subscriptionId]"
155+
}
156+
]
157+
}
158+
]
159+
},
122160
{
123161
"name": "Remove-AzDynatraceMonitor",
124162
"description": "Delete a MonitorResource",

src/DynatraceObservability/DynatraceObservability.Autorest/custom/Az.DynatraceObservability.custom.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# region Generated
22
# Load the private module dll
3-
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DynatraceObservability.private.dll')
3+
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DynatraceObservability.private.dll')
44

55
# Load the internal module
6-
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DynatraceObservability.internal.psm1'
6+
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DynatraceObservability.internal.psm1'
77
if(Test-Path $internalModulePath) {
88
$null = Import-Module -Name $internalModulePath
99
}

src/DynatraceObservability/DynatraceObservability.Autorest/custom/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Custom
2-
This directory contains custom implementation for non-generated cmdlets for the `Az.DynatraceObservability` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.DynatraceObservability.custom.psm1`. This file should not be modified.
2+
This directory contains custom implementation for non-generated cmdlets for the `Az.DynatraceObservability` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.DynatraceObservability.custom.psm1`. This file should not be modified.
33

44
## Info
55
- Modifiable: yes
@@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle
1515
For script cmdlets, these are loaded via the `Az.DynatraceObservability.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
1616

1717
## Purpose
18-
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
18+
This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder.
1919

2020
## Usage
21-
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
21+
The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
2222
- Break
2323
- DefaultProfile
2424
- HttpPipelineAppend
@@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes:
3636
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.DoNotExportAttribute`
3737
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.DynatraceObservability`.
3838
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.InternalExportAttribute`
39-
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.DynatraceObservability`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
39+
- Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.DynatraceObservability`. For more information, see [README.md](../internal/README.md) in the `../internal` folder.
4040
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.ProfileAttribute`
4141
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.

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

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.DynatraceObservability
3-
Module Guid: f889aadf-56ba-485c-8077-283219e39439
3+
Module Guid: eada85a3-a8b1-4fc1-b953-defbdf14917f
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.dynatraceobservability
55
Help Version: 1.0.0.0
66
Locale: en-US
@@ -20,14 +20,17 @@ Gets list of App Services with Dynatrace PaaS OneAgent enabled
2020
### [Get-AzDynatraceMonitoredResource](Get-AzDynatraceMonitoredResource.md)
2121
List the resources currently being monitored by the Dynatrace monitor resource.
2222

23+
### [Get-AzDynatraceMonitoredSubscription](Get-AzDynatraceMonitoredSubscription.md)
24+
List the subscriptions currently being monitored by the Dynatrace monitor resource.
25+
2326
### [Get-AzDynatraceMonitorHost](Get-AzDynatraceMonitorHost.md)
2427
List the VM/VMSS resources currently being monitored by the Dynatrace resource.
2528

2629
### [Get-AzDynatraceMonitorLinkableEnv](Get-AzDynatraceMonitorLinkableEnv.md)
2730
Gets all the Dynatrace environments that a user can link a azure resource to
2831

2932
### [Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail](Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail.md)
30-
Get Marketplace SaaS resource details of a tenant under a specific subscription
33+
Get Marketplace SaaS resource details
3134

3235
### [Get-AzDynatraceMonitorMetricStatus](Get-AzDynatraceMonitorMetricStatus.md)
3336
Get metric status
@@ -44,30 +47,42 @@ Get a TagRule
4447
### [Get-AzDynatraceMonitorVMHostPayload](Get-AzDynatraceMonitorVMHostPayload.md)
4548
Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.
4649

50+
### [Invoke-AzDynatraceManageMonitorAgentInstallation](Invoke-AzDynatraceManageMonitorAgentInstallation.md)
51+
Performs Dynatrace agent install/uninstall action through the Azure Dynatrace resource on the provided list of resources.
52+
4753
### [New-AzDynatraceMonitor](New-AzDynatraceMonitor.md)
48-
create a MonitorResource
54+
Create a MonitorResource
55+
56+
### [New-AzDynatraceMonitoredSubscription](New-AzDynatraceMonitoredSubscription.md)
57+
Add the subscriptions that should be monitored by the Dynatrace monitor resource.
4958

5059
### [New-AzDynatraceMonitorFilteringTagObject](New-AzDynatraceMonitorFilteringTagObject.md)
5160
Create an in-memory object for FilteringTag.
5261

5362
### [New-AzDynatraceMonitorSSOConfig](New-AzDynatraceMonitorSSOConfig.md)
54-
create a DynatraceSingleSignOnResource
63+
Create a DynatraceSingleSignOnResource
5564

5665
### [New-AzDynatraceMonitorTagRule](New-AzDynatraceMonitorTagRule.md)
57-
create a TagRule
66+
Create a TagRule
5867

5968
### [Remove-AzDynatraceMonitor](Remove-AzDynatraceMonitor.md)
6069
Delete a MonitorResource
6170

71+
### [Remove-AzDynatraceMonitoredSubscription](Remove-AzDynatraceMonitoredSubscription.md)
72+
Delete the subscriptions that are being monitored by the Dynatrace monitor resource
73+
6274
### [Remove-AzDynatraceMonitorTagRule](Remove-AzDynatraceMonitorTagRule.md)
6375
Delete a TagRule
6476

6577
### [Update-AzDynatraceMonitor](Update-AzDynatraceMonitor.md)
66-
update a MonitorResource
78+
Update a MonitorResource
79+
80+
### [Update-AzDynatraceMonitorPlan](Update-AzDynatraceMonitorPlan.md)
81+
Upgrades the billing Plan for Dynatrace monitor resource.
6782

6883
### [Update-AzDynatraceMonitorSSOConfig](Update-AzDynatraceMonitorSSOConfig.md)
69-
update a DynatraceSingleSignOnResource
84+
Update a DynatraceSingleSignOnResource
7085

7186
### [Update-AzDynatraceMonitorTagRule](Update-AzDynatraceMonitorTagRule.md)
72-
update a TagRule
87+
Update a TagRule
7388

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ Accept wildcard characters: False
158158
159159
### -SubscriptionId
160160
The ID of the target subscription.
161+
The value must be an UUID.
161162
162163
```yaml
163164
Type: System.String[]

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Accept wildcard characters: False
8080
8181
### -SubscriptionId
8282
The ID of the target subscription.
83+
The value must be an UUID.
8384
8485
```yaml
8586
Type: System.String[]

0 commit comments

Comments
 (0)