Configuration

class Configuration : KotlinCustomResource

Manages a maintenance configuration.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.maintenance.Configuration;
import com.pulumi.azure.maintenance.ConfigurationArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.scope("SQLDB")
.tags(Map.of("Env", "prod"))
.build());
}
}

Import

Maintenance Configuration can be imported using the resource id, e.g.

$ pulumi import azure:maintenance/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Maintenance/maintenanceConfigurations/example-mc

Properties

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

The in guest user patch mode. Possible values are Platform or User. Must be specified when scope is InGuestPatch.

Link copied to clipboard

An install_patches block as defined below.

Link copied to clipboard
val location: Output<String>

Specified the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>

Specifies the name of the Maintenance Configuration. Changing this forces a new resource to be created.

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

A mapping of properties to assign to the resource.

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

The name of the Resource Group where the Maintenance Configuration should exist. Changing this forces a new resource to be created.

Link copied to clipboard
val scope: Output<String>

The scope of the Maintenance Configuration. Possible values are Extension, Host, InGuestPatch, OSImage, SQLDB or SQLManagedInstance.

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

A mapping of tags to assign to the resource. The key could not contain upper case letter.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val visibility: Output<String>?

The visibility of the Maintenance Configuration. The only allowable value is Custom.

Link copied to clipboard

A window block as defined below.