azure-native.azurestack.CustomerSubscription
Explore with Pulumi AI
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 for details.
Create CustomerSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomerSubscription(name: string, args: CustomerSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def CustomerSubscription(resource_name: str,
args: CustomerSubscriptionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CustomerSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
registration_name: Optional[str] = None,
resource_group: Optional[str] = None,
customer_subscription_name: Optional[str] = None,
tenant_id: Optional[str] = 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.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CustomerSubscriptionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. 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
This property is required. string - The unique name of the resource.
- args
This property is required. CustomerSubscriptionArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. CustomerSubscriptionArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. CustomerSubscriptionArgs - 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 customerSubscriptionResource = new AzureNative.AzureStack.CustomerSubscription("customerSubscriptionResource", new()
{
RegistrationName = "string",
ResourceGroup = "string",
CustomerSubscriptionName = "string",
TenantId = "string",
});
example, err := azurestack.NewCustomerSubscription(ctx, "customerSubscriptionResource", &azurestack.CustomerSubscriptionArgs{
RegistrationName: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
CustomerSubscriptionName: pulumi.String("string"),
TenantId: pulumi.String("string"),
})
var customerSubscriptionResource = new CustomerSubscription("customerSubscriptionResource", CustomerSubscriptionArgs.builder()
.registrationName("string")
.resourceGroup("string")
.customerSubscriptionName("string")
.tenantId("string")
.build());
customer_subscription_resource = azure_native.azurestack.CustomerSubscription("customerSubscriptionResource",
registration_name="string",
resource_group="string",
customer_subscription_name="string",
tenant_id="string")
const customerSubscriptionResource = new azure_native.azurestack.CustomerSubscription("customerSubscriptionResource", {
registrationName: "string",
resourceGroup: "string",
customerSubscriptionName: "string",
tenantId: "string",
});
type: azure-native:azurestack:CustomerSubscription
properties:
customerSubscriptionName: string
registrationName: string
resourceGroup: string
tenantId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomerSubscription resource accepts the following input properties:
- Registration
Name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- Resource
Group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- Customer
Subscription Name Changes to this property will trigger replacement.
- Name of the product.
- Tenant
Id string - Tenant Id.
- Registration
Name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- Resource
Group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- Customer
Subscription Name Changes to this property will trigger replacement.
- Name of the product.
- Tenant
Id string - Tenant Id.
- registration
Name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- resource
Group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- customer
Subscription Name Changes to this property will trigger replacement.
- Name of the product.
- tenant
Id String - Tenant Id.
- registration
Name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- resource
Group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- customer
Subscription Name Changes to this property will trigger replacement.
- Name of the product.
- tenant
Id string - Tenant Id.
- registration_
name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- resource_
group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- customer_
subscription_ name Changes to this property will trigger replacement.
- Name of the product.
- tenant_
id str - Tenant Id.
- registration
Name This property is required. Changes to this property will trigger replacement.
- Name of the Azure Stack registration.
- resource
Group This property is required. Changes to this property will trigger replacement.
- Name of the resource group.
- customer
Subscription Name Changes to this property will trigger replacement.
- Name of the product.
- tenant
Id String - Tenant Id.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomerSubscription resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of 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.
- Azure
Api stringVersion - The Azure API version of 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.
- azure
Api StringVersion - The Azure API version of 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.
- azure
Api stringVersion - The Azure API version of 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.
- azure_
api_ strversion - The Azure API version of 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.
- azure
Api StringVersion - The Azure API version of 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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0