PortalTenantConfiguration

Manages Portal Tenant Configuration.

Note: User has to be Contributor or Owner at scope / for managing this resource.

Note: The Service Principal with Tenant Admin can be created by az ad sp create-for-rbac --name "<sp name>" --role="Contributor" --scopes="/".

Note: The Service Principal can be granted Tenant Admin permission by az 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 the Owner role assigned at the Tenant Scope.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.PortalTenantConfiguration("example", new()
    {
        PrivateMarkdownStorageEnforced = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/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
	})
}
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());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.core.PortalTenantConfiguration("example", private_markdown_storage_enforced=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.core.PortalTenantConfiguration("example", {
    privateMarkdownStorageEnforced: true,
});
resources:
  example:
    type: azure:core:PortalTenantConfiguration
    properties:
      privateMarkdownStorageEnforced: true

Create PortalTenantConfiguration Resource

new PortalTenantConfiguration(name: string, args: PortalTenantConfigurationArgs, opts?: CustomResourceOptions);
@overload
def PortalTenantConfiguration(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              private_markdown_storage_enforced: Optional[bool] = None)
@overload
def PortalTenantConfiguration(resource_name: str,
                              args: PortalTenantConfigurationArgs,
                              opts: Optional[ResourceOptions] = None)
func NewPortalTenantConfiguration(ctx *Context, name string, args PortalTenantConfigurationArgs, opts ...ResourceOption) (*PortalTenantConfiguration, error)
public PortalTenantConfiguration(string name, PortalTenantConfigurationArgs args, CustomResourceOptions? opts = null)
public PortalTenantConfiguration(String name, PortalTenantConfigurationArgs args)
public PortalTenantConfiguration(String name, PortalTenantConfigurationArgs args, CustomResourceOptions options)
type: azure:core:PortalTenantConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PortalTenantConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PortalTenantConfigurationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PortalTenantConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PortalTenantConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PortalTenantConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PortalTenantConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The PortalTenantConfiguration resource accepts the following input properties:

PrivateMarkdownStorageEnforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

PrivateMarkdownStorageEnforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced Boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

private_markdown_storage_enforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced Boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

Outputs

All input properties are implicitly available as output properties. Additionally, the PortalTenantConfiguration resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing PortalTenantConfiguration Resource

Get an existing PortalTenantConfiguration resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PortalTenantConfigurationState, opts?: CustomResourceOptions): PortalTenantConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        private_markdown_storage_enforced: Optional[bool] = None) -> PortalTenantConfiguration
func GetPortalTenantConfiguration(ctx *Context, name string, id IDInput, state *PortalTenantConfigurationState, opts ...ResourceOption) (*PortalTenantConfiguration, error)
public static PortalTenantConfiguration Get(string name, Input<string> id, PortalTenantConfigurationState? state, CustomResourceOptions? opts = null)
public static PortalTenantConfiguration get(String name, Output<String> id, PortalTenantConfigurationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
PrivateMarkdownStorageEnforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

PrivateMarkdownStorageEnforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced Boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

private_markdown_storage_enforced bool

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

privateMarkdownStorageEnforced Boolean

Is the private tile markdown storage which used to display custom dynamic and static content enabled?

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.