Skip to content
Azure discovery plugin for hazelcast
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Table of Contents

Hazelcast Discovery Plugin for Microsoft Azure

This project provides a discovery strategy for Hazelcast 3.6-RC+1 enabled applications running on Azure. It will provide all Hazelcast instances by returning VMs within your Azure resource group that are tagged with a specified value.

Architectual diagram

Getting Started

To add this plugin to your Java project, add the following lines to either your Maven POM file or Gradle configuration.

For Gradle:

repositories {

dependencies {
    compile '${hazelcast-azure-version}'

For Maven:


Compiling with Gradle

Run the following command to compile the plugin:

compile '${hazelcast-azure-version}'

Check the releases for the latest version.

Configuring at Hazelcast Side

Ensure that you have added the package hazelcast-azure to your Maven or Gradle configuration as mentioned above.

In your Hazelcast configuration, use the AzureDiscoveryStrategy as shown below:

      <multicast enabled="false"/>
      <azure enabled="true">

You will need to setup Azure Active Directory Service Principal credentials for your Azure Subscription for this plugin to work. With the credentials, fill in the placeholder values above.

Configuring at Azure Side

  • client-id - The Azure Active Directory Service Principal client ID
  • client-secret - The Azure Active Directory Service Principal client secret
  • tenant-id - The Azure Active Directory tenant ID
  • subscription-id - The Azure subscription ID
  • cluster-id - The name of the tag on the hazelcast vm resources
  • group-name - The Azure resource group name of the cluster. You can find this in the Azure portal or CLI.

With every Hazelcast Virtual Machine you deploy in your resource group, you need to ensure that each VM is tagged with the value of cluster-id defined in your Hazelcast configuration. The only requirement is that every VM can access each other either by private or public IP address.

Read more about how you can tag your virtual machines.

Using Azure With ZONE_AWARE Partition Group

When you use Azure plugin as discovery provider, you can configure Hazelcast Partition Grouping with Azure. You need to add fault domain or DNS domain to your machines. So machines will be grouped with respect to their fault or DNS domains. For more information please read:

<partition-group enabled="true" group-type="ZONE_AWARE" />

Automated Deployment

You can also use the Azure Hazelcast Template to automatically deploy a Hazelcast cluster which uses this plugin.

You can’t perform that action at this time.