Configuration Profiles Version Args
data class ConfigurationProfilesVersionArgs(val configurationProfileName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<ConfigurationProfilePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val versionName: Output<String>? = null) : ConvertibleToJava<ConfigurationProfilesVersionArgs>
Definition of the configuration profile. Uses Azure REST API version 2022-05-04. In version 2.x of the Azure Native provider, it used API version 2022-05-04. Other available API versions: 2021-04-30-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native automanage [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create or update configuration profile version
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configurationProfilesVersion = new AzureNative.Automanage.ConfigurationProfilesVersion("configurationProfilesVersion", 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" },
},
VersionName = "version1",
});
});
Content copied to clipboard
package main
import (
automanage "github.com/pulumi/pulumi-azure-native-sdk/automanage/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automanage.NewConfigurationProfilesVersion(ctx, "configurationProfilesVersion", &automanage.ConfigurationProfilesVersionArgs{
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"),
},
VersionName: pulumi.String("version1"),
})
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.azurenative.automanage.ConfigurationProfilesVersion;
import com.pulumi.azurenative.automanage.ConfigurationProfilesVersionArgs;
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 configurationProfilesVersion = new ConfigurationProfilesVersion("configurationProfilesVersion", ConfigurationProfilesVersionArgs.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"))
.versionName("version1")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automanage:ConfigurationProfilesVersion customConfigurationProfile/version1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}
Content copied to clipboard