Master Sites Controller Args
A MasterSite Uses Azure REST API version 2023-10-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-06-06. Other available API versions: 2023-06-06, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native offazure [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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 = "tndgdhvguaaa",
Location = "g",
PublicNetworkAccess = AzureNative.OffAzure.MasterSitePropertiesPublicNetworkAccess.NotSpecified,
ResourceGroupName = "rgmigrate",
SiteName = "4Y-BY-44e-2fDcKpH-E5",
Sites = new[]
{
"lzbawsokqsbzpsocpiwbsjxf",
},
Tags =
{
{ "key5556", "htomzlbxaiqgcmaaq" },
},
});
});
package main
import (
offazure "github.com/pulumi/pulumi-azure-native-sdk/offazure/v3"
"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("tndgdhvguaaa"),
Location: pulumi.String("g"),
PublicNetworkAccess: pulumi.String(offazure.MasterSitePropertiesPublicNetworkAccessNotSpecified),
ResourceGroupName: pulumi.String("rgmigrate"),
SiteName: pulumi.String("4Y-BY-44e-2fDcKpH-E5"),
Sites: pulumi.StringArray{
pulumi.String("lzbawsokqsbzpsocpiwbsjxf"),
},
Tags: pulumi.StringMap{
"key5556": pulumi.String("htomzlbxaiqgcmaaq"),
},
})
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("tndgdhvguaaa")
.location("g")
.publicNetworkAccess("NotSpecified")
.resourceGroupName("rgmigrate")
.siteName("4Y-BY-44e-2fDcKpH-E5")
.sites("lzbawsokqsbzpsocpiwbsjxf")
.tags(Map.of("key5556", "htomzlbxaiqgcmaaq"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:offazure:MasterSitesController yrxubv /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/masterSites/{siteName}
Constructors
Properties
Gets or sets a value indicating whether multiple sites per site type are allowed.
Gets or sets a value for customer storage account ARM id.
Gets or sets the state of public network access.
The name of the resource group. The name is case insensitive.