1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. securitycenter
  6. SubscriptionPricing

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages the Pricing Tier for Azure Security Center in the current subscription.

    NOTE: Deletion of this resource does not change or reset the pricing tier to Free

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var example = new Azure.SecurityCenter.SubscriptionPricing("example", new Azure.SecurityCenter.SubscriptionPricingArgs
            {
                ResourceType = "VirtualMachines",
                Tier = "Standard",
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/securitycenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securitycenter.NewSubscriptionPricing(ctx, "example", &securitycenter.SubscriptionPricingArgs{
    			ResourceType: pulumi.String("VirtualMachines"),
    			Tier:         pulumi.String("Standard"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.securitycenter.SubscriptionPricing("example", {
        resourceType: "VirtualMachines",
        tier: "Standard",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.securitycenter.SubscriptionPricing("example",
        resource_type="VirtualMachines",
        tier="Standard")
    

    Example coming soon!

    Create SubscriptionPricing Resource

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

    Constructor syntax

    new SubscriptionPricing(name: string, args: SubscriptionPricingArgs, opts?: CustomResourceOptions);
    @overload
    def SubscriptionPricing(resource_name: str,
                            args: SubscriptionPricingArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SubscriptionPricing(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            tier: Optional[str] = None,
                            resource_type: Optional[str] = None)
    func NewSubscriptionPricing(ctx *Context, name string, args SubscriptionPricingArgs, opts ...ResourceOption) (*SubscriptionPricing, error)
    public SubscriptionPricing(string name, SubscriptionPricingArgs args, CustomResourceOptions? opts = null)
    public SubscriptionPricing(String name, SubscriptionPricingArgs args)
    public SubscriptionPricing(String name, SubscriptionPricingArgs args, CustomResourceOptions options)
    
    type: azure:securitycenter:SubscriptionPricing
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SubscriptionPricingArgs
    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 SubscriptionPricingArgs
    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 SubscriptionPricingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SubscriptionPricingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SubscriptionPricingArgs
    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 subscriptionPricingResource = new Azure.SecurityCenter.SubscriptionPricing("subscriptionPricingResource", new()
    {
        Tier = "string",
        ResourceType = "string",
    });
    
    example, err := securitycenter.NewSubscriptionPricing(ctx, "subscriptionPricingResource", &securitycenter.SubscriptionPricingArgs{
    	Tier:         pulumi.String("string"),
    	ResourceType: pulumi.String("string"),
    })
    
    var subscriptionPricingResource = new SubscriptionPricing("subscriptionPricingResource", SubscriptionPricingArgs.builder()
        .tier("string")
        .resourceType("string")
        .build());
    
    subscription_pricing_resource = azure.securitycenter.SubscriptionPricing("subscriptionPricingResource",
        tier="string",
        resource_type="string")
    
    const subscriptionPricingResource = new azure.securitycenter.SubscriptionPricing("subscriptionPricingResource", {
        tier: "string",
        resourceType: "string",
    });
    
    type: azure:securitycenter:SubscriptionPricing
    properties:
        resourceType: string
        tier: string
    

    SubscriptionPricing 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 SubscriptionPricing resource accepts the following input properties:

    Tier string
    The pricing tier to use. Possible values are Free and Standard.
    ResourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    Tier string
    The pricing tier to use. Possible values are Free and Standard.
    ResourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier String
    The pricing tier to use. Possible values are Free and Standard.
    resourceType String
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier string
    The pricing tier to use. Possible values are Free and Standard.
    resourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier str
    The pricing tier to use. Possible values are Free and Standard.
    resource_type str
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier String
    The pricing tier to use. Possible values are Free and Standard.
    resourceType String
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SubscriptionPricing Resource

    Get an existing SubscriptionPricing resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SubscriptionPricingState, opts?: CustomResourceOptions): SubscriptionPricing
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            resource_type: Optional[str] = None,
            tier: Optional[str] = None) -> SubscriptionPricing
    func GetSubscriptionPricing(ctx *Context, name string, id IDInput, state *SubscriptionPricingState, opts ...ResourceOption) (*SubscriptionPricing, error)
    public static SubscriptionPricing Get(string name, Input<string> id, SubscriptionPricingState? state, CustomResourceOptions? opts = null)
    public static SubscriptionPricing get(String name, Output<String> id, SubscriptionPricingState state, CustomResourceOptions options)
    resources:  _:    type: azure:securitycenter:SubscriptionPricing    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ResourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    Tier string
    The pricing tier to use. Possible values are Free and Standard.
    ResourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    Tier string
    The pricing tier to use. Possible values are Free and Standard.
    resourceType String
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier String
    The pricing tier to use. Possible values are Free and Standard.
    resourceType string
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier string
    The pricing tier to use. Possible values are Free and Standard.
    resource_type str
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier str
    The pricing tier to use. Possible values are Free and Standard.
    resourceType String
    The resource type this setting affects. Possible values are AppServices, ContainerRegistry, KeyVaults, KubernetesService, SqlServers, SqlServerVirtualMachines, StorageAccounts, VirtualMachines, Arm, OpenSourceRelationalDatabases, Containers and Dns. Defaults to VirtualMachines.
    tier String
    The pricing tier to use. Possible values are Free and Standard.

    Import

    The pricing tier can be imported using the resource id, e.g.

     $ pulumi import azure:securitycenter/subscriptionPricing:SubscriptionPricing example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/pricings/<resource_type>
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial