Skip to main content
net8.0.NETStandard2.0

Azure.Provisioning.RedisEnterprise simplifies declarative resource provisioning in .NET.

Published
Dec 5, 2025
10mo ago
Total Downloads
520.2K
520,154

Install

dotnet add package Azure.Provisioning.RedisEnterprise --version 1.1.0
ProductVersions
.NET
net8.0
.NET Standard
netstandard2.0

README

Azure Provisioning RedisEnterprise client library for .NET

Azure.Provisioning.RedisEnterprise simplifies declarative resource provisioning in .NET.

Getting started

Install the package

Install the client library for .NET with NuGet:

dotnet add package Azure.Provisioning.RedisEnterprise

Prerequisites

You must have an Azure subscription.

Authenticate the Client

Key concepts

This library allows you to specify your infrastructure in a declarative style using dotnet. You can then use azd to deploy your infrastructure to Azure directly without needing to write or maintain bicep or arm templates.

Examples

Create A Redis Enterprise Cluster With Vector Database

This example demonstrates how to create a Redis Enterprise cluster with RediSearch and RedisJSON modules for vector database capabilities, based on the Azure quickstart template.

Infrastructure infra = new();
ProvisioningParameter principalId = new ProvisioningParameter("principalId", typeof(string))
{
    Description = "The principal ID of the user assigned identity to use for the Redis Enterprise cluster."
};
infra.Add(principalId);
RedisEnterpriseCluster redisEnterprise =
    new("redisEnterprise", "2022-01-01")
    {
        Sku = new RedisEnterpriseSku
        {
            Name = RedisEnterpriseSkuName.EnterpriseE10,
            Capacity = 2
        }
    };
infra.Add(redisEnterprise);
RedisEnterpriseDatabase database =
    new("redisDatabase", "2022-01-01")
    {
        Name = "default",
        Parent = redisEnterprise,
        EvictionPolicy = RedisEnterpriseEvictionPolicy.NoEviction,
        ClusteringPolicy = RedisEnterpriseClusteringPolicy.EnterpriseCluster,
        Modules =
        [
            new RedisEnterpriseModule { Name = "RediSearch" },
            new RedisEnterpriseModule { Name = "RedisJSON" }
        ],
        Port = 10000
    };
infra.Add(database);
AccessPolicyAssignment accessPolicyAssignment =
    new("accessPolicyAssignment", "2022-01-01")
    {
        Parent = database,
        AccessPolicyName = "default",
        UserObjectId = principalId
    };
infra.Add(accessPolicyAssignment);

Troubleshooting

Next steps

Contributing

For details on contributing to this repository, see the contributing guide.

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (for example, label, comment). Follow the instructions provided by the bot. You'll only need to do this action once across all repositories using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any other questions or comments.

Changes from Previous Version

No structural changes between v1.0.0 and v1.1.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.