1. Packages
  2. Azure Native
  3. API Docs
  4. billing
  5. getAssociatedTenant
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.billing.getAssociatedTenant

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

Gets an associated tenant by ID.

Uses Azure REST API version 2024-04-01.

Using getAssociatedTenant

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 getAssociatedTenant(args: GetAssociatedTenantArgs, opts?: InvokeOptions): Promise<GetAssociatedTenantResult>
function getAssociatedTenantOutput(args: GetAssociatedTenantOutputArgs, opts?: InvokeOptions): Output<GetAssociatedTenantResult>
Copy
def get_associated_tenant(associated_tenant_name: Optional[str] = None,
                          billing_account_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetAssociatedTenantResult
def get_associated_tenant_output(associated_tenant_name: Optional[pulumi.Input[str]] = None,
                          billing_account_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetAssociatedTenantResult]
Copy
func LookupAssociatedTenant(ctx *Context, args *LookupAssociatedTenantArgs, opts ...InvokeOption) (*LookupAssociatedTenantResult, error)
func LookupAssociatedTenantOutput(ctx *Context, args *LookupAssociatedTenantOutputArgs, opts ...InvokeOption) LookupAssociatedTenantResultOutput
Copy

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

public static class GetAssociatedTenant 
{
    public static Task<GetAssociatedTenantResult> InvokeAsync(GetAssociatedTenantArgs args, InvokeOptions? opts = null)
    public static Output<GetAssociatedTenantResult> Invoke(GetAssociatedTenantInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetAssociatedTenantResult> getAssociatedTenant(GetAssociatedTenantArgs args, InvokeOptions options)
public static Output<GetAssociatedTenantResult> getAssociatedTenant(GetAssociatedTenantArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:billing:getAssociatedTenant
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AssociatedTenantName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a tenant.
BillingAccountName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a billing account.
AssociatedTenantName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a tenant.
BillingAccountName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a billing account.
associatedTenantName
This property is required.
Changes to this property will trigger replacement.
String
The ID that uniquely identifies a tenant.
billingAccountName
This property is required.
Changes to this property will trigger replacement.
String
The ID that uniquely identifies a billing account.
associatedTenantName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a tenant.
billingAccountName
This property is required.
Changes to this property will trigger replacement.
string
The ID that uniquely identifies a billing account.
associated_tenant_name
This property is required.
Changes to this property will trigger replacement.
str
The ID that uniquely identifies a tenant.
billing_account_name
This property is required.
Changes to this property will trigger replacement.
str
The ID that uniquely identifies a billing account.
associatedTenantName
This property is required.
Changes to this property will trigger replacement.
String
The ID that uniquely identifies a tenant.
billingAccountName
This property is required.
Changes to this property will trigger replacement.
String
The ID that uniquely identifies a billing account.

getAssociatedTenant Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Name string
The name of the resource
Properties Pulumi.AzureNative.Billing.Outputs.AssociatedTenantPropertiesResponse
An associated tenant.
SystemData Pulumi.AzureNative.Billing.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Tags Dictionary<string, string>
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
AzureApiVersion string
The Azure API version of the resource.
Id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
Name string
The name of the resource
Properties AssociatedTenantPropertiesResponse
An associated tenant.
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Tags map[string]string
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name String
The name of the resource
properties AssociatedTenantPropertiesResponse
An associated tenant.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
tags Map<String,String>
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
azureApiVersion string
The Azure API version of the resource.
id string
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name string
The name of the resource
properties AssociatedTenantPropertiesResponse
An associated tenant.
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
tags {[key: string]: string}
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
azure_api_version str
The Azure API version of the resource.
id str
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name str
The name of the resource
properties AssociatedTenantPropertiesResponse
An associated tenant.
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
tags Mapping[str, str]
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
azureApiVersion String
The Azure API version of the resource.
id String
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
name String
The name of the resource
properties Property Map
An associated tenant.
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
tags Map<String>
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /

Supporting Types

AssociatedTenantPropertiesResponse

ProvisioningBillingRequestId This property is required. string
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
ProvisioningState This property is required. string
The provisioning state of the resource during a long-running operation.
BillingManagementState string
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
DisplayName string
The name of the associated tenant.
ProvisioningManagementState string
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
TenantId string
The ID that uniquely identifies a tenant.
ProvisioningBillingRequestId This property is required. string
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
ProvisioningState This property is required. string
The provisioning state of the resource during a long-running operation.
BillingManagementState string
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
DisplayName string
The name of the associated tenant.
ProvisioningManagementState string
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
TenantId string
The ID that uniquely identifies a tenant.
provisioningBillingRequestId This property is required. String
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
provisioningState This property is required. String
The provisioning state of the resource during a long-running operation.
billingManagementState String
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
displayName String
The name of the associated tenant.
provisioningManagementState String
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
tenantId String
The ID that uniquely identifies a tenant.
provisioningBillingRequestId This property is required. string
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
provisioningState This property is required. string
The provisioning state of the resource during a long-running operation.
billingManagementState string
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
displayName string
The name of the associated tenant.
provisioningManagementState string
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
tenantId string
The ID that uniquely identifies a tenant.
provisioning_billing_request_id This property is required. str
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
provisioning_state This property is required. str
The provisioning state of the resource during a long-running operation.
billing_management_state str
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
display_name str
The name of the associated tenant.
provisioning_management_state str
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
tenant_id str
The ID that uniquely identifies a tenant.
provisioningBillingRequestId This property is required. String
The unique identifier for the billing request that is created when enabling provisioning for an associated tenant.
provisioningState This property is required. String
The provisioning state of the resource during a long-running operation.
billingManagementState String
The state determines whether users from the associated tenant can be assigned roles for commerce activities like viewing and downloading invoices, managing payments, and making purchases.
displayName String
The name of the associated tenant.
provisioningManagementState String
The state determines whether subscriptions and licenses can be provisioned in the associated tenant. It can be set to 'Pending' to initiate a billing request.
tenantId String
The ID that uniquely identifies a tenant.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

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