1. Packages
  2. Packages
  3. Azure Native
  4. API Docs
  5. azureresiliencemanagement
  6. Enrollment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.23.0
published on Saturday, Jul 18, 2026 by Pulumi

    An enrollment that links a usage plan to a service group.

    Uses Azure REST API version 2026-03-01-preview.

    Other available API versions: 2026-04-01-preview, 2026-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azureresiliencemanagement [ApiVersion]. See the version guide for details.

    Example Usage

    Enrollments_CreateOrUpdate_MaximumSet

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var enrollment = new AzureNative.AzureResilienceManagement.Enrollment("enrollment", new()
        {
            EnrollmentName = "sg1-enrollment",
            Properties = new AzureNative.AzureResilienceManagement.Inputs.EnrollmentPropertiesArgs
            {
                ServiceGroupId = "/providers/Microsoft.Management/serviceGroups/sg1",
            },
            ResourceGroupName = "MyResourceGroup",
            UsagePlanName = "myUsagePlan",
        });
    
    });
    
    package main
    
    import (
    	azureresiliencemanagement "github.com/pulumi/pulumi-azure-native-sdk/azureresiliencemanagement/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azureresiliencemanagement.NewEnrollment(ctx, "enrollment", &azureresiliencemanagement.EnrollmentArgs{
    			EnrollmentName: pulumi.String("sg1-enrollment"),
    			Properties: &azureresiliencemanagement.EnrollmentPropertiesArgs{
    				ServiceGroupId: pulumi.String("/providers/Microsoft.Management/serviceGroups/sg1"),
    			},
    			ResourceGroupName: pulumi.String("MyResourceGroup"),
    			UsagePlanName:     pulumi.String("myUsagePlan"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    pulumi {
      required_providers {
        azure-native = {
          source = "pulumi/azure-native"
        }
      }
    }
    
    resource "azure-native_azureresiliencemanagement_enrollment" "enrollment" {
      enrollment_name = "sg1-enrollment"
      properties = {
        service_group_id = "/providers/Microsoft.Management/serviceGroups/sg1"
      }
      resource_group_name = "MyResourceGroup"
      usage_plan_name     = "myUsagePlan"
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.azureresiliencemanagement.Enrollment;
    import com.pulumi.azurenative.azureresiliencemanagement.EnrollmentArgs;
    import com.pulumi.azurenative.azureresiliencemanagement.inputs.EnrollmentPropertiesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var enrollment = new Enrollment("enrollment", EnrollmentArgs.builder()
                .enrollmentName("sg1-enrollment")
                .properties(EnrollmentPropertiesArgs.builder()
                    .serviceGroupId("/providers/Microsoft.Management/serviceGroups/sg1")
                    .build())
                .resourceGroupName("MyResourceGroup")
                .usagePlanName("myUsagePlan")
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const enrollment = new azure_native.azureresiliencemanagement.Enrollment("enrollment", {
        enrollmentName: "sg1-enrollment",
        properties: {
            serviceGroupId: "/providers/Microsoft.Management/serviceGroups/sg1",
        },
        resourceGroupName: "MyResourceGroup",
        usagePlanName: "myUsagePlan",
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    enrollment = azure_native.azureresiliencemanagement.Enrollment("enrollment",
        enrollment_name="sg1-enrollment",
        properties={
            "service_group_id": "/providers/Microsoft.Management/serviceGroups/sg1",
        },
        resource_group_name="MyResourceGroup",
        usage_plan_name="myUsagePlan")
    
    resources:
      enrollment:
        type: azure-native:azureresiliencemanagement:Enrollment
        properties:
          enrollmentName: sg1-enrollment
          properties:
            serviceGroupId: /providers/Microsoft.Management/serviceGroups/sg1
          resourceGroupName: MyResourceGroup
          usagePlanName: myUsagePlan
    

    Create Enrollment Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Enrollment(name: string, args: EnrollmentArgs, opts?: CustomResourceOptions);
    @overload
    def Enrollment(resource_name: str,
                   args: EnrollmentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Enrollment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   resource_group_name: Optional[str] = None,
                   usage_plan_name: Optional[str] = None,
                   enrollment_name: Optional[str] = None,
                   properties: Optional[EnrollmentPropertiesArgs] = None)
    func NewEnrollment(ctx *Context, name string, args EnrollmentArgs, opts ...ResourceOption) (*Enrollment, error)
    public Enrollment(string name, EnrollmentArgs args, CustomResourceOptions? opts = null)
    public Enrollment(String name, EnrollmentArgs args)
    public Enrollment(String name, EnrollmentArgs args, CustomResourceOptions options)
    
    type: azure-native:azureresiliencemanagement:Enrollment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "azure-native_azureresiliencemanagement_enrollment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var enrollmentResource = new AzureNative.AzureResilienceManagement.Enrollment("enrollmentResource", new()
    {
        ResourceGroupName = "string",
        UsagePlanName = "string",
        EnrollmentName = "string",
        Properties = new AzureNative.AzureResilienceManagement.Inputs.EnrollmentPropertiesArgs
        {
            ServiceGroupId = "string",
        },
    });
    
    example, err := azureresiliencemanagement.NewEnrollment(ctx, "enrollmentResource", &azureresiliencemanagement.EnrollmentArgs{
    	ResourceGroupName: pulumi.String("string"),
    	UsagePlanName:     pulumi.String("string"),
    	EnrollmentName:    pulumi.String("string"),
    	Properties: &azureresiliencemanagement.EnrollmentPropertiesArgs{
    		ServiceGroupId: pulumi.String("string"),
    	},
    })
    
    resource "azure-native_azureresiliencemanagement_enrollment" "enrollmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      resource_group_name = "string"
      usage_plan_name     = "string"
      enrollment_name     = "string"
      properties = {
        service_group_id = "string"
      }
    }
    
    var enrollmentResource = new Enrollment("enrollmentResource", EnrollmentArgs.builder()
        .resourceGroupName("string")
        .usagePlanName("string")
        .enrollmentName("string")
        .properties(EnrollmentPropertiesArgs.builder()
            .serviceGroupId("string")
            .build())
        .build());
    
    enrollment_resource = azure_native.azureresiliencemanagement.Enrollment("enrollmentResource",
        resource_group_name="string",
        usage_plan_name="string",
        enrollment_name="string",
        properties={
            "service_group_id": "string",
        })
    
    const enrollmentResource = new azure_native.azureresiliencemanagement.Enrollment("enrollmentResource", {
        resourceGroupName: "string",
        usagePlanName: "string",
        enrollmentName: "string",
        properties: {
            serviceGroupId: "string",
        },
    });
    
    type: azure-native:azureresiliencemanagement:Enrollment
    properties:
        enrollmentName: string
        properties:
            serviceGroupId: string
        resourceGroupName: string
        usagePlanName: string
    

    Enrollment Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Enrollment resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    UsagePlanName string
    The name of the usage plan.
    EnrollmentName string
    The name of the enrollment.
    Properties Pulumi.AzureNative.AzureResilienceManagement.Inputs.EnrollmentProperties
    The resource-specific properties for this resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    UsagePlanName string
    The name of the usage plan.
    EnrollmentName string
    The name of the enrollment.
    Properties EnrollmentPropertiesArgs
    The resource-specific properties for this resource.
    resource_group_name string
    The name of the resource group. The name is case insensitive.
    usage_plan_name string
    The name of the usage plan.
    enrollment_name string
    The name of the enrollment.
    properties object
    The resource-specific properties for this resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    usagePlanName String
    The name of the usage plan.
    enrollmentName String
    The name of the enrollment.
    properties EnrollmentProperties
    The resource-specific properties for this resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    usagePlanName string
    The name of the usage plan.
    enrollmentName string
    The name of the enrollment.
    properties EnrollmentProperties
    The resource-specific properties for this resource.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    usage_plan_name str
    The name of the usage plan.
    enrollment_name str
    The name of the enrollment.
    properties EnrollmentPropertiesArgs
    The resource-specific properties for this resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    usagePlanName String
    The name of the usage plan.
    enrollmentName String
    The name of the enrollment.
    properties Property Map
    The resource-specific properties for this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Enrollment resource produces the following output properties:

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.AzureResilienceManagement.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    system_data object
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    EnrollmentProperties, EnrollmentPropertiesArgs

    Definition of enrollment properties.
    ServiceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    ServiceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    service_group_id string
    ARM resource identifier of the service group associated with this usage plan.
    serviceGroupId String
    ARM resource identifier of the service group associated with this usage plan.
    serviceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    service_group_id str
    ARM resource identifier of the service group associated with this usage plan.
    serviceGroupId String
    ARM resource identifier of the service group associated with this usage plan.

    EnrollmentPropertiesResponse, EnrollmentPropertiesResponseArgs

    Definition of enrollment properties.
    ErrorDetails Pulumi.AzureNative.AzureResilienceManagement.Inputs.ErrorDetailResponse
    Details of any errors encountered during Enrollment create or update.
    ProvisioningState string
    Provisioning state of the enrollment.
    ServiceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    ErrorDetails ErrorDetailResponse
    Details of any errors encountered during Enrollment create or update.
    ProvisioningState string
    Provisioning state of the enrollment.
    ServiceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    error_details object
    Details of any errors encountered during Enrollment create or update.
    provisioning_state string
    Provisioning state of the enrollment.
    service_group_id string
    ARM resource identifier of the service group associated with this usage plan.
    errorDetails ErrorDetailResponse
    Details of any errors encountered during Enrollment create or update.
    provisioningState String
    Provisioning state of the enrollment.
    serviceGroupId String
    ARM resource identifier of the service group associated with this usage plan.
    errorDetails ErrorDetailResponse
    Details of any errors encountered during Enrollment create or update.
    provisioningState string
    Provisioning state of the enrollment.
    serviceGroupId string
    ARM resource identifier of the service group associated with this usage plan.
    error_details ErrorDetailResponse
    Details of any errors encountered during Enrollment create or update.
    provisioning_state str
    Provisioning state of the enrollment.
    service_group_id str
    ARM resource identifier of the service group associated with this usage plan.
    errorDetails Property Map
    Details of any errors encountered during Enrollment create or update.
    provisioningState String
    Provisioning state of the enrollment.
    serviceGroupId String
    ARM resource identifier of the service group associated with this usage plan.

    ErrorAdditionalInfoResponse, ErrorAdditionalInfoResponseArgs

    The resource management error additional info.
    Info object
    The additional info.
    Type string
    The additional info type.
    Info interface{}
    The additional info.
    Type string
    The additional info type.
    info any
    The additional info.
    type string
    The additional info type.
    info Object
    The additional info.
    type String
    The additional info type.
    info any
    The additional info.
    type string
    The additional info type.
    info Any
    The additional info.
    type str
    The additional info type.
    info Any
    The additional info.
    type String
    The additional info type.

    ErrorDetailResponse, ErrorDetailResponseArgs

    The error detail.
    AdditionalInfo []ErrorAdditionalInfoResponse
    The error additional info.
    Code string
    The error code.
    Details []ErrorDetailResponse
    The error details.
    Message string
    The error message.
    Target string
    The error target.
    additional_info list(object)
    The error additional info.
    code string
    The error code.
    details list(object)
    The error details.
    message string
    The error message.
    target string
    The error target.
    additionalInfo List<ErrorAdditionalInfoResponse>
    The error additional info.
    code String
    The error code.
    details List<ErrorDetailResponse>
    The error details.
    message String
    The error message.
    target String
    The error target.
    additionalInfo ErrorAdditionalInfoResponse[]
    The error additional info.
    code string
    The error code.
    details ErrorDetailResponse[]
    The error details.
    message string
    The error message.
    target string
    The error target.
    additional_info Sequence[ErrorAdditionalInfoResponse]
    The error additional info.
    code str
    The error code.
    details Sequence[ErrorDetailResponse]
    The error details.
    message str
    The error message.
    target str
    The error target.
    additionalInfo List<Property Map>
    The error additional info.
    code String
    The error code.
    details List<Property Map>
    The error details.
    message String
    The error message.
    target String
    The error target.

    SystemDataResponse, SystemDataResponseArgs

    Metadata pertaining to creation and last modification of the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    created_at string
    The timestamp of resource creation (UTC).
    created_by string
    The identity that created the resource.
    created_by_type string
    The type of identity that created the resource.
    last_modified_at string
    The timestamp of resource last modification (UTC)
    last_modified_by string
    The identity that last modified the resource.
    last_modified_by_type string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:azureresiliencemanagement:Enrollment sg1-enrollment /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureResilienceManagement/usagePlans/{usagePlanName}/enrollments/{enrollmentName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.23.0
    published on Saturday, Jul 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial