get Mca Account Scope
Use this data source to access an ID for your MCA Account billing scope.
Example Usage
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);
Content copied to clipboard
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)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Billing.GetMcaAccountScope.Invoke(new()
{
BillingAccountName = "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
BillingProfileName = "PE2Q-NOIT-BG7-TGB",
InvoiceSectionName = "MTT4-OBS7-PJA-TGB",
});
return new Dictionary<string, object?>
{
["id"] = example.Apply(getMcaAccountScopeResult => getMcaAccountScopeResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/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
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.billing.BillingFunctions;
import com.pulumi.azure.billing.inputs.GetMcaAccountScopeArgs;
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) {
final var example = BillingFunctions.getMcaAccountScope(GetMcaAccountScopeArgs.builder()
.billingAccountName("e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31")
.billingProfileName("PE2Q-NOIT-BG7-TGB")
.invoiceSectionName("MTT4-OBS7-PJA-TGB")
.build());
ctx.export("id", example.id());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:billing:getMcaAccountScope
arguments:
billingAccountName: e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31
billingProfileName: PE2Q-NOIT-BG7-TGB
invoiceSectionName: MTT4-OBS7-PJA-TGB
outputs:
id: ${example.id}
Content copied to clipboard
Return
A collection of values returned by getMcaAccountScope.
Parameters
argument
A collection of arguments for invoking getMcaAccountScope.
suspend fun getMcaAccountScope(billingAccountName: String, billingProfileName: String, invoiceSectionName: String): GetMcaAccountScopeResult
Return
A collection of values returned by getMcaAccountScope.
Parameters
billing Account Name
The Billing Account Name of the MCA account.
billing Profile Name
The Billing Profile Name in the above Billing Account.
invoice Section Name
The Invoice Section Name in the above Billing Profile.
See also
suspend fun getMcaAccountScope(argument: suspend GetMcaAccountScopePlainArgsBuilder.() -> Unit): GetMcaAccountScopeResult
Return
A collection of values returned by getMcaAccountScope.
Parameters
argument
Builder for com.pulumi.azure.billing.kotlin.inputs.GetMcaAccountScopePlainArgs.