MasterSitesControllerArgs

data class MasterSitesControllerArgs(val allowMultipleSites: Output<Boolean>? = null, val customerStorageAccountArmId: Output<String>? = null, val location: Output<String>? = null, val publicNetworkAccess: Output<Either<String, MasterSitePropertiesPublicNetworkAccess>>? = null, val resourceGroupName: Output<String>? = null, val siteName: Output<String>? = null, val sites: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MasterSitesControllerArgs>

A MasterSite Uses Azure REST API version 2023-06-06. Other available API versions: 2023-10-01-preview, 2024-05-01-preview.

Example Usage

MasterSitesController_Create_MaximumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var masterSitesController = new AzureNative.OffAzure.MasterSitesController("masterSitesController", new()
{
AllowMultipleSites = true,
CustomerStorageAccountArmId = "cdxrihtiskkn",
Location = "plyak",
PublicNetworkAccess = AzureNative.OffAzure.MasterSitePropertiesPublicNetworkAccess.NotSpecified,
ResourceGroupName = "rgmigrate",
SiteName = "74c1J1m56557t52H-75",
Sites = new[]
{
"zxupfq",
},
Tags =
{
{ "key7125", "jbhnzfuxjovyamasouyfhhzhevagvw" },
},
});
});
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.NewMasterSitesController(ctx, "masterSitesController", &offazure.MasterSitesControllerArgs{
AllowMultipleSites: pulumi.Bool(true),
CustomerStorageAccountArmId: pulumi.String("cdxrihtiskkn"),
Location: pulumi.String("plyak"),
PublicNetworkAccess: pulumi.String(offazure.MasterSitePropertiesPublicNetworkAccessNotSpecified),
ResourceGroupName: pulumi.String("rgmigrate"),
SiteName: pulumi.String("74c1J1m56557t52H-75"),
Sites: pulumi.StringArray{
pulumi.String("zxupfq"),
},
Tags: pulumi.StringMap{
"key7125": pulumi.String("jbhnzfuxjovyamasouyfhhzhevagvw"),
},
})
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.MasterSitesController;
import com.pulumi.azurenative.offazure.MasterSitesControllerArgs;
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 masterSitesController = new MasterSitesController("masterSitesController", MasterSitesControllerArgs.builder()
.allowMultipleSites(true)
.customerStorageAccountArmId("cdxrihtiskkn")
.location("plyak")
.publicNetworkAccess("NotSpecified")
.resourceGroupName("rgmigrate")
.siteName("74c1J1m56557t52H-75")
.sites("zxupfq")
.tags(Map.of("key7125", "jbhnzfuxjovyamasouyfhhzhevagvw"))
.build());
}
}

MasterSitesController_Create_MinimumSet_Gen

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var masterSitesController = new AzureNative.OffAzure.MasterSitesController("masterSitesController", new()
{
Location = "plyak",
ResourceGroupName = "rgmigrate",
SiteName = "-3A8SuY-jRr63J",
});
});
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.NewMasterSitesController(ctx, "masterSitesController", &offazure.MasterSitesControllerArgs{
Location: pulumi.String("plyak"),
ResourceGroupName: pulumi.String("rgmigrate"),
SiteName: pulumi.String("-3A8SuY-jRr63J"),
})
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.MasterSitesController;
import com.pulumi.azurenative.offazure.MasterSitesControllerArgs;
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 masterSitesController = new MasterSitesController("masterSitesController", MasterSitesControllerArgs.builder()
.location("plyak")
.resourceGroupName("rgmigrate")
.siteName("-3A8SuY-jRr63J")
.build());
}
}

Import

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

$ pulumi import azure-native:offazure:MasterSitesController asmdtexbhrvpepiavab /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}

Constructors

Link copied to clipboard
constructor(allowMultipleSites: Output<Boolean>? = null, customerStorageAccountArmId: Output<String>? = null, location: Output<String>? = null, publicNetworkAccess: Output<Either<String, MasterSitePropertiesPublicNetworkAccess>>? = null, resourceGroupName: Output<String>? = null, siteName: Output<String>? = null, sites: Output<List<String>>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val allowMultipleSites: Output<Boolean>? = null

Gets or sets a value indicating whether multiple sites per site type are allowed.

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

Gets or sets a value for customer storage account ARM id.

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

The geo-location where the resource lives

Link copied to clipboard

Gets or sets the state of public network access.

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 sites: Output<List<String>>? = null

Gets or sets the sites that are a part of Master Site. The key should contain the Site ARM name.

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

Resource tags.

Functions

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