SoftwareUpdateConfiguration

class SoftwareUpdateConfiguration : KotlinCustomResource

Manages an Automation Software Update Configuraion.

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.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.RunBook;
import com.pulumi.azure.automation.RunBookArgs;
import com.pulumi.azure.automation.SoftwareUpdateConfiguration;
import com.pulumi.azure.automation.SoftwareUpdateConfigurationArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationLinuxArgs;
import com.pulumi.azure.automation.inputs.SoftwareUpdateConfigurationPreTaskArgs;
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("East US")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleRunBook = new RunBook("exampleRunBook", RunBookArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.logVerbose("true")
.logProgress("true")
.description("This is a example runbook for terraform acceptance example")
.runbookType("Python3")
.content("""
# Some example content
# for Terraform acceptance example
""")
.tags(Map.of("ENV", "runbook_test"))
.build());
var exampleSoftwareUpdateConfiguration = new SoftwareUpdateConfiguration("exampleSoftwareUpdateConfiguration", SoftwareUpdateConfigurationArgs.builder()
.automationAccountId(exampleAccount.id())
.operatingSystem("Linux")
.linuxes(SoftwareUpdateConfigurationLinuxArgs.builder()
.classificationIncluded("Security")
.excludedPackages("apt")
.includedPackages("vim")
.reboot("IfRequired")
.build())
.preTasks(SoftwareUpdateConfigurationPreTaskArgs.builder()
.source(exampleRunBook.name())
.parameters(Map.of("COMPUTER_NAME", "Foo"))
.build())
.duration("PT2H2M2S")
.build());
}
}

Import

Automations Software Update Configuration can be imported using the resource id, e.g.

$ pulumi import azure:automation/softwareUpdateConfiguration:SoftwareUpdateConfiguration example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/softwareUpdateConfigurations/suc1

Properties

Link copied to clipboard

The ID of Automation Account to manage this Source Control. Changing this forces a new Automation Source Control to be created.

Link copied to clipboard
val duration: Output<String>?

Maximum time allowed for the software update configuration run. using format PT[n]H[n]M[n]S as per ISO8601. Defaults to PT2H.

Link copied to clipboard
val errorCode: Output<String>

The Error code when failed.

Link copied to clipboard
val errorMeesage: Output<String>

The Error message indicating why the operation failed.

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

A linux block as defined below.

Link copied to clipboard
val name: Output<String>

The name which should be used for this Automation. Changing this forces a new Automation to be created.

Link copied to clipboard

Specifies a list of names of non-Azure machines for the software update configuration.

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

A post_task blocks as defined below.

Link copied to clipboard

A pre_task blocks as defined below.

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

A schedule blocks as defined below.

Link copied to clipboard

A target blocks as defined below.

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

Specifies a list of Azure Resource IDs of azure virtual machines.

Link copied to clipboard

A windows block as defined below.