Breyta

Deila með


Create a private endpoint for Azure Data Manager for Energy

Azure Private Link provides private connectivity from a virtual network to Azure platform as a service (PaaS). It simplifies the network architecture and secures the connection between endpoints in Azure by eliminating data exposure to the public internet.

By using Azure Private Link, you can connect to an Azure Data Manager for Energy instance from your virtual network via a private endpoint, which is a set of private IP addresses in a subnet within the virtual network. You can then limit access to your Azure Data Manager for Energy instance over these private IP addresses.

You can connect to an Azure Data Manager for Energy instance that's configured with Private Link by using an automatic or manual approval method. To learn more, see the Private Link documentation.

This article describes how to set up a private endpoint for Azure Data Manager for Energy.

Note

To enable private endpoint, public access must be disabled for Azure Data Manager for Energy. If public access is enabled and private endpoint is created, the instance will only be accessed via private endpoint and not by public access.

Note

Terraform currently does not support private endpoint creation for Azure Data Manager for Energy.

Prerequisites

Create a virtual network in the same subscription as the Azure Data Manager for Energy instance. This virtual network allows automatic approval of the Private Link endpoint.

Create a private endpoint during instance provisioning by using the Azure portal

Use the following steps to create a private endpoint while provisioning Azure Data Manager for Energy resource:

  1. During the creation of Azure Data Manager for Energy instance, select the Networking tab.

    Screenshot of the Networking tab during provisioning.

  2. In the Networking tab, select Disable public access and use private access and then choose Add under Private endpoint.

    Screenshot of choosing add private endpoint.

  3. In Create private endpoint, enter or select the following information and select OK:

    Setting Value
    Subscription Select your subscription
    Resource group Select a resource group
    Location Select the region where you want to deploy the private endpoint
    Name Enter a name for your private endpoint. The name must be unique
    Target sub-resource Azure Data Manager for Energy by default

    Networking:

    Setting Value
    Virtual network Select the virtual network in which you want to deploy your private endpoint
    Subnet Select the subnet

    Private DNS integration:

    Setting Value
    Integrate with private DNS zone Leave the default value - Yes
    Private DNS zone Leave the default value

    Screenshot of the Create private endpoint tab - 1.

    Screenshot of the Create private endpoint tab - 2.

  4. Verify the private endpoint details in the Networking tab and next, select Review+Create after completing other tabs.

    Screenshot of the Private endpoint details.

  5. On the Review + create page, Azure validates your configurations. When you see Validation passed, select the Create button.

  6. An Azure Data Manager for Energy instance is created with private link.

  7. You can navigate to Networking post instance provisioning and see the private endpoint created under Private access tab.

    Screenshot of the private endpoint created.

Create a private endpoint post instance provisioning by using the Azure portal

Use the following steps to create a private endpoint for an existing Azure Data Manager for Energy instance by using the Azure portal:

  1. From the All resources pane, choose an Azure Data Manager for Energy instance.

  2. Select Networking from the list of settings.

  3. On the Public Access tab, select Enabled from all networks to allow traffic from all networks.

    Screenshot of the Public Access tab.

    If you want to block traffic from all networks, select Disabled.

  4. Select the Private Access tab, and then select Create a private endpoint.

    Screenshot of the Private Access tab.

  5. In the Create a private endpoint wizard, on the Basics page, enter or select the following details:

    Setting Value
    Subscription Select your subscription for the project.
    Resource group Select a resource group for the project.
    Name Enter a name for your private endpoint. The name must be unique.
    Region Select the region where you want to deploy Private Link.

    Screenshot of entering basic information for a private endpoint.

    Note

    Automatic approval happens only when the Azure Data Manager for Energy instance and the virtual network for the private endpoint are in the same subscription.

  6. Select Next: Resource. On the Resource page, confirm the following information:

    Setting Value
    Subscription Your subscription
    Resource type Microsoft.OpenEnergyPlatform/energyServices
    Resource Your Azure Data Manager for Energy instance
    Target sub-resource Azure Data Manager for Energy (for Azure Data Manager for Energy) by default

    Screenshot of resource information for a private endpoint.

  7. Select Next: Virtual Network. On the Virtual Network page, you can:

    • Configure network and private IP settings. Learn more.

    • Configure a private endpoint with an application security group. Learn more.

    Screenshot of virtual network information for a private endpoint.

  8. Select Next: DNS. On the DNS page, you can leave the default settings or configure private DNS integration. Learn more.

    Screenshot of DNS information for a private endpoint.

  9. Select Next: Tags. On the Tags page, you can add tags to categorize resources.

  10. Select Review + create. On the Review + create page, Azure validates your configuration.

    When you see Validation passed, select Create.

    Screenshot of the page that summarizes and validates configuration of your private endpoint.

  11. After the deployment is complete, select Go to resource.

    Screenshot that shows an overview of a private endpoint deployment.

  12. Confirm that the private endpoint that you created was automatically approved.

    Screenshot of information about a private endpoint with an indication of automatic approval.

  13. Select the Azure Data Manager for Energy instance, select Networking, and then select the Private Access tab. Confirm that your newly created private endpoint connection appears in the list.

    Screenshot of the Private Access tab with an automatically approved private endpoint connection.

Note

When the Azure Data Manager for Energy instance and the virtual network are in different tenants or subscriptions, you have to manually approve the request to create a private endpoint. The Approve and Reject buttons appear on the Private Access tab.

Screenshot that shows options for rejecting or approving a request to create a private endpoint.

Manage multiple endpoints in the same virtual network

Access via IP vs DNS

In the same virtual network, you can create multiple endpoints. Each end point will have a different IP. It is not possible to resolve one host name with two difference IPs.

  • If you access the resource via IP:
    • The resource will be accessible only via the latest private IP address.
    • All the previous private IPs in the same vnet will become dangling.
    • Even when you delete the latest IP, all the previous IPs still remain dangling.
  • If you access via DNS name: You won't see any difference.

Know which endpoint the resource is connected to

  1. Go to any of the private endpoints, to the DNS configuration, and to Private DNS Zone associated with ADME resource.

Screenshot that shows DNS Config.

  1. In the private DNS zone, check the IP associated with the entry for your Azure Data Manager for Energy instance.

Screenshot that shows DNS Zone.

  1. This is the IP to which your resource is connected.

New data partitions with static IP private endpoints

It is preferable to create private endpoints with dynamic IP to enable dynamic data partition creation. If you initiate the creation of new data partitions with static IPs private endpoint, it will fail. Each new data partition requires three additional static IPs which the static IP private endpoint is not able to provide.

To create new data partitions successfully with static IP private endpoint, follow the below steps:

  1. Create a new private endpoint with either dynamic IP or enable public access.
  2. Delete existing private endpoint with static IP from Azure Data Manager for Energy instance and delete it from Azure resources also.
  3. Create new data partitions successfully.
  4. Delete the newly created private endpoint with dynamic IP and/or disable public access.
  5. Create a new private endpoint with static IP. This step will now ask to assign additional static IPs needed for new data partition. Screenshot that shows static IP with new data partition.

Next steps

To learn more about using Customer Lockbox as an interface to review and approve or reject access requests.