Skip to content
Merged
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DynatraceObservability.private.dll'
FormatsToProcess = './Az.DynatraceObservability.format.ps1xml'
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', 'Update-AzDynatraceMonitorSSOConfig', 'Update-AzDynatraceMonitorTagRule'
FunctionsToExport = 'Get-AzDynatraceMonitor', 'Get-AzDynatraceMonitorAppService', 'Get-AzDynatraceMonitoredResource', 'Get-AzDynatraceMonitoredSubscription', 'Get-AzDynatraceMonitorHost', 'Get-AzDynatraceMonitorLinkableEnv', 'Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail', 'Get-AzDynatraceMonitorMetricStatus', 'Get-AzDynatraceMonitorSSOConfig', 'Get-AzDynatraceMonitorSSODetail', 'Get-AzDynatraceMonitorTagRule', 'Get-AzDynatraceMonitorVMHostPayload', 'Invoke-AzDynatraceManageMonitorAgentInstallation', 'New-AzDynatraceMonitor', 'New-AzDynatraceMonitoredSubscription', 'New-AzDynatraceMonitorFilteringTagObject', 'New-AzDynatraceMonitorSSOConfig', 'New-AzDynatraceMonitorTagRule', 'Remove-AzDynatraceMonitor', 'Remove-AzDynatraceMonitoredSubscription', 'Remove-AzDynatraceMonitorTagRule', 'Update-AzDynatraceMonitor', 'Update-AzDynatraceMonitorPlan', 'Update-AzDynatraceMonitorSSOConfig', 'Update-AzDynatraceMonitorTagRule'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DynatraceObservability'
Expand Down
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 @@ -39,11 +39,12 @@ To create the parameters described below, construct a hash table containing the
INPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
.Link
https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitor
#>
Expand Down Expand Up @@ -73,6 +74,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='ListExpanded', Mandatory)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<#
.Synopsis
Get Marketplace SaaS resource details of a tenant under a specific subscription
Get Marketplace SaaS resource details
.Description
Get Marketplace SaaS resource details of a tenant under a specific subscription
Get Marketplace SaaS resource details
.Example
Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail -TenantId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'

Expand All @@ -45,6 +45,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Get-AzDynatraceMonitorMetricStatus -MonitorName dyob4hzw1d -ResourceGroupName dy

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IDynatraceObservabilityIdentity
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMetricStatusRequest
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMetricsStatusResponse
.Notes
Expand All @@ -33,44 +35,86 @@ To create the parameters described below, construct a hash table containing the

INPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.

REQUEST <IMetricStatusRequest>: Request for getting metric status for given monitored resource Ids
[MonitoredResourceId <List<String>>]: List of azure resource Id of monitored resources for which we get the metric status
.Link
https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitormetricstatus
#>
function Get-AzDynatraceMonitorMetricStatus {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMetricsStatusResponse])]
[CmdletBinding(DefaultParameterSetName='Get', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
[CmdletBinding(DefaultParameterSetName='GetExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='GetExpanded', Mandatory)]
[Parameter(ParameterSetName='GetViaJsonFilePath', Mandatory)]
[Parameter(ParameterSetName='GetViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Path')]
[System.String]
# Name of the Monitor resource
# Name of the Monitors resource
${MonitorName},

[Parameter(ParameterSetName='Get', Mandatory)]
[Parameter(ParameterSetName='GetExpanded', Mandatory)]
[Parameter(ParameterSetName='GetViaJsonFilePath', Mandatory)]
[Parameter(ParameterSetName='GetViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Path')]
[System.String]
# The name of the resource group.
# The name is case insensitive.
${ResourceGroupName},

[Parameter(ParameterSetName='Get')]
[Parameter(ParameterSetName='GetExpanded')]
[Parameter(ParameterSetName='GetViaJsonFilePath')]
[Parameter(ParameterSetName='GetViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='GetViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IDynatraceObservabilityIdentity]
# Identity Parameter
${InputObject},

[Parameter(ParameterSetName='Get', Mandatory, ValueFromPipeline)]
[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMetricStatusRequest]
# Request for getting metric status for given monitored resource Ids
${Request},

[Parameter(ParameterSetName='GetExpanded')]
[Parameter(ParameterSetName='GetViaIdentityExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String[]]
# List of azure resource Id of monitored resources for which we get the metric status
${MonitoredResourceId},

[Parameter(ParameterSetName='GetViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String]
# Path of Json file supplied to the Get operation
${JsonFilePath},

[Parameter(ParameterSetName='GetViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String]
# Json string supplied to the Get operation
${JsonString},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
Expand Down Expand Up @@ -156,9 +200,13 @@ begin {

$mapping = @{
Get = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_Get';
GetExpanded = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_GetExpanded';
GetViaIdentity = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_GetViaIdentity';
GetViaIdentityExpanded = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_GetViaIdentityExpanded';
GetViaJsonFilePath = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_GetViaJsonFilePath';
GetViaJsonString = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitorMetricStatus_GetViaJsonString';
}
if (('Get') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if (('Get', 'GetExpanded', 'GetViaJsonFilePath', 'GetViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,21 @@ To create the parameters described below, construct a hash table containing the

INPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.

MONITORINPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
.Link
https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitorssoconfig
#>
Expand All @@ -73,6 +75,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetExpanded')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,21 @@ To create the parameters described below, construct a hash table containing the

INPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.

MONITORINPUTOBJECT <IDynatraceObservabilityIdentity>: Identity Parameter
[ConfigurationName <String>]: Single Sign On Configuration Name
[DynatraceEnvironmentId <String>]: Dynatrace Environment Id
[Id <String>]: Resource identity path
[MonitorName <String>]: Monitor resource name
[ResourceGroupName <String>]: The name of the resource group. The name is case insensitive.
[RuleSetName <String>]: Monitor resource name
[SubscriptionId <String>]: The ID of the target subscription.
[SubscriptionId <String>]: The ID of the target subscription. The value must be an UUID.
.Link
https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitortagrule
#>
Expand All @@ -74,6 +76,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter()]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,23 @@ List the resources currently being monitored by the Dynatrace monitor resource.
.Example
Get-AzDynatraceMonitoredResource -ResourceGroupName dyobrg -MonitorName dyob-pwsh01

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.ILogStatusRequest
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMonitoredResource
.Notes
COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

REQUEST <ILogStatusRequest>: Request for getting log status for given monitored resource Ids
[MonitoredResourceId <List<String>>]: List of azure resource Id of monitored resources for which we get the log status
.Link
https://learn.microsoft.com/powershell/module/az.dynatraceobservability/get-azdynatracemonitoredresource
#>
function Get-AzDynatraceMonitoredResource {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMonitoredResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
[CmdletBinding(DefaultParameterSetName='ListExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Path')]
Expand All @@ -49,8 +58,34 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String[]]
# The ID of the target subscription.
# The value must be an UUID.
${SubscriptionId},

[Parameter(ParameterSetName='List', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.ILogStatusRequest]
# Request for getting log status for given monitored resource Ids
${Request},

[Parameter(ParameterSetName='ListExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String[]]
# List of azure resource Id of monitored resources for which we get the log status
${MonitoredResourceId},

[Parameter(ParameterSetName='ListViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String]
# Path of Json file supplied to the List operation
${JsonFilePath},

[Parameter(ParameterSetName='ListViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Category('Body')]
[System.String]
# Json string supplied to the List operation
${JsonString},

[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
Expand Down Expand Up @@ -136,8 +171,11 @@ begin {

$mapping = @{
List = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitoredResource_List';
ListExpanded = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitoredResource_ListExpanded';
ListViaJsonFilePath = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitoredResource_ListViaJsonFilePath';
ListViaJsonString = 'Az.DynatraceObservability.private\Get-AzDynatraceMonitoredResource_ListViaJsonString';
}
if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if (('List', 'ListExpanded', 'ListViaJsonFilePath', 'ListViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
Expand Down
Loading