1. Packages
  2. Packages
  3. Newrelic Provider
  4. API Docs
  5. cloud
  6. AzureLinkAccount
Viewing docs for New Relic v4.20.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
newrelic logo
Viewing docs for New Relic v4.20.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Import

    Linked Azure accounts can be imported using id, you can find the id of existing Azure linked accounts in Azure dashboard under Infrastructure in NewRelic bash

     $ pulumi import newrelic:cloud/azureLinkAccount:AzureLinkAccount foo <id>
    

    Create AzureLinkAccount Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AzureLinkAccount(name: string, args: AzureLinkAccountArgs, opts?: CustomResourceOptions);
    @overload
    def AzureLinkAccount(resource_name: str,
                         args: AzureLinkAccountArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AzureLinkAccount(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         application_id: Optional[str] = None,
                         client_secret: Optional[str] = None,
                         subscription_id: Optional[str] = None,
                         tenant_id: Optional[str] = None,
                         account_id: Optional[int] = None,
                         name: Optional[str] = None)
    func NewAzureLinkAccount(ctx *Context, name string, args AzureLinkAccountArgs, opts ...ResourceOption) (*AzureLinkAccount, error)
    public AzureLinkAccount(string name, AzureLinkAccountArgs args, CustomResourceOptions? opts = null)
    public AzureLinkAccount(String name, AzureLinkAccountArgs args)
    public AzureLinkAccount(String name, AzureLinkAccountArgs args, CustomResourceOptions options)
    
    type: newrelic:cloud:AzureLinkAccount
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AzureLinkAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AzureLinkAccountArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AzureLinkAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AzureLinkAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AzureLinkAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var azureLinkAccountResource = new NewRelic.Cloud.AzureLinkAccount("azureLinkAccountResource", new()
    {
        ApplicationId = "string",
        ClientSecret = "string",
        SubscriptionId = "string",
        TenantId = "string",
        AccountId = 0,
        Name = "string",
    });
    
    example, err := cloud.NewAzureLinkAccount(ctx, "azureLinkAccountResource", &cloud.AzureLinkAccountArgs{
    	ApplicationId:  pulumi.String("string"),
    	ClientSecret:   pulumi.String("string"),
    	SubscriptionId: pulumi.String("string"),
    	TenantId:       pulumi.String("string"),
    	AccountId:      pulumi.Int(0),
    	Name:           pulumi.String("string"),
    })
    
    var azureLinkAccountResource = new AzureLinkAccount("azureLinkAccountResource", AzureLinkAccountArgs.builder()
        .applicationId("string")
        .clientSecret("string")
        .subscriptionId("string")
        .tenantId("string")
        .accountId(0)
        .name("string")
        .build());
    
    azure_link_account_resource = newrelic.cloud.AzureLinkAccount("azureLinkAccountResource",
        application_id="string",
        client_secret="string",
        subscription_id="string",
        tenant_id="string",
        account_id=0,
        name="string")
    
    const azureLinkAccountResource = new newrelic.cloud.AzureLinkAccount("azureLinkAccountResource", {
        applicationId: "string",
        clientSecret: "string",
        subscriptionId: "string",
        tenantId: "string",
        accountId: 0,
        name: "string",
    });
    
    type: newrelic:cloud:AzureLinkAccount
    properties:
        accountId: 0
        applicationId: string
        clientSecret: string
        name: string
        subscriptionId: string
        tenantId: string
    

    AzureLinkAccount Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AzureLinkAccount resource accepts the following input properties:

    ApplicationId string
    • Application ID of the App.
    ClientSecret string
    • Secret Value of the client.
    SubscriptionId string
    • Subscription ID of the Azure cloud account.
    TenantId string
    • Tenant ID of the Azure cloud account.
    AccountId int
    • Account ID of the New Relic.
    Name string
    • The name of the application in New Relic APM.
    ApplicationId string
    • Application ID of the App.
    ClientSecret string
    • Secret Value of the client.
    SubscriptionId string
    • Subscription ID of the Azure cloud account.
    TenantId string
    • Tenant ID of the Azure cloud account.
    AccountId int
    • Account ID of the New Relic.
    Name string
    • The name of the application in New Relic APM.
    applicationId String
    • Application ID of the App.
    clientSecret String
    • Secret Value of the client.
    subscriptionId String
    • Subscription ID of the Azure cloud account.
    tenantId String
    • Tenant ID of the Azure cloud account.
    accountId Integer
    • Account ID of the New Relic.
    name String
    • The name of the application in New Relic APM.
    applicationId string
    • Application ID of the App.
    clientSecret string
    • Secret Value of the client.
    subscriptionId string
    • Subscription ID of the Azure cloud account.
    tenantId string
    • Tenant ID of the Azure cloud account.
    accountId number
    • Account ID of the New Relic.
    name string
    • The name of the application in New Relic APM.
    application_id str
    • Application ID of the App.
    client_secret str
    • Secret Value of the client.
    subscription_id str
    • Subscription ID of the Azure cloud account.
    tenant_id str
    • Tenant ID of the Azure cloud account.
    account_id int
    • Account ID of the New Relic.
    name str
    • The name of the application in New Relic APM.
    applicationId String
    • Application ID of the App.
    clientSecret String
    • Secret Value of the client.
    subscriptionId String
    • Subscription ID of the Azure cloud account.
    tenantId String
    • Tenant ID of the Azure cloud account.
    accountId Number
    • Account ID of the New Relic.
    name String
    • The name of the application in New Relic APM.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AzureLinkAccount resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AzureLinkAccount Resource

    Get an existing AzureLinkAccount resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AzureLinkAccountState, opts?: CustomResourceOptions): AzureLinkAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[int] = None,
            application_id: Optional[str] = None,
            client_secret: Optional[str] = None,
            name: Optional[str] = None,
            subscription_id: Optional[str] = None,
            tenant_id: Optional[str] = None) -> AzureLinkAccount
    func GetAzureLinkAccount(ctx *Context, name string, id IDInput, state *AzureLinkAccountState, opts ...ResourceOption) (*AzureLinkAccount, error)
    public static AzureLinkAccount Get(string name, Input<string> id, AzureLinkAccountState? state, CustomResourceOptions? opts = null)
    public static AzureLinkAccount get(String name, Output<String> id, AzureLinkAccountState state, CustomResourceOptions options)
    resources:  _:    type: newrelic:cloud:AzureLinkAccount    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId int
    • Account ID of the New Relic.
    ApplicationId string
    • Application ID of the App.
    ClientSecret string
    • Secret Value of the client.
    Name string
    • The name of the application in New Relic APM.
    SubscriptionId string
    • Subscription ID of the Azure cloud account.
    TenantId string
    • Tenant ID of the Azure cloud account.
    AccountId int
    • Account ID of the New Relic.
    ApplicationId string
    • Application ID of the App.
    ClientSecret string
    • Secret Value of the client.
    Name string
    • The name of the application in New Relic APM.
    SubscriptionId string
    • Subscription ID of the Azure cloud account.
    TenantId string
    • Tenant ID of the Azure cloud account.
    accountId Integer
    • Account ID of the New Relic.
    applicationId String
    • Application ID of the App.
    clientSecret String
    • Secret Value of the client.
    name String
    • The name of the application in New Relic APM.
    subscriptionId String
    • Subscription ID of the Azure cloud account.
    tenantId String
    • Tenant ID of the Azure cloud account.
    accountId number
    • Account ID of the New Relic.
    applicationId string
    • Application ID of the App.
    clientSecret string
    • Secret Value of the client.
    name string
    • The name of the application in New Relic APM.
    subscriptionId string
    • Subscription ID of the Azure cloud account.
    tenantId string
    • Tenant ID of the Azure cloud account.
    account_id int
    • Account ID of the New Relic.
    application_id str
    • Application ID of the App.
    client_secret str
    • Secret Value of the client.
    name str
    • The name of the application in New Relic APM.
    subscription_id str
    • Subscription ID of the Azure cloud account.
    tenant_id str
    • Tenant ID of the Azure cloud account.
    accountId Number
    • Account ID of the New Relic.
    applicationId String
    • Application ID of the App.
    clientSecret String
    • Secret Value of the client.
    name String
    • The name of the application in New Relic APM.
    subscriptionId String
    • Subscription ID of the Azure cloud account.
    tenantId String
    • Tenant ID of the Azure cloud account.

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    Viewing docs for New Relic v4.20.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.