ConfigurationProfile

class ConfigurationProfile : KotlinCustomResource

Definition of the configuration profile. Uses Azure REST API version 2022-05-04.

Example Usage

Create or update configuration profile

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configurationProfile = new AzureNative.Automanage.ConfigurationProfile("configurationProfile", new()
{
ConfigurationProfileName = "customConfigurationProfile",
Location = "East US",
Properties = new AzureNative.Automanage.Inputs.ConfigurationProfilePropertiesArgs
{
Configuration = new Dictionary<string, object?>
{
["Antimalware/Enable"] = false,
["AzureSecurityCenter/Enable"] = true,
["Backup/Enable"] = false,
["BootDiagnostics/Enable"] = true,
["ChangeTrackingAndInventory/Enable"] = true,
["GuestConfiguration/Enable"] = true,
["LogAnalytics/Enable"] = true,
["UpdateManagement/Enable"] = true,
["VMInsights/Enable"] = true,
},
},
ResourceGroupName = "myResourceGroupName",
Tags =
{
{ "Organization", "Administration" },
},
});
});
package main
import (
automanage "github.com/pulumi/pulumi-azure-native-sdk/automanage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automanage.NewConfigurationProfile(ctx, "configurationProfile", &automanage.ConfigurationProfileArgs{
ConfigurationProfileName: pulumi.String("customConfigurationProfile"),
Location: pulumi.String("East US"),
Properties: &automanage.ConfigurationProfilePropertiesArgs{
Configuration: pulumi.Any(map[string]interface{}{
"Antimalware/Enable": false,
"AzureSecurityCenter/Enable": true,
"Backup/Enable": false,
"BootDiagnostics/Enable": true,
"ChangeTrackingAndInventory/Enable": true,
"GuestConfiguration/Enable": true,
"LogAnalytics/Enable": true,
"UpdateManagement/Enable": true,
"VMInsights/Enable": true,
}),
},
ResourceGroupName: pulumi.String("myResourceGroupName"),
Tags: pulumi.StringMap{
"Organization": pulumi.String("Administration"),
},
})
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.automanage.ConfigurationProfile;
import com.pulumi.azurenative.automanage.ConfigurationProfileArgs;
import com.pulumi.azurenative.automanage.inputs.ConfigurationProfilePropertiesArgs;
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 configurationProfile = new ConfigurationProfile("configurationProfile", ConfigurationProfileArgs.builder()
.configurationProfileName("customConfigurationProfile")
.location("East US")
.properties(ConfigurationProfilePropertiesArgs.builder()
.configuration(Map.ofEntries(
Map.entry("Antimalware/Enable", false),
Map.entry("AzureSecurityCenter/Enable", true),
Map.entry("Backup/Enable", false),
Map.entry("BootDiagnostics/Enable", true),
Map.entry("ChangeTrackingAndInventory/Enable", true),
Map.entry("GuestConfiguration/Enable", true),
Map.entry("LogAnalytics/Enable", true),
Map.entry("UpdateManagement/Enable", true),
Map.entry("VMInsights/Enable", true)
))
.build())
.resourceGroupName("myResourceGroupName")
.tags(Map.of("Organization", "Administration"))
.build());
}
}

Import

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

$ pulumi import azure-native:automanage:ConfigurationProfile customConfigurationProfile /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Properties of the configuration profile.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>