azure-native.azurestack.CustomerSubscription

Explore with Pulumi AI

Customer subscription. API Version: 2017-06-01.

Example Usage

Creates a new customer subscription under a registration.

using System.Collections.Generic;
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 (
	azurestack "github.com/pulumi/pulumi-azure-native/sdk/go/azure/azurestack"
	"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