IdentityProviderAadArgs

data class IdentityProviderAadArgs(val allowedTenants: Output<List<String>>? = null, val apiManagementName: Output<String>? = null, val clientId: Output<String>? = null, val clientSecret: Output<String>? = null, val resourceGroupName: Output<String>? = null, val signinTenant: Output<String>? = null) : ConvertibleToJava<IdentityProviderAadArgs>

Manages an API Management AAD Identity Provider.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.apimanagement.Service;
import com.pulumi.azure.apimanagement.ServiceArgs;
import com.pulumi.azure.apimanagement.IdentityProviderAad;
import com.pulumi.azure.apimanagement.IdentityProviderAadArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.publisherName("My Company")
.publisherEmail("company@mycompany.io")
.skuName("Developer_1")
.build());
var exampleIdentityProviderAad = new IdentityProviderAad("exampleIdentityProviderAad", IdentityProviderAadArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.apiManagementName(exampleService.name())
.clientId("00000000-0000-0000-0000-000000000000")
.clientSecret("00000000000000000000000000000000")
.allowedTenants("00000000-0000-0000-0000-000000000000")
.build());
}
}

Import

API Management AAD Identity Provider can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/identityProviderAad:IdentityProviderAad example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/identityProviders/aad

Constructors

Link copied to clipboard
fun IdentityProviderAadArgs(allowedTenants: Output<List<String>>? = null, apiManagementName: Output<String>? = null, clientId: Output<String>? = null, clientSecret: Output<String>? = null, resourceGroupName: Output<String>? = null, signinTenant: Output<String>? = null)

Functions

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

Properties

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

List of allowed AAD Tenants.

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

The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.

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

Client Id of the Application in the AAD Identity Provider.

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

Client secret of the Application in the AAD Identity Provider.

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

The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.

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

The AAD Tenant to use instead of Common when logging into Active Directory