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
4 changes: 3 additions & 1 deletion src/Datadog/docs/Get-AzDatadogMarketplaceAgreement.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ List Datadog marketplace agreements in the subscription.

### Example 1: List Datadog marketplace agreements in the subscription
```powershell
PS C:\> Get-AzDatadogMarketplaceAgreement
Get-AzDatadogMarketplaceAgreement
```

```output
Name Type
---- ----
marketplace Microsoft.Datadog/agreements
Expand Down
16 changes: 12 additions & 4 deletions src/Datadog/docs/Get-AzDatadogMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ Get the properties of a specific monitor resource.

### Example 1: List all monitor resources under a subscription
```powershell
PS C:\> Get-AzDatadogMonitor
Get-AzDatadogMonitor
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand All @@ -52,8 +54,10 @@ This command lists all monitor resources under a subscription.

### Example 2: List monitor resources under a resource group
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand All @@ -63,8 +67,10 @@ This command lists all monitor resources under a resource group.

### Example 3: Get the properties of a specific monitor resource
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand All @@ -74,8 +80,10 @@ This command gets the properties of a specific monitor resource.

### Example 4: Get the properties of a specific monitor resource by pipeline
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitor
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitor
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/docs/Get-AzDatadogMonitorApiKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ List the api keys for a given monitor resource.

### Example 1: List the api keys for a given monitor resource
```powershell
PS C:\> Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog
Get-AzDatadogMonitorApiKey -ResourceGroupName azure-rg-Datadog -Name Datadog
```

```output
Created CreatedBy Key Name
------- --------- --- ----
2021-05-24 07:25:35 user@microsoft.com xxxxxxxxxxxx Azure Admin User API Key
Expand Down
8 changes: 6 additions & 2 deletions src/Datadog/docs/Get-AzDatadogMonitorDefaultKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ Get the default api key.

### Example 1: Get the default api key
```powershell
PS C:\> Get-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -Name Datadog
Get-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -Name Datadog
```

```output
Created CreatedBy Key Name
------- --------- --- ----
xxxxxxxxxxxxx
Expand All @@ -42,8 +44,10 @@ This command gets the default api key.

### Example 2: Get the default api key by pipeline
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitorDefaultKey
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Get-AzDatadogMonitorDefaultKey
```

```output
Created CreatedBy Key Name
------- --------- --- ----
xxxxxxxxxxxxx
Expand Down
3 changes: 1 addition & 2 deletions src/Datadog/docs/Get-AzDatadogMonitorHost.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ List the hosts for a given monitor resource.

### Example 1: List the hosts for a given monitor resource
```powershell
PS C:\> Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog

Get-AzDatadogMonitorHost -ResourceGroupName azure-rg-Datadog -Name Datadog
```

This command lists the hosts for a given monitor resource
Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/docs/Get-AzDatadogMonitorLinkedResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ List all Azure resources associated to the same Datadog organization as the targ

### Example 1: List all Azure resources associated to the same Datadog organization as the target resource
```powershell
PS C:\> Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog
Get-AzDatadogMonitorLinkedResource -ResourceGroupName azure-rg-Datadog -Name lucasDatadog
```

```output
Id
--
/SUBSCRIPTIONS/xxxxxxxxxxxxxx-xxxxxxx-xxxxxx/RESOURCEGROUPS/EUAP-ACR-01266F2538192A/PROVIDERS/MICROSOFT.Datadog/MONITORS/LIFTR-ACR-0126693370263
Expand Down
3 changes: 1 addition & 2 deletions src/Datadog/docs/Get-AzDatadogMonitorMonitoredResource.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ List the resources currently being monitored by the Datadog monitor resource.

### Example 1: List the resources currently being monitored by the Datadog monitor resource
```powershell
PS C:\> Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog

Get-AzDatadogMonitorMonitoredResource -ResourceGroupName azure-rg-Datadog -Name Datadog
```

This command lists the resources currently being monitored by the Datadog monitor resource.
Expand Down
12 changes: 9 additions & 3 deletions src/Datadog/docs/Get-AzDatadogSingleSignOnConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ Gets the datadog single sign-on resource for the given Monitor.

### Example 1: List the Datadog single sign-on resource for the given Monitor
```powershell
PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog
Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/singlesignonconfigurations
Expand All @@ -48,8 +50,10 @@ This command lists the Datadog single sign-on resource for the given Monitor.

### Example 2: Gets the Datadog single sign-on resource for the given Monitor
```powershell
PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default'
Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default'
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/singlesignonconfigurations
Expand All @@ -59,8 +63,10 @@ This command gets the Datadog single sign-on resource for the given Monitor.

### Example 3: Gets the Datadog single sign-on resource for the given Monitor by pipeline
```powershell
PS C:\> New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 | Get-AzDatadogSingleSignOnConfiguration
New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000 | Get-AzDatadogSingleSignOnConfiguration
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/singlesignonconfigurations
Expand Down
12 changes: 9 additions & 3 deletions src/Datadog/docs/Get-AzDatadogTagRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ Get a tag rule set for a given monitor resource.

### Example 1: List all tag rules set for a given monitor resource
```powershell
PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog
Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/tagrules
Expand All @@ -47,8 +49,10 @@ This command lists all tag rules set for a given monitor resource.

### Example 2: Get a tag rule set for a given monitor resource
```powershell
PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default'
Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default'
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/tagrules
Expand All @@ -58,8 +62,10 @@ This command gets a tag rule set for a given monitor resource.

### Example 3: Get a tag rule set for a given monitor resource by pipeline
```powershell
PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Get-AzDatadogTagRule
Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | Get-AzDatadogTagRule
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/tagrules
Expand Down
3 changes: 1 addition & 2 deletions src/Datadog/docs/New-AzDatadogFilteringTagObject.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ Create a in-memory object for FilteringTag

### Example 1: Create a in-memory object for FilteringTag
```powershell
PS C:\> New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"

New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
```

This command Create a in-memory object for FilteringTag.
Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/docs/New-AzDatadogMarketplaceAgreement.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ Create Datadog marketplace agreement in the subscription.

### Example 1: Create Datadog marketplace agreement in the subscription
```powershell
PS C:\> New-AzDatadogMarketplaceAgreement -Accepted
New-AzDatadogMarketplaceAgreement -Accepted
```

```output
Name Type
---- ----
default microsoft.Datadog/agreements
Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/docs/New-AzDatadogMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ Create a monitor resource.

### Example 1: Create a monitor resource
```powershell
PS C:\> New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned
New-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-pwsh01 -SkuName 'drawdown_testing_20200904_Monthly' -Location 'eastus2euap' -UserInfoEmailAddress 'xxxx@microsoft.com' -UserInfoName 'user' -UserInfoPhoneNumber 'xxxxxxxxxxxx' -IdentityType SystemAssigned
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog-pwsh01 microsoft.Datadog/monitors
Expand Down
8 changes: 6 additions & 2 deletions src/Datadog/docs/New-AzDatadogSingleSignOnConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ Configures single-sign-on for this resource.

### Example 1: Configures single-sign-on for Data monitor resource
```powershell
PS C:\> New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
New-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' -SingleSignOnState Enable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/singlesignonconfigurations
Expand All @@ -44,8 +46,10 @@ This command configures single-sign-on for Data monitor resource.

### Example 2: Configures single-sign-on for Data monitor resource by pipeline
```powershell
PS C:\> Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
Get-AzDatadogSingleSignOnConfiguration -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogSingleSignOnConfiguration -SingleSignOnState Disable -EnterpriseAppId 00000000-0000-0000-0000-000000000000
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/singlesignonconfigurations
Expand Down
20 changes: 12 additions & 8 deletions src/Datadog/docs/New-AzDatadogTagRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ Create or update a tag rule set for a given monitor resource.

### Example 1: Create or update a tag rule set for a given monitor resource
```powershell
PS C:\> $ftobjArray = @()
PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
PS C:\> New-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray
$ftobjArray = @()
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
New-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'test' -LogRuleFilteringTag $ftobjArray
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/tagrules
Expand All @@ -49,11 +51,13 @@ This command creates or updates a tag rule set for a given monitor resource.

### Example 2: Create or update a tag rule set for a given monitor resource by pipeline
```powershell
PS C:\> $ftobjArray = @()
PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
PS C:\> $ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
PS C:\> Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray
$ftobjArray = @()
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Include" -Value "Prod" -Name "Environment"
$ftobjArray += New-AzDatadogFilteringTagObject -Action "Exclude" -Value "Dev" -Name "Environment"
Get-AzDatadogTagRule -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Name 'default' | New-AzDatadogTagRule -LogRuleFilteringTag $ftobjArray
```

```output
Name Type
---- ----
default microsoft.Datadog/monitors/tagrules
Expand Down
6 changes: 2 additions & 4 deletions src/Datadog/docs/Remove-AzDatadogMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,14 @@ Delete a monitor resource.

### Example 1: Delete a monitor resource
```powershell
PS C:\> Remove-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal03

Remove-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal03
```

This command deletes a monitor resource.

### Example 2: Delete a monitor resource by pipeline
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal02 | Remove-AzDatadogMonitor

Get-AzDatadogMonitor -ResourceGroupName azure-rg-test -Name Datadog-portal02 | Remove-AzDatadogMonitor
```

This command deletes a monitor resource by pipeline.
Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/docs/Set-AzDatadogMonitorDefaultKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ Set the default api key.

### Example 1: Set the default api key for monitor resource
```powershell
PS C:\> Set-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Key 'xxxxxxxxxxxxxxxxxxxxxx'
Set-AzDatadogMonitorDefaultKey -ResourceGroupName azure-rg-Datadog -MonitorName Datadog -Key 'xxxxxxxxxxxxxxxxxxxxxx'
```

```output
Created CreatedBy Key Name
------- --------- --- ----
xxxxxxxxxxxxxxxxxxxxxx
Expand Down
9 changes: 7 additions & 2 deletions src/Datadog/docs/Update-AzDatadogMonitor.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ Update a monitor resource.

### Example 1: Update a monitor resource
```powershell
PS C:\> Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'}
Update-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog -Tag @{'key1'='value1'; 'key2'='value2'}
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand All @@ -44,7 +46,10 @@ This command updates a monitor resource.

### Example 2: Update a monitor resource by pipeline
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitor -Tag @{'key1'='value1'; 'key2'='value2'}
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitor -Tag @{'key1'='value1'; 'key2'='value2'}
```

```output
Location Name Type
-------- ---- ----
eastus2euap Datadog microsoft.Datadog/monitors
Expand Down
8 changes: 6 additions & 2 deletions src/Datadog/docs/Update-AzDatadogMonitorSetPasswordLink.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,21 @@ Refresh the set password link and return a latest one.

### Example 1: Refresh the set password link and return a latest one
```powershell
PS C:\> Update-AzDatadogMonitorSetPasswordLink -ResourceGroupName azure-rg-Datadog -Name Datadog
Update-AzDatadogMonitorSetPasswordLink -ResourceGroupName azure-rg-Datadog -Name Datadog
```

```output
https://us3.Datadoghq.com/account/reset_password/xxxxxxxxxxxxxxxxxxxxxxxxxxx
```

This command refresh the set password link and return a latest one.

### Example 2: Refresh the set password link and return a latest one by pipeline
```powershell
PS C:\> Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitorSetPasswordLink
Get-AzDatadogMonitor -ResourceGroupName azure-rg-Datadog -Name Datadog | Update-AzDatadogMonitorSetPasswordLink
```

```output
https://us3.Datadoghq.com/account/reset_password/xxxxxxxxxxxxxxxxxxxxxxxxxxx
```

Expand Down
4 changes: 3 additions & 1 deletion src/Datadog/examples/Get-AzDatadogMarketplaceAgreement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Example 1: List Datadog marketplace agreements in the subscription
```powershell
PS C:\> Get-AzDatadogMarketplaceAgreement
Get-AzDatadogMarketplaceAgreement
```

```output
Name Type
---- ----
marketplace Microsoft.Datadog/agreements
Expand Down
Loading