published on Saturday, Jul 18, 2026 by Pulumi
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Usage
Plan stringName - The name of the usage plan.
- Enrollment
Name string - The name of the enrollment.
- Properties
Pulumi.
Azure Native. Azure Resilience Management. Inputs. Enrollment Properties - The resource-specific properties for this resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Usage
Plan stringName - The name of the usage plan.
- Enrollment
Name string - The name of the enrollment.
- Properties
Enrollment
Properties Args - The resource-specific properties for this resource.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- usage_
plan_ stringname - The name of the usage plan.
- enrollment_
name string - The name of the enrollment.
- properties object
- The resource-specific properties for this resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- usage
Plan StringName - The name of the usage plan.
- enrollment
Name String - The name of the enrollment.
- properties
Enrollment
Properties - The resource-specific properties for this resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- usage
Plan stringName - The name of the usage plan.
- enrollment
Name string - The name of the enrollment.
- properties
Enrollment
Properties - The resource-specific properties for this resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- usage_
plan_ strname - The name of the usage plan.
- enrollment_
name str - The name of the enrollment.
- properties
Enrollment
Properties Args - The resource-specific properties for this resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- usage
Plan StringName - The name of the usage plan.
- enrollment
Name 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:
- Azure
Api stringVersion - 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 Pulumi.Azure Native. Azure Resilience Management. Outputs. System Data Response - 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 stringVersion - 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 SystemData Response - 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_ stringversion - 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"
- azure
Api StringVersion - 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 SystemData Response - 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 stringVersion - 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 SystemData Response - 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_ strversion - 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 SystemData Response - 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"
- azure
Api StringVersion - 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 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.- Service
Group stringId - ARM resource identifier of the service group associated with this usage plan.
- Service
Group stringId - ARM resource identifier of the service group associated with this usage plan.
- service_
group_ stringid - ARM resource identifier of the service group associated with this usage plan.
- service
Group StringId - ARM resource identifier of the service group associated with this usage plan.
- service
Group stringId - ARM resource identifier of the service group associated with this usage plan.
- service_
group_ strid - ARM resource identifier of the service group associated with this usage plan.
- service
Group StringId - ARM resource identifier of the service group associated with this usage plan.
EnrollmentPropertiesResponse, EnrollmentPropertiesResponseArgs
Definition of enrollment properties.- Error
Details Pulumi.Azure Native. Azure Resilience Management. Inputs. Error Detail Response - Details of any errors encountered during Enrollment create or update.
- Provisioning
State string - Provisioning state of the enrollment.
- Service
Group stringId - ARM resource identifier of the service group associated with this usage plan.
- Error
Details ErrorDetail Response - Details of any errors encountered during Enrollment create or update.
- Provisioning
State string - Provisioning state of the enrollment.
- Service
Group stringId - 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_ stringid - ARM resource identifier of the service group associated with this usage plan.
- error
Details ErrorDetail Response - Details of any errors encountered during Enrollment create or update.
- provisioning
State String - Provisioning state of the enrollment.
- service
Group StringId - ARM resource identifier of the service group associated with this usage plan.
- error
Details ErrorDetail Response - Details of any errors encountered during Enrollment create or update.
- provisioning
State string - Provisioning state of the enrollment.
- service
Group stringId - ARM resource identifier of the service group associated with this usage plan.
- error_
details ErrorDetail Response - Details of any errors encountered during Enrollment create or update.
- provisioning_
state str - Provisioning state of the enrollment.
- service_
group_ strid - ARM resource identifier of the service group associated with this usage plan.
- error
Details Property Map - Details of any errors encountered during Enrollment create or update.
- provisioning
State String - Provisioning state of the enrollment.
- service
Group StringId - ARM resource identifier of the service group associated with this usage plan.
ErrorAdditionalInfoResponse, ErrorAdditionalInfoResponseArgs
The resource management error additional info.ErrorDetailResponse, ErrorDetailResponseArgs
The error detail.- Additional
Info List<Pulumi.Azure Native. Azure Resilience Management. Inputs. Error Additional Info Response> - The error additional info.
- Code string
- The error code.
- Details
List<Pulumi.
Azure Native. Azure Resilience Management. Inputs. Error Detail Response> - The error details.
- Message string
- The error message.
- Target string
- The error target.
- Additional
Info []ErrorAdditional Info Response - The error additional info.
- Code string
- The error code.
- Details
[]Error
Detail Response - 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.
- additional
Info List<ErrorAdditional Info Response> - The error additional info.
- code String
- The error code.
- details
List<Error
Detail Response> - The error details.
- message String
- The error message.
- target String
- The error target.
- additional
Info ErrorAdditional Info Response[] - The error additional info.
- code string
- The error code.
- details
Error
Detail Response[] - The error details.
- message string
- The error message.
- target string
- The error target.
- additional_
info Sequence[ErrorAdditional Info Response] - The error additional info.
- code str
- The error code.
- details
Sequence[Error
Detail Response] - The error details.
- message str
- The error message.
- target str
- The error target.
- additional
Info 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.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - 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 stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - 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_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - 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 StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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 stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - 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 StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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
published on Saturday, Jul 18, 2026 by Pulumi