Skip to content

Commit aa3acb5

Browse files
authored
Merge pull request #305083 from v-albemi/datadog
Datadog CLI
2 parents 1dd6c7b + 642a142 commit aa3acb5

3 files changed

Lines changed: 76 additions & 8 deletions

File tree

articles/partner-solutions/datadog/create.md

Lines changed: 65 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
title: Create a Datadog resource
33
description: Get started with Datadog on Azure by creating a new resource, configuring metrics and logs, and setting up single sign-on through Microsoft Entra ID.
44
ms.topic: quickstart
5-
ms.date: 03/10/2025
5+
zone_pivot_groups: datadog-create
6+
ms.date: 09/04/2025
67
ms.custom:
78
- references_regions
89
- ai-gen-docs-bap
@@ -23,10 +24,66 @@ In this quickstart, you create a new instance of Datadog.
2324

2425
## Create a Datadog resource
2526

26-
[!INCLUDE [create-resource](../includes/create-resource.md)]
27-
2827
> [!NOTE]
29-
> The steps in this article are for creating a new Datadog organization. See [link to an existing Datadog organization](link-to-existing-organization.md) if you have an existing Datadog organization you'd prefer to link your Azure subscription to.
28+
> The steps in this article are for creating a new Datadog organization. See [Link to an existing Datadog organization](link-to-existing-organization.md) if you have an existing Datadog organization you'd prefer to link your Azure subscription to.
29+
30+
::: zone pivot="azure-cli"
31+
32+
Start by preparing your environment for the Azure CLI:
33+
34+
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
35+
36+
After you sign in, use the [az datadog monitor create](/cli/azure/datadog/monitor#az-datadog-monitor-create) command to create the new monitor resource:
37+
38+
```azurecli
39+
az datadog monitor create --name "myMonitor" --resource-group "myResourceGroup" \
40+
--location "my location" \
41+
--offer-detail id="string" plan-id="string" plan-name="string" publisher-id="string" term-unit="string" \
42+
--user-detail email-address="[email protected]" first-name="string" last-name="string" \
43+
--tags Environment="Dev"
44+
```
45+
46+
> [!NOTE]
47+
> If you want the command to return before the create operation completes, add the optional parameter `--no-wait`. The operation continues to run until the Datadog monitor is created.
48+
49+
To pause CLI execution until a monitor's specific event or condition occurs, use the [az datadog monitor wait](/cli/azure/datadog/monitor#az-datadog-monitor-wait) command. For example, to wait until a monitor is created:
50+
51+
```azurecli
52+
az datadog monitor wait --name "myMonitor" --resource-group "myResourceGroup" --created
53+
```
54+
55+
To see a list of existing monitors, use the [az datadog monitor list](/cli/azure/datadog/monitor#az-datadog-monitor-list) command.
56+
57+
You can view all of the monitors in your subscription:
58+
59+
```azurecli
60+
az datadog monitor list
61+
```
62+
63+
Or, view the monitors in a resource group:
64+
65+
```azurecli
66+
az datadog monitor list --resource-group "myResourceGroup"
67+
```
68+
69+
To see the properties of a specific monitor, use the [az datadog monitor show](/cli/azure/datadog/monitor#az-datadog-monitor-show) command.
70+
71+
You can view the monitor by name:
72+
73+
```azurecli
74+
az datadog monitor show --name "myMonitor" --resource-group "myResourceGroup"
75+
```
76+
77+
Or, view the monitor by resource ID:
78+
79+
```azurecli
80+
az datadog monitor show --ids "/subscriptions/{SubID}/resourceGroups/{myResourceGroup}/providers/Microsoft.Datadog/monitors/{myMonitor}"
81+
82+
::: zone-end
83+
84+
::: zone pivot="azure-portal"
85+
86+
[!INCLUDE [create-resource](../includes/create-resource.md)]
3087
3188
### Basics tab
3289
@@ -109,7 +166,9 @@ Select the **Next** button at the bottom of the page.
109166
110167
[!INCLUDE [review-create](../includes/review-create.md)]
111168
112-
## Next steps
169+
::: zone-end
113170
114-
- [Manage Datadog resources](manage.md)
171+
## Next step
172+
> [!div class="nextstepaction"]
173+
> [Manage Datadog resources](manage.md)
115174

articles/partner-solutions/datadog/overview.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ For more help using the Datadog, see the following links to the [Datadog website
7070
- [Blog announcing the Datadog <> Azure Partnership](https://www.datadoghq.com/blog/azure-datadog-partnership/)
7171
- [Datadog Pricing Page](https://www.datadoghq.com/pricing/)
7272

73-
## Next steps
73+
## Next step
7474

75-
- [QuickStart: Get started with Datadog](create.md)
75+
> [!div class="nextstepaction"]
76+
> [QuickStart: Get started with Datadog](create.md)

articles/zone-pivot-groups.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,6 +1982,14 @@ groups:
19821982
title: Elastic Observability
19831983
- id: elastic-security
19841984
title: Elastic Security
1985+
- id: datadog-create
1986+
title: Datadog Create
1987+
prompt: Select your creation experience for Datadog.
1988+
pivots:
1989+
- id: azure-portal
1990+
title: Azure Portal
1991+
- id: azure-cli
1992+
title: Azure CLI
19851993
# Owner: jodowns
19861994
- id: sql-managed-instance-tiers
19871995
title: Tier

0 commit comments

Comments
 (0)