Portal Tenant Configuration Args
data class PortalTenantConfigurationArgs(val privateMarkdownStorageEnforced: Output<Boolean>? = null) : ConvertibleToJava<PortalTenantConfigurationArgs>
Manages Portal Tenant Configuration.
Note: User has to be
Contributor
orOwner
at scope/
for managing this resource. Note: The Service Principal with Tenant Admin can be created byaz ad sp create-for-rbac --name "<sp name>" --role="Contributor" --scopes="/"
. Note: The Service Principal can be granted Tenant Admin permission byaz role assignment create --assignee "<app id>" --role "Contributor" --scope "/"
. Note: While assigning the role to the existing/new Service Principal at the Tenant Scope, the user assigning role must already have theOwner
role assigned at the Tenant Scope.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.PortalTenantConfiguration("example", {privateMarkdownStorageEnforced: true});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.core.PortalTenantConfiguration("example", private_markdown_storage_enforced=True)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.PortalTenantConfiguration("example", new()
{
PrivateMarkdownStorageEnforced = true,
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := core.NewPortalTenantConfiguration(ctx, "example", &core.PortalTenantConfigurationArgs{
PrivateMarkdownStorageEnforced: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.PortalTenantConfiguration;
import com.pulumi.azure.core.PortalTenantConfigurationArgs;
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 example = new PortalTenantConfiguration("example", PortalTenantConfigurationArgs.builder()
.privateMarkdownStorageEnforced(true)
.build());
}
}
Content copied to clipboard
resources:
example:
type: azure:core:PortalTenantConfiguration
properties:
privateMarkdownStorageEnforced: true
Content copied to clipboard
Import
Portal Tenant Configurations can be imported using the resource id
, e.g.
$ pulumi import azure:core/portalTenantConfiguration:PortalTenantConfiguration example /providers/Microsoft.Portal/tenantConfigurations/default
Content copied to clipboard