1. Packages
  2. Azure Native v1
  3. API Docs
  4. providerhub
  5. Skus
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.providerhub.Skus

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    API Version: 2020-11-20.

    Example Usage

    Skus_CreateOrUpdate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var skus = new AzureNative.ProviderHub.Skus("skus", new()
        {
            Properties = new AzureNative.ProviderHub.Inputs.SkuResourcePropertiesArgs
            {
                SkuSettings = new[]
                {
                    new AzureNative.ProviderHub.Inputs.SkuSettingArgs
                    {
                        Kind = "Standard",
                        Name = "freeSku",
                        Tier = "Tier1",
                    },
                    new AzureNative.ProviderHub.Inputs.SkuSettingArgs
                    {
                        Costs = new[]
                        {
                            new AzureNative.ProviderHub.Inputs.SkuCostArgs
                            {
                                MeterId = "xxx",
                            },
                        },
                        Kind = "Premium",
                        Name = "premiumSku",
                        Tier = "Tier2",
                    },
                },
            },
            ProviderNamespace = "Microsoft.Contoso",
            ResourceType = "testResourceType",
            Sku = "testSku",
        });
    
    });
    

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.providerhub.Skus;
    import com.pulumi.azurenative.providerhub.SkusArgs;
    import java.util.List;
    import java.util.ArrayList;
    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 skus = new Skus("skus", SkusArgs.builder()        
                .properties(Map.of("skuSettings",             
                    Map.ofEntries(
                        Map.entry("kind", "Standard"),
                        Map.entry("name", "freeSku"),
                        Map.entry("tier", "Tier1")
                    ),
                    Map.ofEntries(
                        Map.entry("costs", Map.of("meterId", "xxx")),
                        Map.entry("kind", "Premium"),
                        Map.entry("name", "premiumSku"),
                        Map.entry("tier", "Tier2")
                    )))
                .providerNamespace("Microsoft.Contoso")
                .resourceType("testResourceType")
                .sku("testSku")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    skus = azure_native.providerhub.Skus("skus",
        properties=azure_native.providerhub.SkuResourceResponsePropertiesArgs(
            sku_settings=[
                azure_native.providerhub.SkuSettingArgs(
                    kind="Standard",
                    name="freeSku",
                    tier="Tier1",
                ),
                {
                    "costs": [azure_native.providerhub.SkuCostArgs(
                        meter_id="xxx",
                    )],
                    "kind": "Premium",
                    "name": "premiumSku",
                    "tier": "Tier2",
                },
            ],
        ),
        provider_namespace="Microsoft.Contoso",
        resource_type="testResourceType",
        sku="testSku")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const skus = new azure_native.providerhub.Skus("skus", {
        properties: {
            skuSettings: [
                {
                    kind: "Standard",
                    name: "freeSku",
                    tier: "Tier1",
                },
                {
                    costs: [{
                        meterId: "xxx",
                    }],
                    kind: "Premium",
                    name: "premiumSku",
                    tier: "Tier2",
                },
            ],
        },
        providerNamespace: "Microsoft.Contoso",
        resourceType: "testResourceType",
        sku: "testSku",
    });
    
    resources:
      skus:
        type: azure-native:providerhub:Skus
        properties:
          properties:
            skuSettings:
              - kind: Standard
                name: freeSku
                tier: Tier1
              - costs:
                  - meterId: xxx
                kind: Premium
                name: premiumSku
                tier: Tier2
          providerNamespace: Microsoft.Contoso
          resourceType: testResourceType
          sku: testSku
    

    Create Skus Resource

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

    Constructor syntax

    new Skus(name: string, args: SkusArgs, opts?: CustomResourceOptions);
    @overload
    def Skus(resource_name: str,
             args: SkusArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Skus(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             provider_namespace: Optional[str] = None,
             resource_type: Optional[str] = None,
             properties: Optional[SkuResourcePropertiesArgs] = None,
             sku: Optional[str] = None)
    func NewSkus(ctx *Context, name string, args SkusArgs, opts ...ResourceOption) (*Skus, error)
    public Skus(string name, SkusArgs args, CustomResourceOptions? opts = null)
    public Skus(String name, SkusArgs args)
    public Skus(String name, SkusArgs args, CustomResourceOptions options)
    
    type: azure-native:providerhub:Skus
    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 SkusArgs
    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 SkusArgs
    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 SkusArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SkusArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SkusArgs
    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 skusResource = new AzureNative.Providerhub.Skus("skusResource", new()
    {
        ProviderNamespace = "string",
        ResourceType = "string",
        Properties = 
        {
            { "skuSettings", new[]
            {
                
                {
                    { "name", "string" },
                    { "capabilities", new[]
                    {
                        
                        {
                            { "name", "string" },
                            { "value", "string" },
                        },
                    } },
                    { "capacity", 
                    {
                        { "minimum", 0 },
                        { "default", 0 },
                        { "maximum", 0 },
                        { "scaleType", "string" },
                    } },
                    { "costs", new[]
                    {
                        
                        {
                            { "meterId", "string" },
                            { "extendedUnit", "string" },
                            { "quantity", 0 },
                        },
                    } },
                    { "family", "string" },
                    { "kind", "string" },
                    { "locationInfo", new[]
                    {
                        
                        {
                            { "location", "string" },
                            { "extendedLocations", new[]
                            {
                                "string",
                            } },
                            { "type", "string" },
                            { "zoneDetails", new[]
                            {
                                
                                {
                                    { "capabilities", new[]
                                    {
                                        
                                        {
                                            { "name", "string" },
                                            { "value", "string" },
                                        },
                                    } },
                                    { "name", new[]
                                    {
                                        "string",
                                    } },
                                },
                            } },
                            { "zones", new[]
                            {
                                "string",
                            } },
                        },
                    } },
                    { "locations", new[]
                    {
                        "string",
                    } },
                    { "requiredFeatures", new[]
                    {
                        "string",
                    } },
                    { "requiredQuotaIds", new[]
                    {
                        "string",
                    } },
                    { "size", "string" },
                    { "tier", "string" },
                },
            } },
            { "provisioningState", "string" },
        },
        Sku = "string",
    });
    
    example, err := providerhub.NewSkus(ctx, "skusResource", &providerhub.SkusArgs{
    	ProviderNamespace: "string",
    	ResourceType:      "string",
    	Properties: map[string]interface{}{
    		"skuSettings": []map[string]interface{}{
    			map[string]interface{}{
    				"name": "string",
    				"capabilities": []map[string]interface{}{
    					map[string]interface{}{
    						"name":  "string",
    						"value": "string",
    					},
    				},
    				"capacity": map[string]interface{}{
    					"minimum":   0,
    					"default":   0,
    					"maximum":   0,
    					"scaleType": "string",
    				},
    				"costs": []map[string]interface{}{
    					map[string]interface{}{
    						"meterId":      "string",
    						"extendedUnit": "string",
    						"quantity":     0,
    					},
    				},
    				"family": "string",
    				"kind":   "string",
    				"locationInfo": []map[string]interface{}{
    					map[string]interface{}{
    						"location": "string",
    						"extendedLocations": []string{
    							"string",
    						},
    						"type": "string",
    						"zoneDetails": []map[string]interface{}{
    							map[string]interface{}{
    								"capabilities": []map[string]interface{}{
    									map[string]interface{}{
    										"name":  "string",
    										"value": "string",
    									},
    								},
    								"name": []string{
    									"string",
    								},
    							},
    						},
    						"zones": []string{
    							"string",
    						},
    					},
    				},
    				"locations": []string{
    					"string",
    				},
    				"requiredFeatures": []string{
    					"string",
    				},
    				"requiredQuotaIds": []string{
    					"string",
    				},
    				"size": "string",
    				"tier": "string",
    			},
    		},
    		"provisioningState": "string",
    	},
    	Sku: "string",
    })
    
    var skusResource = new Skus("skusResource", SkusArgs.builder()
        .providerNamespace("string")
        .resourceType("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .sku("string")
        .build());
    
    skus_resource = azure_native.providerhub.Skus("skusResource",
        provider_namespace=string,
        resource_type=string,
        properties={
            skuSettings: [{
                name: string,
                capabilities: [{
                    name: string,
                    value: string,
                }],
                capacity: {
                    minimum: 0,
                    default: 0,
                    maximum: 0,
                    scaleType: string,
                },
                costs: [{
                    meterId: string,
                    extendedUnit: string,
                    quantity: 0,
                }],
                family: string,
                kind: string,
                locationInfo: [{
                    location: string,
                    extendedLocations: [string],
                    type: string,
                    zoneDetails: [{
                        capabilities: [{
                            name: string,
                            value: string,
                        }],
                        name: [string],
                    }],
                    zones: [string],
                }],
                locations: [string],
                requiredFeatures: [string],
                requiredQuotaIds: [string],
                size: string,
                tier: string,
            }],
            provisioningState: string,
        },
        sku=string)
    
    const skusResource = new azure_native.providerhub.Skus("skusResource", {
        providerNamespace: "string",
        resourceType: "string",
        properties: {
            skuSettings: [{
                name: "string",
                capabilities: [{
                    name: "string",
                    value: "string",
                }],
                capacity: {
                    minimum: 0,
                    "default": 0,
                    maximum: 0,
                    scaleType: "string",
                },
                costs: [{
                    meterId: "string",
                    extendedUnit: "string",
                    quantity: 0,
                }],
                family: "string",
                kind: "string",
                locationInfo: [{
                    location: "string",
                    extendedLocations: ["string"],
                    type: "string",
                    zoneDetails: [{
                        capabilities: [{
                            name: "string",
                            value: "string",
                        }],
                        name: ["string"],
                    }],
                    zones: ["string"],
                }],
                locations: ["string"],
                requiredFeatures: ["string"],
                requiredQuotaIds: ["string"],
                size: "string",
                tier: "string",
            }],
            provisioningState: "string",
        },
        sku: "string",
    });
    
    type: azure-native:providerhub:Skus
    properties:
        properties:
            provisioningState: string
            skuSettings:
                - capabilities:
                    - name: string
                      value: string
                  capacity:
                    default: 0
                    maximum: 0
                    minimum: 0
                    scaleType: string
                  costs:
                    - extendedUnit: string
                      meterId: string
                      quantity: 0
                  family: string
                  kind: string
                  locationInfo:
                    - extendedLocations:
                        - string
                      location: string
                      type: string
                      zoneDetails:
                        - capabilities:
                            - name: string
                              value: string
                          name:
                            - string
                      zones:
                        - string
                  locations:
                    - string
                  name: string
                  requiredFeatures:
                    - string
                  requiredQuotaIds:
                    - string
                  size: string
                  tier: string
        providerNamespace: string
        resourceType: string
        sku: string
    

    Skus Resource Properties

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

    Inputs

    The Skus resource accepts the following input properties:

    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    ResourceType string
    The resource type.
    Properties Pulumi.AzureNative.ProviderHub.Inputs.SkuResourceProperties
    Sku string
    The SKU.
    ProviderNamespace string
    The name of the resource provider hosted within ProviderHub.
    ResourceType string
    The resource type.
    Properties SkuResourcePropertiesArgs
    Sku string
    The SKU.
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    resourceType String
    The resource type.
    properties SkuResourceProperties
    sku String
    The SKU.
    providerNamespace string
    The name of the resource provider hosted within ProviderHub.
    resourceType string
    The resource type.
    properties SkuResourceProperties
    sku string
    The SKU.
    provider_namespace str
    The name of the resource provider hosted within ProviderHub.
    resource_type str
    The resource type.
    properties SkuResourcePropertiesArgs
    sku str
    The SKU.
    providerNamespace String
    The name of the resource provider hosted within ProviderHub.
    resourceType String
    The resource type.
    properties Property Map
    sku String
    The SKU.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    ExtendedLocationType, ExtendedLocationTypeArgs

    NotSpecified
    NotSpecified
    EdgeZone
    EdgeZone
    ArcZone
    ArcZone
    ExtendedLocationTypeNotSpecified
    NotSpecified
    ExtendedLocationTypeEdgeZone
    EdgeZone
    ExtendedLocationTypeArcZone
    ArcZone
    NotSpecified
    NotSpecified
    EdgeZone
    EdgeZone
    ArcZone
    ArcZone
    NotSpecified
    NotSpecified
    EdgeZone
    EdgeZone
    ArcZone
    ArcZone
    NOT_SPECIFIED
    NotSpecified
    EDGE_ZONE
    EdgeZone
    ARC_ZONE
    ArcZone
    "NotSpecified"
    NotSpecified
    "EdgeZone"
    EdgeZone
    "ArcZone"
    ArcZone

    ProvisioningState, ProvisioningStateArgs

    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    ProvisioningStateNotSpecified
    NotSpecified
    ProvisioningStateAccepted
    Accepted
    ProvisioningStateRunning
    Running
    ProvisioningStateCreating
    Creating
    ProvisioningStateCreated
    Created
    ProvisioningStateDeleting
    Deleting
    ProvisioningStateDeleted
    Deleted
    ProvisioningStateCanceled
    Canceled
    ProvisioningStateFailed
    Failed
    ProvisioningStateSucceeded
    Succeeded
    ProvisioningStateMovingResources
    MovingResources
    ProvisioningStateTransientFailure
    TransientFailure
    ProvisioningStateRolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NotSpecified
    NotSpecified
    Accepted
    Accepted
    Running
    Running
    Creating
    Creating
    Created
    Created
    Deleting
    Deleting
    Deleted
    Deleted
    Canceled
    Canceled
    Failed
    Failed
    Succeeded
    Succeeded
    MovingResources
    MovingResources
    TransientFailure
    TransientFailure
    RolloutInProgress
    RolloutInProgress
    NOT_SPECIFIED
    NotSpecified
    ACCEPTED
    Accepted
    RUNNING
    Running
    CREATING
    Creating
    CREATED
    Created
    DELETING
    Deleting
    DELETED
    Deleted
    CANCELED
    Canceled
    FAILED
    Failed
    SUCCEEDED
    Succeeded
    MOVING_RESOURCES
    MovingResources
    TRANSIENT_FAILURE
    TransientFailure
    ROLLOUT_IN_PROGRESS
    RolloutInProgress
    "NotSpecified"
    NotSpecified
    "Accepted"
    Accepted
    "Running"
    Running
    "Creating"
    Creating
    "Created"
    Created
    "Deleting"
    Deleting
    "Deleted"
    Deleted
    "Canceled"
    Canceled
    "Failed"
    Failed
    "Succeeded"
    Succeeded
    "MovingResources"
    MovingResources
    "TransientFailure"
    TransientFailure
    "RolloutInProgress"
    RolloutInProgress

    SkuCapability, SkuCapabilityArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    SkuCapabilityResponse, SkuCapabilityResponseArgs

    Name string
    Value string
    Name string
    Value string
    name String
    value String
    name string
    value string
    name str
    value str
    name String
    value String

    SkuCost, SkuCostArgs

    MeterId string
    ExtendedUnit string
    Quantity int
    MeterId string
    ExtendedUnit string
    Quantity int
    meterId String
    extendedUnit String
    quantity Integer
    meterId string
    extendedUnit string
    quantity number
    meterId String
    extendedUnit String
    quantity Number

    SkuCostResponse, SkuCostResponseArgs

    MeterId string
    ExtendedUnit string
    Quantity int
    MeterId string
    ExtendedUnit string
    Quantity int
    meterId String
    extendedUnit String
    quantity Integer
    meterId string
    extendedUnit string
    quantity number
    meterId String
    extendedUnit String
    quantity Number

    SkuLocationInfo, SkuLocationInfoArgs

    SkuLocationInfoResponse, SkuLocationInfoResponseArgs

    SkuResourceProperties, SkuResourcePropertiesArgs

    SkuResourceResponseProperties, SkuResourceResponsePropertiesArgs

    SkuScaleType, SkuScaleTypeArgs

    None
    None
    Manual
    Manual
    Automatic
    Automatic
    SkuScaleTypeNone
    None
    SkuScaleTypeManual
    Manual
    SkuScaleTypeAutomatic
    Automatic
    None
    None
    Manual
    Manual
    Automatic
    Automatic
    None
    None
    Manual
    Manual
    Automatic
    Automatic
    NONE
    None
    MANUAL
    Manual
    AUTOMATIC
    Automatic
    "None"
    None
    "Manual"
    Manual
    "Automatic"
    Automatic

    SkuSetting, SkuSettingArgs

    SkuSettingCapacity, SkuSettingCapacityArgs

    minimum Integer
    default_ Integer
    maximum Integer
    scaleType String | SkuScaleType
    minimum number
    default number
    maximum number
    scaleType string | SkuScaleType

    SkuSettingResponse, SkuSettingResponseArgs

    SkuSettingResponseCapacity, SkuSettingResponseCapacityArgs

    minimum Integer
    default_ Integer
    maximum Integer
    scaleType String
    minimum number
    default number
    maximum number
    scaleType string
    minimum Number
    default Number
    maximum Number
    scaleType String

    SkuZoneDetail, SkuZoneDetailArgs

    SkuZoneDetailResponse, SkuZoneDetailResponseArgs

    Import

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

    $ pulumi import azure-native:providerhub:Skus Microsoft.Contoso/ /subscriptions/ab7a8701-f7ef-471a-a2f4-d0ebbf494f77providers/Microsoft.ProviderHub/providerRegistrations/Microsoft.Contoso/ 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi