Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DynatraceObservability")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.3.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ For information on how to develop for `Az.DynatraceObservability`, see [how-to.m
> see https://aka.ms/autorest

``` yaml
commit: 099640c73c1af7f9410f184d204807f9d0da2edb
tag: package-2023-04-27
commit: a0793fce3022a236e74f774aac1b2fb07974a1ab
tag: package-2024-04-24
require:
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/dynatrace/resource-manager/readme.md
Expand All @@ -41,6 +41,9 @@ subject-prefix: Dynatrace

inlining-threshold: 100

## Flags to use PATCH method for Update-*
disable-transform-identity-type: true

directive:
- where:
verb: Set
Expand Down Expand Up @@ -82,6 +85,21 @@ directive:
set:
subject: MonitoredResource
# remove cmdlet
- where:
verb: Update
subject-prefix: Dynatrace
subject: MonitoredSubscription
remove: true
- where:
verb: Get
subject-prefix: Dynatrace
subject: MonitorConnectedResourceCount
remove: true
- where:
verb: Get
subject-prefix: Dynatrace
subject: CreationSupported
remove: true
# unsupport on server
- where:
subject: ^MonitorAccountCredential$
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "monitors/singleSignOnConfigurations",
"apiVersion": "2023-04-27",
"apiVersion": "2024-04-24",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "monitors/tagRules",
"apiVersion": "2023-04-27",
"apiVersion": "2024-04-24",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"resourceType": "monitors",
"apiVersion": "2023-04-27",
"apiVersion": "2024-04-24",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability"
},
"commands": [
{
"name": "Get-AzDynatraceMonitorMetricStatus",
"description": "Get metric status",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/getMetricStatus",
"name": "Get-AzDynatraceMonitoredSubscription",
"description": "List the subscriptions currently being monitored by the Dynatrace monitor resource.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/monitoredSubscriptions/default",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitormetricstatus"
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitoredsubscription"
},
"parameterSets": [
{
Expand All @@ -25,7 +25,7 @@
},
"examples": [
{
"description": "Get metric status",
"description": "List the subscriptions currently being monitored by the Dynatrace monitor resource.",
"parameters": [
{
"name": "-MonitorName",
Expand Down Expand Up @@ -119,6 +119,44 @@
}
]
},
{
"name": "Remove-AzDynatraceMonitoredSubscription",
"description": "Delete the subscriptions that are being monitored by the Dynatrace monitor resource",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Dynatrace.Observability/monitors/{monitorName}/monitoredSubscriptions/default",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.dynatraceobservability/remove-azdynatracemonitoredsubscription"
},
"parameterSets": [
{
"parameters": [
"-MonitorName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "delete the subscriptions that are being monitored by the Dynatrace monitor resource",
"parameters": [
{
"name": "-MonitorName",
"value": "[Path.monitorName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzDynatraceMonitor",
"description": "Delete a MonitorResource",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# region Generated
# Load the private module dll
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.DynatraceObservability.private.dll')
$null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.DynatraceObservability.private.dll')

# Load the internal module
$internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.DynatraceObservability.internal.psm1'
$internalModulePath = Join-Path $PSScriptRoot '../internal/Az.DynatraceObservability.internal.psm1'
if(Test-Path $internalModulePath) {
$null = Import-Module -Name $internalModulePath
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Custom
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.
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.

## Info
- Modifiable: yes
Expand All @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle
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.

## Purpose
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.
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.

## Usage
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:
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:
- Break
- DefaultProfile
- HttpPipelineAppend
Expand All @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.DynatraceObservability`.
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.InternalExportAttribute`
- 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.
- 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.
- `Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.ProfileAttribute`
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.DynatraceObservability
Module Guid: f889aadf-56ba-485c-8077-283219e39439
Module Guid: eada85a3-a8b1-4fc1-b953-defbdf14917f
Download Help Link: https://learn.microsoft.com/powershell/module/az.dynatraceobservability
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -20,14 +20,17 @@ Gets list of App Services with Dynatrace PaaS OneAgent enabled
### [Get-AzDynatraceMonitoredResource](Get-AzDynatraceMonitoredResource.md)
List the resources currently being monitored by the Dynatrace monitor resource.

### [Get-AzDynatraceMonitoredSubscription](Get-AzDynatraceMonitoredSubscription.md)
List the subscriptions currently being monitored by the Dynatrace monitor resource.

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

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

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

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

### [Invoke-AzDynatraceManageMonitorAgentInstallation](Invoke-AzDynatraceManageMonitorAgentInstallation.md)
Performs Dynatrace agent install/uninstall action through the Azure Dynatrace resource on the provided list of resources.

### [New-AzDynatraceMonitor](New-AzDynatraceMonitor.md)
create a MonitorResource
Create a MonitorResource

### [New-AzDynatraceMonitoredSubscription](New-AzDynatraceMonitoredSubscription.md)
Add the subscriptions that should be monitored by the Dynatrace monitor resource.

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

### [New-AzDynatraceMonitorSSOConfig](New-AzDynatraceMonitorSSOConfig.md)
create a DynatraceSingleSignOnResource
Create a DynatraceSingleSignOnResource

### [New-AzDynatraceMonitorTagRule](New-AzDynatraceMonitorTagRule.md)
create a TagRule
Create a TagRule

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

### [Remove-AzDynatraceMonitoredSubscription](Remove-AzDynatraceMonitoredSubscription.md)
Delete the subscriptions that are being monitored by the Dynatrace monitor resource

### [Remove-AzDynatraceMonitorTagRule](Remove-AzDynatraceMonitorTagRule.md)
Delete a TagRule

### [Update-AzDynatraceMonitor](Update-AzDynatraceMonitor.md)
update a MonitorResource
Update a MonitorResource

### [Update-AzDynatraceMonitorPlan](Update-AzDynatraceMonitorPlan.md)
Upgrades the billing Plan for Dynatrace monitor resource.

### [Update-AzDynatraceMonitorSSOConfig](Update-AzDynatraceMonitorSSOConfig.md)
update a DynatraceSingleSignOnResource
Update a DynatraceSingleSignOnResource

### [Update-AzDynatraceMonitorTagRule](Update-AzDynatraceMonitorTagRule.md)
update a TagRule
Update a TagRule

Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail

## SYNOPSIS
Get Marketplace SaaS resource details of a tenant under a specific subscription
Get Marketplace SaaS resource details

## SYNTAX

Expand Down Expand Up @@ -37,7 +37,7 @@ Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail -JsonString <String> [-Subsc
```

## DESCRIPTION
Get Marketplace SaaS resource details of a tenant under a specific subscription
Get Marketplace SaaS resource details

## EXAMPLES

Expand Down Expand Up @@ -119,6 +119,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Loading