AzureAD
The AzureAD provider for Pulumi can be used to provision any of the Azure Active Directory resources available in Azure. The AzureAD provider must be configured with credentials to deploy and update resources in Azure.
See the full API documentation for complete details of the available AzureAD provider APIs.
Setup
The AzureAD provider supports several options for providing access to Azure credentials. See the Azure setup page for details.
Example
const azad = require("@pulumi/azuread")
const group = new azad.Group("my-group", {
name: "my-group",
});
import * as azad from "@pulumi/azuread";
const group = new azad.Group("my-group", {
name: "my-group",
});
import pulumi_azuread as azad
group = azad.Group("my-group",
name="my-group")
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
azad "github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
group, err := azad.NewGroup(ctx, "my-group", &azad.GroupArgs{
Name: pulumi.String("my-group"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Threading.Tasks;
using Pulumi;
using Pulumi.AzureAD;
class Program
{
static Task Main() =>
Deployment.Run(() => {
var group = new Group("my-group", new GroupArgs
{
Name = "my-group",
});
});
}
Libraries
The following packages are available in packager managers:
- JavaScript/TypeScript:
@pulumi/azuread
- Python:
pulumi-azuread
- Go:
github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread
- .NET:
Pulumi.AzureAD
The AzureAD provider is open source and available in the pulumi/pulumi-azuread repo.