GuestUsage

class GuestUsage : KotlinCustomResource

Guest Usages Resource Uses Azure REST API version 2021-04-01. In version 1.x of the Azure Native provider, it used API version 2020-05-01-preview. Other available API versions: 2023-01-18-preview, 2023-05-17-preview.

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/v2"
"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}

Properties

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

Location of the Guest Usages resource.

Link copied to clipboard
val name: Output<String>

The name of the Guest Usages resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

Key-value pairs of additional resource provisioning properties.

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

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

Link copied to clipboard
val type: Output<String>

The type of the Guest Usages resource.

Link copied to clipboard
val urn: Output<String>