1. Packages
  2. Azure Native
  3. API Docs
  4. azurestack
  5. getCustomerSubscription
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.azurestack.getCustomerSubscription

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

Returns the specified product.

Uses Azure REST 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.

Using getCustomerSubscription

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getCustomerSubscription(args: GetCustomerSubscriptionArgs, opts?: InvokeOptions): Promise<GetCustomerSubscriptionResult>
function getCustomerSubscriptionOutput(args: GetCustomerSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetCustomerSubscriptionResult>
Copy
def get_customer_subscription(customer_subscription_name: Optional[str] = None,
                              registration_name: Optional[str] = None,
                              resource_group: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCustomerSubscriptionResult
def get_customer_subscription_output(customer_subscription_name: Optional[pulumi.Input[str]] = None,
                              registration_name: Optional[pulumi.Input[str]] = None,
                              resource_group: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCustomerSubscriptionResult]
Copy
func LookupCustomerSubscription(ctx *Context, args *LookupCustomerSubscriptionArgs, opts ...InvokeOption) (*LookupCustomerSubscriptionResult, error)
func LookupCustomerSubscriptionOutput(ctx *Context, args *LookupCustomerSubscriptionOutputArgs, opts ...InvokeOption) LookupCustomerSubscriptionResultOutput
Copy

> Note: This function is named LookupCustomerSubscription in the Go SDK.

public static class GetCustomerSubscription 
{
    public static Task<GetCustomerSubscriptionResult> InvokeAsync(GetCustomerSubscriptionArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomerSubscriptionResult> Invoke(GetCustomerSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCustomerSubscriptionResult> getCustomerSubscription(GetCustomerSubscriptionArgs args, InvokeOptions options)
public static Output<GetCustomerSubscriptionResult> getCustomerSubscription(GetCustomerSubscriptionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:azurestack:getCustomerSubscription
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CustomerSubscriptionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the product.
RegistrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Stack registration.
ResourceGroup
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group.
CustomerSubscriptionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the product.
RegistrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Stack registration.
ResourceGroup
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group.
customerSubscriptionName
This property is required.
Changes to this property will trigger replacement.
String
Name of the product.
registrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Stack registration.
resourceGroup
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group.
customerSubscriptionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the product.
registrationName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Azure Stack registration.
resourceGroup
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group.
customer_subscription_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the product.
registration_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Azure Stack registration.
resource_group
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group.
customerSubscriptionName
This property is required.
Changes to this property will trigger replacement.
String
Name of the product.
registrationName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Azure Stack registration.
resourceGroup
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group.

getCustomerSubscription Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
ID of the 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.
TenantId string
Tenant Id.
AzureApiVersion string
The Azure API version of the resource.
Id string
ID of the 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.
TenantId string
Tenant Id.
azureApiVersion String
The Azure API version of the resource.
id String
ID of the 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.
tenantId String
Tenant Id.
azureApiVersion string
The Azure API version of the resource.
id string
ID of the 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.
tenantId string
Tenant Id.
azure_api_version str
The Azure API version of the resource.
id str
ID of the 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.
tenant_id str
Tenant Id.
azureApiVersion String
The Azure API version of the resource.
id String
ID of the 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.
tenantId String
Tenant Id.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi