GuestUsageArgs

data class GuestUsageArgs(val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val tenantId: Output<String>? = null) : ConvertibleToJava<GuestUsageArgs>

Guest Usages Resource Uses Azure REST API version 2023-05-17-preview. In version 2.x of the Azure Native provider, it used API version 2021-04-01. Other available API versions: 2021-04-01, 2023-01-18-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azureactivedirectory [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

GuestUsages_Create

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var guestUsage = new AzureNative.AzureActiveDirectory.GuestUsage("guestUsage", new()
{
ResourceGroupName = "contosoResourceGroup",
ResourceName = "contoso.onmicrosoft.com",
});
});
package main
import (
azureactivedirectory "github.com/pulumi/pulumi-azure-native-sdk/azureactivedirectory/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azureactivedirectory.NewGuestUsage(ctx, "guestUsage", &azureactivedirectory.GuestUsageArgs{
ResourceGroupName: pulumi.String("contosoResourceGroup"),
ResourceName: pulumi.String("contoso.onmicrosoft.com"),
})
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.azurenative.azureactivedirectory.GuestUsage;
import com.pulumi.azurenative.azureactivedirectory.GuestUsageArgs;
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 guestUsage = new GuestUsage("guestUsage", GuestUsageArgs.builder()
.resourceGroupName("contosoResourceGroup")
.resourceName("contoso.onmicrosoft.com")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:azureactivedirectory:GuestUsage contoso.onmicrosoft.com /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/guestUsages/{resourceName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, tags: Output<Map<String, String>>? = null, tenantId: Output<String>? = null)

Properties

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

Location of the Guest Usages resource.

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

The name of the resource group.

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

The initial domain name of the Azure AD B2C tenant.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of additional resource provisioning properties.

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

An identifier for the tenant for which the resource is being created

Functions

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