We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Use this data source to access an ID for your MCA Account billing scope.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Billing.GetMcaAccountScope.InvokeAsync(new Azure.Billing.GetMcaAccountScopeArgs
{
BillingAccountName = "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
BillingProfileName = "PE2Q-NOIT-BG7-TGB",
InvoiceSectionName = "MTT4-OBS7-PJA-TGB",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := billing.GetMcaAccountScope(ctx, &billing.GetMcaAccountScopeArgs{
BillingAccountName: "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
BillingProfileName: "PE2Q-NOIT-BG7-TGB",
InvoiceSectionName: "MTT4-OBS7-PJA-TGB",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.billing.getMcaAccountScope({
billingAccountName: "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
billingProfileName: "PE2Q-NOIT-BG7-TGB",
invoiceSectionName: "MTT4-OBS7-PJA-TGB",
});
export const id = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.billing.get_mca_account_scope(billing_account_name="e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
billing_profile_name="PE2Q-NOIT-BG7-TGB",
invoice_section_name="MTT4-OBS7-PJA-TGB")
pulumi.export("id", example.id)
Example coming soon!
Using getMcaAccountScope
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 getMcaAccountScope(args: GetMcaAccountScopeArgs, opts?: InvokeOptions): Promise<GetMcaAccountScopeResult>
function getMcaAccountScopeOutput(args: GetMcaAccountScopeOutputArgs, opts?: InvokeOptions): Output<GetMcaAccountScopeResult>def get_mca_account_scope(billing_account_name: Optional[str] = None,
billing_profile_name: Optional[str] = None,
invoice_section_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMcaAccountScopeResult
def get_mca_account_scope_output(billing_account_name: Optional[pulumi.Input[str]] = None,
billing_profile_name: Optional[pulumi.Input[str]] = None,
invoice_section_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMcaAccountScopeResult]func GetMcaAccountScope(ctx *Context, args *GetMcaAccountScopeArgs, opts ...InvokeOption) (*GetMcaAccountScopeResult, error)
func GetMcaAccountScopeOutput(ctx *Context, args *GetMcaAccountScopeOutputArgs, opts ...InvokeOption) GetMcaAccountScopeResultOutput> Note: This function is named GetMcaAccountScope in the Go SDK.
public static class GetMcaAccountScope
{
public static Task<GetMcaAccountScopeResult> InvokeAsync(GetMcaAccountScopeArgs args, InvokeOptions? opts = null)
public static Output<GetMcaAccountScopeResult> Invoke(GetMcaAccountScopeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMcaAccountScopeResult> getMcaAccountScope(GetMcaAccountScopeArgs args, InvokeOptions options)
public static Output<GetMcaAccountScopeResult> getMcaAccountScope(GetMcaAccountScopeArgs args, InvokeOptions options)
fn::invoke:
function: azure:billing/getMcaAccountScope:getMcaAccountScope
arguments:
# arguments dictionaryThe following arguments are supported:
- Billing
Account stringName - The Billing Account Name of the MCA account.
- Billing
Profile stringName - The Billing Profile Name in the above Billing Account.
- Invoice
Section stringName - The Invoice Section Name in the above Billing Profile.
- Billing
Account stringName - The Billing Account Name of the MCA account.
- Billing
Profile stringName - The Billing Profile Name in the above Billing Account.
- Invoice
Section stringName - The Invoice Section Name in the above Billing Profile.
- billing
Account StringName - The Billing Account Name of the MCA account.
- billing
Profile StringName - The Billing Profile Name in the above Billing Account.
- invoice
Section StringName - The Invoice Section Name in the above Billing Profile.
- billing
Account stringName - The Billing Account Name of the MCA account.
- billing
Profile stringName - The Billing Profile Name in the above Billing Account.
- invoice
Section stringName - The Invoice Section Name in the above Billing Profile.
- billing_
account_ strname - The Billing Account Name of the MCA account.
- billing_
profile_ strname - The Billing Profile Name in the above Billing Account.
- invoice_
section_ strname - The Invoice Section Name in the above Billing Profile.
- billing
Account StringName - The Billing Account Name of the MCA account.
- billing
Profile StringName - The Billing Profile Name in the above Billing Account.
- invoice
Section StringName - The Invoice Section Name in the above Billing Profile.
getMcaAccountScope Result
The following output properties are available:
- Billing
Account stringName - Billing
Profile stringName - Id string
- The provider-assigned unique ID for this managed resource.
- Invoice
Section stringName
- Billing
Account stringName - Billing
Profile stringName - Id string
- The provider-assigned unique ID for this managed resource.
- Invoice
Section stringName
- billing
Account StringName - billing
Profile StringName - id String
- The provider-assigned unique ID for this managed resource.
- invoice
Section StringName
- billing
Account stringName - billing
Profile stringName - id string
- The provider-assigned unique ID for this managed resource.
- invoice
Section stringName
- billing_
account_ strname - billing_
profile_ strname - id str
- The provider-assigned unique ID for this managed resource.
- invoice_
section_ strname
- billing
Account StringName - billing
Profile StringName - id String
- The provider-assigned unique ID for this managed resource.
- invoice
Section StringName
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
