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
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
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