Azure Classic
getEnrollmentAccountScope
Use this data source to access information about an existing Enrollment Account Billing Scope.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Billing.GetEnrollmentAccountScope.InvokeAsync(new Azure.Billing.GetEnrollmentAccountScopeArgs
{
BillingAccountName = "existing",
EnrollmentAccountName = "existing",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := billing.GetEnrollmentAccountScope(ctx, &billing.GetEnrollmentAccountScopeArgs{
BillingAccountName: "existing",
EnrollmentAccountName: "existing",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(BillingFunctions.getEnrollmentAccountScope(GetEnrollmentAccountScopeArgs.builder()
.billingAccountName("existing")
.enrollmentAccountName("existing")
.build()));
ctx.export("id", example.apply(getEnrollmentAccountScopeResult -> getEnrollmentAccountScopeResult.id()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.billing.get_enrollment_account_scope(billing_account_name="existing",
enrollment_account_name="existing")
pulumi.export("id", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.billing.getEnrollmentAccountScope({
billingAccountName: "existing",
enrollmentAccountName: "existing",
});
export const id = example.then(example => example.id);
variables:
example:
Fn::Invoke:
Function: azure:billing:getEnrollmentAccountScope
Arguments:
billingAccountName: existing
enrollmentAccountName: existing
outputs:
id: ${example.id}
Using getEnrollmentAccountScope
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 getEnrollmentAccountScope(args: GetEnrollmentAccountScopeArgs, opts?: InvokeOptions): Promise<GetEnrollmentAccountScopeResult>
function getEnrollmentAccountScopeOutput(args: GetEnrollmentAccountScopeOutputArgs, opts?: InvokeOptions): Output<GetEnrollmentAccountScopeResult>
def get_enrollment_account_scope(billing_account_name: Optional[str] = None,
enrollment_account_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnrollmentAccountScopeResult
def get_enrollment_account_scope_output(billing_account_name: Optional[pulumi.Input[str]] = None,
enrollment_account_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnrollmentAccountScopeResult]
func GetEnrollmentAccountScope(ctx *Context, args *GetEnrollmentAccountScopeArgs, opts ...InvokeOption) (*GetEnrollmentAccountScopeResult, error)
func GetEnrollmentAccountScopeOutput(ctx *Context, args *GetEnrollmentAccountScopeOutputArgs, opts ...InvokeOption) GetEnrollmentAccountScopeResultOutput
> Note: This function is named GetEnrollmentAccountScope
in the Go SDK.
public static class GetEnrollmentAccountScope
{
public static Task<GetEnrollmentAccountScopeResult> InvokeAsync(GetEnrollmentAccountScopeArgs args, InvokeOptions? opts = null)
public static Output<GetEnrollmentAccountScopeResult> Invoke(GetEnrollmentAccountScopeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEnrollmentAccountScopeResult> getEnrollmentAccountScope(GetEnrollmentAccountScopeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:billing/getEnrollmentAccountScope:getEnrollmentAccountScope
Arguments:
# Arguments dictionary
The following arguments are supported:
- Billing
Account stringName The Billing Account Name of the Enterprise Account.
- Enrollment
Account stringName The Enrollment Account Name in the above Enterprise Account.
- Billing
Account stringName The Billing Account Name of the Enterprise Account.
- Enrollment
Account stringName The Enrollment Account Name in the above Enterprise Account.
- billing
Account StringName The Billing Account Name of the Enterprise Account.
- enrollment
Account StringName The Enrollment Account Name in the above Enterprise Account.
- billing
Account stringName The Billing Account Name of the Enterprise Account.
- enrollment
Account stringName The Enrollment Account Name in the above Enterprise Account.
- billing_
account_ strname The Billing Account Name of the Enterprise Account.
- enrollment_
account_ strname The Enrollment Account Name in the above Enterprise Account.
- billing
Account StringName The Billing Account Name of the Enterprise Account.
- enrollment
Account StringName The Enrollment Account Name in the above Enterprise Account.
getEnrollmentAccountScope Result
The following output properties are available:
- Billing
Account stringName - Enrollment
Account stringName - Id string
The provider-assigned unique ID for this managed resource.
- Billing
Account stringName - Enrollment
Account stringName - Id string
The provider-assigned unique ID for this managed resource.
- billing
Account StringName - enrollment
Account StringName - id String
The provider-assigned unique ID for this managed resource.
- billing
Account stringName - enrollment
Account stringName - id string
The provider-assigned unique ID for this managed resource.
- billing_
account_ strname - enrollment_
account_ strname - id str
The provider-assigned unique ID for this managed resource.
- billing
Account StringName - enrollment
Account StringName - id String
The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.