SiteArgs

data class SiteArgs(val eTag: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val properties: Output<SitePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val siteName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SiteArgs>

Site REST Resource. Uses Azure REST API version 2020-07-07. In version 1.x of the Azure Native provider, it used API version 2020-01-01.

Example Usage

Create VMware site

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var site = new AzureNative.OffAzure.Site("site", new()
{
Location = "eastus",
Properties = new AzureNative.OffAzure.Inputs.SitePropertiesArgs
{
ServicePrincipalIdentityDetails = new AzureNative.OffAzure.Inputs.SiteSpnPropertiesArgs
{
AadAuthority = "https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47",
ApplicationId = "e9f013df-2a2a-4871-b766-e79867f30348",
Audience = "https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp",
ObjectId = "2cd492bc-7ef3-4ee0-b301-59a88108b47b",
TenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47",
},
},
ResourceGroupName = "pajindTest",
SiteName = "appliance1e39site",
});
});
package main
import (
offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := offazure.NewSite(ctx, "site", &offazure.SiteArgs{
Location: pulumi.String("eastus"),
Properties: &offazure.SitePropertiesArgs{
ServicePrincipalIdentityDetails: &offazure.SiteSpnPropertiesArgs{
AadAuthority: pulumi.String("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47"),
ApplicationId: pulumi.String("e9f013df-2a2a-4871-b766-e79867f30348"),
Audience: pulumi.String("https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp"),
ObjectId: pulumi.String("2cd492bc-7ef3-4ee0-b301-59a88108b47b"),
TenantId: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
},
},
ResourceGroupName: pulumi.String("pajindTest"),
SiteName: pulumi.String("appliance1e39site"),
})
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.offazure.Site;
import com.pulumi.azurenative.offazure.SiteArgs;
import com.pulumi.azurenative.offazure.inputs.SitePropertiesArgs;
import com.pulumi.azurenative.offazure.inputs.SiteSpnPropertiesArgs;
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 site = new Site("site", SiteArgs.builder()
.location("eastus")
.properties(SitePropertiesArgs.builder()
.servicePrincipalIdentityDetails(SiteSpnPropertiesArgs.builder()
.aadAuthority("https://login.windows.net/72f988bf-86f1-41af-91ab-2d7cd011db47")
.applicationId("e9f013df-2a2a-4871-b766-e79867f30348")
.audience("https://72f988bf-86f1-41af-91ab-2d7cd011db47/MaheshSite17ac9agentauthaadapp")
.objectId("2cd492bc-7ef3-4ee0-b301-59a88108b47b")
.tenantId("72f988bf-86f1-41af-91ab-2d7cd011db47")
.build())
.build())
.resourceGroupName("pajindTest")
.siteName("appliance1e39site")
.build());
}
}

Import

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

$ pulumi import azure-native:offazure:Site appliance1e39site /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/VMwareSites/{siteName}

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, properties: Output<SitePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, siteName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

eTag for concurrency control.

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

Azure location in which Sites is created.

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

Name of the VMware site.

Link copied to clipboard
val properties: Output<SitePropertiesArgs>? = null

Nested properties of VMWare site.

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

The name of the resource group. The name is case insensitive.

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

Site name.

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

Functions

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