published on Saturday, Jul 18, 2026 by Pulumi
published on Saturday, Jul 18, 2026 by Pulumi
A usage plan resource for Resiliency feature billing.
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
UsagePlans_CreateOrUpdate_MaximumSet
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var usagePlan = new AzureNative.AzureResilienceManagement.UsagePlan("usagePlan", new()
{
Location = "global",
Properties = new AzureNative.AzureResilienceManagement.Inputs.UsagePlanPropertiesArgs
{
PlanType = AzureNative.AzureResilienceManagement.UsagePlanType.Standard,
},
ResourceGroupName = "MyResourceGroup",
Tags =
{
{ "environment", "production" },
},
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.NewUsagePlan(ctx, "usagePlan", &azureresiliencemanagement.UsagePlanArgs{
Location: pulumi.String("global"),
Properties: &azureresiliencemanagement.UsagePlanPropertiesArgs{
PlanType: pulumi.String(azureresiliencemanagement.UsagePlanTypeStandard),
},
ResourceGroupName: pulumi.String("MyResourceGroup"),
Tags: pulumi.StringMap{
"environment": pulumi.String("production"),
},
UsagePlanName: pulumi.String("myUsagePlan"),
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_azureresiliencemanagement_usageplan" "usagePlan" {
location = "global"
properties = {
plan_type = "Standard"
}
resource_group_name = "MyResourceGroup"
tags = {
"environment" = "production"
}
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.UsagePlan;
import com.pulumi.azurenative.azureresiliencemanagement.UsagePlanArgs;
import com.pulumi.azurenative.azureresiliencemanagement.inputs.UsagePlanPropertiesArgs;
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 usagePlan = new UsagePlan("usagePlan", UsagePlanArgs.builder()
.location("global")
.properties(UsagePlanPropertiesArgs.builder()
.planType("Standard")
.build())
.resourceGroupName("MyResourceGroup")
.tags(Map.of("environment", "production"))
.usagePlanName("myUsagePlan")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const usagePlan = new azure_native.azureresiliencemanagement.UsagePlan("usagePlan", {
location: "global",
properties: {
planType: azure_native.azureresiliencemanagement.UsagePlanType.Standard,
},
resourceGroupName: "MyResourceGroup",
tags: {
environment: "production",
},
usagePlanName: "myUsagePlan",
});
import pulumi
import pulumi_azure_native as azure_native
usage_plan = azure_native.azureresiliencemanagement.UsagePlan("usagePlan",
location="global",
properties={
"plan_type": azure_native.azureresiliencemanagement.UsagePlanType.STANDARD,
},
resource_group_name="MyResourceGroup",
tags={
"environment": "production",
},
usage_plan_name="myUsagePlan")
resources:
usagePlan:
type: azure-native:azureresiliencemanagement:UsagePlan
properties:
location: global
properties:
planType: Standard
resourceGroupName: MyResourceGroup
tags:
environment: production
usagePlanName: myUsagePlan
Create UsagePlan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UsagePlan(name: string, args: UsagePlanArgs, opts?: CustomResourceOptions);@overload
def UsagePlan(resource_name: str,
args: UsagePlanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UsagePlan(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[UsagePlanPropertiesArgs] = None,
tags: Optional[Mapping[str, str]] = None,
usage_plan_name: Optional[str] = None)func NewUsagePlan(ctx *Context, name string, args UsagePlanArgs, opts ...ResourceOption) (*UsagePlan, error)public UsagePlan(string name, UsagePlanArgs args, CustomResourceOptions? opts = null)
public UsagePlan(String name, UsagePlanArgs args)
public UsagePlan(String name, UsagePlanArgs args, CustomResourceOptions options)
type: azure-native:azureresiliencemanagement:UsagePlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_azureresiliencemanagement_usage_plan" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args UsagePlanArgs
- 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 UsagePlanArgs
- 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 UsagePlanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UsagePlanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UsagePlanArgs
- 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 usagePlanResource = new AzureNative.AzureResilienceManagement.UsagePlan("usagePlanResource", new()
{
ResourceGroupName = "string",
Location = "string",
Properties = new AzureNative.AzureResilienceManagement.Inputs.UsagePlanPropertiesArgs
{
PlanType = "string",
},
Tags =
{
{ "string", "string" },
},
UsagePlanName = "string",
});
example, err := azureresiliencemanagement.NewUsagePlan(ctx, "usagePlanResource", &azureresiliencemanagement.UsagePlanArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Properties: &azureresiliencemanagement.UsagePlanPropertiesArgs{
PlanType: pulumi.String("string"),
},
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
UsagePlanName: pulumi.String("string"),
})
resource "azure-native_azureresiliencemanagement_usage_plan" "usagePlanResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
location = "string"
properties = {
plan_type = "string"
}
tags = {
"string" = "string"
}
usage_plan_name = "string"
}
var usagePlanResource = new UsagePlan("usagePlanResource", UsagePlanArgs.builder()
.resourceGroupName("string")
.location("string")
.properties(UsagePlanPropertiesArgs.builder()
.planType("string")
.build())
.tags(Map.of("string", "string"))
.usagePlanName("string")
.build());
usage_plan_resource = azure_native.azureresiliencemanagement.UsagePlan("usagePlanResource",
resource_group_name="string",
location="string",
properties={
"plan_type": "string",
},
tags={
"string": "string",
},
usage_plan_name="string")
const usagePlanResource = new azure_native.azureresiliencemanagement.UsagePlan("usagePlanResource", {
resourceGroupName: "string",
location: "string",
properties: {
planType: "string",
},
tags: {
string: "string",
},
usagePlanName: "string",
});
type: azure-native:azureresiliencemanagement:UsagePlan
properties:
location: string
properties:
planType: string
resourceGroupName: string
tags:
string: string
usagePlanName: string
UsagePlan 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 UsagePlan resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Pulumi.
Azure Native. Azure Resilience Management. Inputs. Usage Plan Properties - The resource-specific properties for this resource.
- Dictionary<string, string>
- Resource tags.
- Usage
Plan stringName - The name of the usage plan.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Usage
Plan Properties Args - The resource-specific properties for this resource.
- map[string]string
- Resource tags.
- Usage
Plan stringName - The name of the usage plan.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- properties object
- The resource-specific properties for this resource.
- map(string)
- Resource tags.
- usage_
plan_ stringname - The name of the usage plan.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties
Usage
Plan Properties - The resource-specific properties for this resource.
- Map<String,String>
- Resource tags.
- usage
Plan StringName - The name of the usage plan.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- properties
Usage
Plan Properties - The resource-specific properties for this resource.
- {[key: string]: string}
- Resource tags.
- usage
Plan stringName - The name of the usage plan.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- properties
Usage
Plan Properties Args - The resource-specific properties for this resource.
- Mapping[str, str]
- Resource tags.
- usage_
plan_ strname - The name of the usage plan.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties Property Map
- The resource-specific properties for this resource.
- Map<String>
- Resource tags.
- usage
Plan StringName - The name of the usage plan.
Outputs
All input properties are implicitly available as output properties. Additionally, the UsagePlan 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
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.
UsagePlanProperties, UsagePlanPropertiesArgs
Definition of usage plan properties.- Plan
Type string | Pulumi.Azure Native. Azure Resilience Management. Usage Plan Type - The type of the usage plan.
- Plan
Type string | UsagePlan Type - The type of the usage plan.
- plan_
type string | "Basic" | "Standard" - The type of the usage plan.
- plan
Type String | UsagePlan Type - The type of the usage plan.
- plan
Type string | UsagePlan Type - The type of the usage plan.
- plan_
type str | UsagePlan Type - The type of the usage plan.
- plan
Type String | "Basic" | "Standard" - The type of the usage plan.
UsagePlanPropertiesResponse, UsagePlanPropertiesResponseArgs
Definition of usage plan properties.- Error
Details Pulumi.Azure Native. Azure Resilience Management. Inputs. Error Detail Response - Details of any errors encountered during Usage Plan create or update.
- Provisioning
State string - Provisioning state of the usage plan.
- Plan
Type string - The type of the usage plan.
- Error
Details ErrorDetail Response - Details of any errors encountered during Usage Plan create or update.
- Provisioning
State string - Provisioning state of the usage plan.
- Plan
Type string - The type of the usage plan.
- error_
details object - Details of any errors encountered during Usage Plan create or update.
- provisioning_
state string - Provisioning state of the usage plan.
- plan_
type string - The type of the usage plan.
- error
Details ErrorDetail Response - Details of any errors encountered during Usage Plan create or update.
- provisioning
State String - Provisioning state of the usage plan.
- plan
Type String - The type of the usage plan.
- error
Details ErrorDetail Response - Details of any errors encountered during Usage Plan create or update.
- provisioning
State string - Provisioning state of the usage plan.
- plan
Type string - The type of the usage plan.
- error_
details ErrorDetail Response - Details of any errors encountered during Usage Plan create or update.
- provisioning_
state str - Provisioning state of the usage plan.
- plan_
type str - The type of the usage plan.
- error
Details Property Map - Details of any errors encountered during Usage Plan create or update.
- provisioning
State String - Provisioning state of the usage plan.
- plan
Type String - The type of the usage plan.
UsagePlanType, UsagePlanTypeArgs
- Basic
BasicBasic usage plan with restricted functionality without any charges.- Standard
StandardStandard usage plan with comprehensive functionality and usage based charges.
- Usage
Plan Type Basic BasicBasic usage plan with restricted functionality without any charges.- Usage
Plan Type Standard StandardStandard usage plan with comprehensive functionality and usage based charges.
- "Basic"
BasicBasic usage plan with restricted functionality without any charges.- "Standard"
StandardStandard usage plan with comprehensive functionality and usage based charges.
- Basic
BasicBasic usage plan with restricted functionality without any charges.- Standard
StandardStandard usage plan with comprehensive functionality and usage based charges.
- Basic
BasicBasic usage plan with restricted functionality without any charges.- Standard
StandardStandard usage plan with comprehensive functionality and usage based charges.
- BASIC
BasicBasic usage plan with restricted functionality without any charges.- STANDARD
StandardStandard usage plan with comprehensive functionality and usage based charges.
- "Basic"
BasicBasic usage plan with restricted functionality without any charges.- "Standard"
StandardStandard usage plan with comprehensive functionality and usage based charges.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:azureresiliencemanagement:UsagePlan myUsagePlan /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureResilienceManagement/usagePlans/{usagePlanName}
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