CustomerSubscriptionArgs

data class CustomerSubscriptionArgs(val customerSubscriptionName: Output<String>? = null, val registrationName: Output<String>? = null, val resourceGroup: Output<String>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<CustomerSubscriptionArgs>

Customer subscription. Uses Azure REST API version 2022-06-01. In version 2.x of the Azure Native provider, it used API version 2022-06-01. Other available API versions: 2020-06-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurestack [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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 (
azurestack "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

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}

Constructors

Link copied to clipboard
constructor(customerSubscriptionName: Output<String>? = null, registrationName: Output<String>? = null, resourceGroup: Output<String>? = null, tenantId: Output<String>? = null)

Properties

Link copied to clipboard
val customerSubscriptionName: Output<String>? = null

Name of the product.

Link copied to clipboard
val registrationName: Output<String>? = null

Name of the Azure Stack registration.

Link copied to clipboard
val resourceGroup: Output<String>? = null

Name of the resource group.

Link copied to clipboard
val tenantId: Output<String>? = null

Tenant Id.

Functions

Link copied to clipboard
open override fun toJava(): CustomerSubscriptionArgs