AzureClientArgs

data class AzureClientArgs(val applicationId: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<AzureClientArgs>

AzureClient resources hold client authentication information needed by the Anthos Multi-Cloud API to manage Azure resources on your Azure subscription.When an AzureCluster is created, an AzureClient resource needs to be provided and all operations on Azure resources associated to that cluster will authenticate to Azure services using the given client.AzureClient resources are immutable and cannot be modified upon creation.Each AzureClient resource is bound to a single Azure Active Directory Application and tenant. For more information, see:

Example Usage

Basic_azure_client

A basic example of a containerazure azure client

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const primary = new gcp.container.AzureClient("primary", {
applicationId: "12345678-1234-1234-1234-123456789111",
location: "us-west1",
name: "client-name",
tenantId: "12345678-1234-1234-1234-123456789111",
project: "my-project-name",
});
import pulumi
import pulumi_gcp as gcp
primary = gcp.container.AzureClient("primary",
application_id="12345678-1234-1234-1234-123456789111",
location="us-west1",
name="client-name",
tenant_id="12345678-1234-1234-1234-123456789111",
project="my-project-name")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var primary = new Gcp.Container.AzureClient("primary", new()
{
ApplicationId = "12345678-1234-1234-1234-123456789111",
Location = "us-west1",
Name = "client-name",
TenantId = "12345678-1234-1234-1234-123456789111",
Project = "my-project-name",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/container"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := container.NewAzureClient(ctx, "primary", &container.AzureClientArgs{
ApplicationId: pulumi.String("12345678-1234-1234-1234-123456789111"),
Location: pulumi.String("us-west1"),
Name: pulumi.String("client-name"),
TenantId: pulumi.String("12345678-1234-1234-1234-123456789111"),
Project: pulumi.String("my-project-name"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.container.AzureClient;
import com.pulumi.gcp.container.AzureClientArgs;
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) {
var primary = new AzureClient("primary", AzureClientArgs.builder()
.applicationId("12345678-1234-1234-1234-123456789111")
.location("us-west1")
.name("client-name")
.tenantId("12345678-1234-1234-1234-123456789111")
.project("my-project-name")
.build());
}
}
resources:
primary:
type: gcp:container:AzureClient
properties:
applicationId: 12345678-1234-1234-1234-123456789111
location: us-west1
name: client-name
tenantId: 12345678-1234-1234-1234-123456789111
project: my-project-name

Import

Client can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/azureClients/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}} When using the pulumi import command, Client can be imported using one of the formats above. For example:

$ pulumi import gcp:container/azureClient:AzureClient default projects/{{project}}/locations/{{location}}/azureClients/{{name}}
$ pulumi import gcp:container/azureClient:AzureClient default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:container/azureClient:AzureClient default {{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(applicationId: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null, tenantId: Output<String>? = null)

Properties

Link copied to clipboard
val applicationId: Output<String>? = null

The Azure Active Directory Application ID.

Link copied to clipboard
val location: Output<String>? = null

The location for the resource

Link copied to clipboard
val name: Output<String>? = null

The name of this resource.

Link copied to clipboard
val project: Output<String>? = null

The project for the resource

Link copied to clipboard
val tenantId: Output<String>? = null

The Azure Active Directory Tenant ID.

Functions

Link copied to clipboard
open override fun toJava(): AzureClientArgs