Skip to content

Commit 1962062

Browse files
committed
Add info about creating a new AMG instance with deterministic IPs enabled
1 parent 39492cd commit 1962062

File tree

1 file changed

+37
-22
lines changed

1 file changed

+37
-22
lines changed

articles/managed-grafana/how-to-deterministic-ip.md

Lines changed: 37 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,51 @@ In this guide, learn how to activate deterministic outbound IP support used by A
1515
## Prerequisites
1616

1717
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free).
18-
- An Azure Managed Grafana instance with the deterministic outbound IP option set to enabled. If you don't have one yet, [create an Azure Managed Grafana instance](./quickstart-managed-grafana-portal.md).
1918
- A data source. For example, an [Azure Data Explorer database](/azure/data-explorer/create-cluster-database-portal).
2019

2120
## Enable deterministic outbound IPs
2221

23-
API keys are disabled by default in Azure Managed Grafana. There are two ways you can enable API keys:
22+
Deterministic outbound IP support is disabled by default in Azure Managed Grafana. You can enable this feature during the creation of the instance, or you can activate it on an instance that's already been created.
2423

25-
- During the creation of the Azure Managed Grafana workspace, enable **Deterministic outbound IP** in the **Advanced** tab.
26-
- In your Managed Grafana workspace.
24+
### Create an Azure Managed Grafana workspace with deterministic outbound IPs enabled
2725

28-
### [Portal](#tab/portal)
26+
#### [Portal](#tab/portal)
2927

30-
1. In the Azure portal, under **Settings** select **Configuration**, and then under **Deterministic outbound IP**, select **Enable**.
28+
When creating an instance, in the **Advanced** tab, set **Deterministic outbound IP** to **Enable**.
3129

32-
:::image type="content" source="media/deterministic-ips/enable-deterministic-IP-support.png" alt-text="Screenshot of the Azure platform. Enable deterministic IPs.":::
33-
1. Select **Save** to confirm the activation of deterministic outbound IP addresses.
34-
1. Select **Refresh** to display the list of IP addresses under **Static IP address**.
30+
For more information about creating a new instance, go to [Quickstart: Create an Azure Managed Grafana instance](quickstart-managed-grafana-portal.md).
3531

36-
### [Azure CLI](#tab/azure-cli)
32+
#### [Azure CLI](#tab/azure-cli)
3733

38-
Run the [az grafana update](/cli/azure/grafana#az-grafana-update) command to update your Azure Managed Grafana instance and enable deterministic outbound IPs. Replace `<azure-managed-grafana-instance-name>` with the name of your Azure Managed Grafana instance.
34+
Run the [az grafana create](/cli/azure/grafana#az-grafana-create) command to create an Azure Managed Grafana instance with deterministic outbound IPs enabled. Replace `<azure-managed-grafana-name>` and `<resource-group>` with the name of the new Azure Managed Grafana instance and a resource group.
3935

40-
```azurecli-interactive
41-
az grafana update --name <azure-managed-grafana-instance-name> --deterministic-outbound-ip Enabled
42-
```
36+
```azurecli-interactive
37+
az grafana create --name <azure-managed-grafana-name> --resource-group <resource-group> --deterministic-outbound-ip Enabled
38+
```
39+
40+
---
41+
42+
### Activate deterministic outbound IPs on an existing Azure Managed Grafana instance
43+
44+
#### [Portal](#tab/portal)
45+
46+
1. In the Azure portal, under **Settings** select **Configuration**, and then under **Deterministic outbound IP**, select **Enable**.
47+
48+
:::image type="content" source="media/deterministic-ips/enable-deterministic-IP-support.png" alt-text="Screenshot of the Azure platform. Enable deterministic IPs.":::
49+
1. Select **Save** to confirm the activation of deterministic outbound IP addresses.
50+
1. Select **Refresh** to display the list of IP addresses under **Static IP address**.
4351

44-
---
52+
#### [Azure CLI](#tab/azure-cli)
4553

46-
On the **Configuration** page, Azure Managed Grafana lists two outbound static IP addresses assigned to your instance.
54+
Run the [az grafana update](/cli/azure/grafana#az-grafana-update) command to update your Azure Managed Grafana instance and enable deterministic outbound IPs. Replace `<azure-managed-grafana-name>` with the name of your Azure Managed Grafana instance.
55+
56+
```azurecli-interactive
57+
az grafana update --name <azure-managed-grafana-name> --deterministic-outbound-ip Enabled
58+
```
59+
60+
The deterministic outbound IPs are listed under `outboundIPs` in the output of the Azure CLI.
61+
62+
---
4763

4864
## Disable public access to a data source and allow Azure Managed Grafana IP addresses
4965

@@ -66,17 +82,16 @@ Check if the Azure Managed Grafana endpoint can still access your data source.
6682

6783
1. In the Azure portal, go to your instance's **Overview** page and select the **Endpoint** URL.
6884

69-
1. Got to **Configuration > Data Source > Azure Data Explorer Datasource > Settings** and at the bottom of the page, select **Save & test**:
70-
71-
- If the message "Success" is displayed, Azure Managed Grafana can access your data source.
72-
- If the following error message is displayed, Azure Managed Grafana can't access the data source: `Post "https://<Azure-Data-Explorer-URI>/v1/rest/query": dial tcp 13.90.24.175:443: i/o timeout`. Make sure that you've entered the IP addresses correctly in the data source firewall allowlist.
85+
1. Go to **Configuration > Data Source > Azure Data Explorer Datasource > Settings** and at the bottom of the page, select **Save & test**:
86+
- If the message "Success" is displayed, Azure Managed Grafana can access your data source.
87+
- If the following error message is displayed, Azure Managed Grafana can't access the data source: `Post "https://<Azure-Data-Explorer-URI>/v1/rest/query": dial tcp 13.90.24.175:443: i/o timeout`. Make sure that you've entered the IP addresses correctly in the data source firewall allowlist.
7388

7489
### [Azure CLI](#tab/azure-cli)
7590

76-
Run the [az grafana data-source query](/cli/azure/grafana/data-source#az-grafana-data-source-query) command to query the data source. Replace `<azure-managed-grafana-instance-name>` and `<data-source-name>` with the name of your Azure Managed Grafana instance and the name of your data source.
91+
Run the [az grafana data-source query](/cli/azure/grafana/data-source#az-grafana-data-source-query) command to query the data source. Replace `<azure-managed-grafana-name>` and `<data-source-name>` with the name of your Azure Managed Grafana instance and the name of your data source.
7792

7893
```azurecli-interactive
79-
az grafana data-source query --name <azure-managed-grafana-instance-name> --data-source <data-source-name> --output table
94+
az grafana data-source query --name <azure-managed-grafana-name> --data-source <data-source-name> --output table
8095
```
8196

8297
If the following error message is displayed, Azure Managed Grafana can't access the data source: `"error": "Post \\"https://<Azure-Data-Explorer-URI>/v1/rest/query\\": dial tcp 13.90.24.175:443: i/o timeout"`. Make sure that you've entered the IP addresses correctly in the data source firewall allowlist.

0 commit comments

Comments
 (0)