1. Packages
  2. Azure Native
  3. API Docs
  4. azurestack
  5. CustomerSubscription
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

azure-native.azurestack.CustomerSubscription

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi

    Customer subscription. Azure REST API version: 2022-06-01. Prior API version in Azure Native 1.x: 2017-06-01.

    Other available API versions: 2020-06-01-preview.

    Example Usage

    Creates a new customer subscription under a registration.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var customerSubscription = new AzureNative.AzureStack.CustomerSubscription("customerSubscription", new()
        {
            CustomerSubscriptionName = "E09A4E93-29A7-4EBA-A6D4-76202383F07F",
            RegistrationName = "testregistration",
            ResourceGroup = "azurestack",
            TenantId = "dbab3982-796f-4d03-9908-044c08aef8a2",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure-native-sdk/azurestack/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azurestack.NewCustomerSubscription(ctx, "customerSubscription", &azurestack.CustomerSubscriptionArgs{
    			CustomerSubscriptionName: pulumi.String("E09A4E93-29A7-4EBA-A6D4-76202383F07F"),
    			RegistrationName:         pulumi.String("testregistration"),
    			ResourceGroup:            pulumi.String("azurestack"),
    			TenantId:                 pulumi.String("dbab3982-796f-4d03-9908-044c08aef8a2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.azurestack.CustomerSubscription;
    import com.pulumi.azurenative.azurestack.CustomerSubscriptionArgs;
    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 customerSubscription = new CustomerSubscription("customerSubscription", CustomerSubscriptionArgs.builder()        
                .customerSubscriptionName("E09A4E93-29A7-4EBA-A6D4-76202383F07F")
                .registrationName("testregistration")
                .resourceGroup("azurestack")
                .tenantId("dbab3982-796f-4d03-9908-044c08aef8a2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    customer_subscription = azure_native.azurestack.CustomerSubscription("customerSubscription",
        customer_subscription_name="E09A4E93-29A7-4EBA-A6D4-76202383F07F",
        registration_name="testregistration",
        resource_group="azurestack",
        tenant_id="dbab3982-796f-4d03-9908-044c08aef8a2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const customerSubscription = new azure_native.azurestack.CustomerSubscription("customerSubscription", {
        customerSubscriptionName: "E09A4E93-29A7-4EBA-A6D4-76202383F07F",
        registrationName: "testregistration",
        resourceGroup: "azurestack",
        tenantId: "dbab3982-796f-4d03-9908-044c08aef8a2",
    });
    
    resources:
      customerSubscription:
        type: azure-native:azurestack:CustomerSubscription
        properties:
          customerSubscriptionName: E09A4E93-29A7-4EBA-A6D4-76202383F07F
          registrationName: testregistration
          resourceGroup: azurestack
          tenantId: dbab3982-796f-4d03-9908-044c08aef8a2
    

    Create CustomerSubscription Resource

    new CustomerSubscription(name: string, args: CustomerSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def CustomerSubscription(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             customer_subscription_name: Optional[str] = None,
                             registration_name: Optional[str] = None,
                             resource_group: Optional[str] = None,
                             tenant_id: Optional[str] = None)
    @overload
    def CustomerSubscription(resource_name: str,
                             args: CustomerSubscriptionArgs,
                             opts: Optional[ResourceOptions] = None)
    func NewCustomerSubscription(ctx *Context, name string, args CustomerSubscriptionArgs, opts ...ResourceOption) (*CustomerSubscription, error)
    public CustomerSubscription(string name, CustomerSubscriptionArgs args, CustomResourceOptions? opts = null)
    public CustomerSubscription(String name, CustomerSubscriptionArgs args)
    public CustomerSubscription(String name, CustomerSubscriptionArgs args, CustomResourceOptions options)
    
    type: azure-native:azurestack:CustomerSubscription
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args CustomerSubscriptionArgs
    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 CustomerSubscriptionArgs
    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 CustomerSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomerSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomerSubscriptionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    RegistrationName string
    Name of the Azure Stack registration.
    ResourceGroup string
    Name of the resource group.
    CustomerSubscriptionName string
    Name of the product.
    TenantId string
    Tenant Id.
    RegistrationName string
    Name of the Azure Stack registration.
    ResourceGroup string
    Name of the resource group.
    CustomerSubscriptionName string
    Name of the product.
    TenantId string
    Tenant Id.
    registrationName String
    Name of the Azure Stack registration.
    resourceGroup String
    Name of the resource group.
    customerSubscriptionName String
    Name of the product.
    tenantId String
    Tenant Id.
    registrationName string
    Name of the Azure Stack registration.
    resourceGroup string
    Name of the resource group.
    customerSubscriptionName string
    Name of the product.
    tenantId string
    Tenant Id.
    registration_name str
    Name of the Azure Stack registration.
    resource_group str
    Name of the resource group.
    customer_subscription_name str
    Name of the product.
    tenant_id str
    Tenant Id.
    registrationName String
    Name of the Azure Stack registration.
    resourceGroup String
    Name of the resource group.
    customerSubscriptionName String
    Name of the product.
    tenantId String
    Tenant Id.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the resource.
    Type string
    Type of Resource.
    Etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the resource.
    Type string
    Type of Resource.
    Etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the resource.
    type String
    Type of Resource.
    etag String
    The entity tag used for optimistic concurrency when modifying the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the resource.
    type string
    Type of Resource.
    etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the resource.
    type str
    Type of Resource.
    etag str
    The entity tag used for optimistic concurrency when modifying the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the resource.
    type String
    Type of Resource.
    etag String
    The entity tag used for optimistic concurrency when modifying the resource.

    Import

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

    $ pulumi import azure-native:azurestack:CustomerSubscription myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/registrations/{registrationName}/customerSubscriptions/{customerSubscriptionName} 
    

    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 v1 docs if using the v1 version of this package.
    Azure Native v2.34.0 published on Thursday, Mar 28, 2024 by Pulumi