Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.5.0 published on Wednesday, May 4, 2022 by Pulumi

AutoProvisioning

Enables or disables the Security Center Auto Provisioning feature for the subscription

NOTE: There is no resource name required, it will always be “default”

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Azure.SecurityCenter.AutoProvisioning("example", new Azure.SecurityCenter.AutoProvisioningArgs
        {
            AutoProvision = "On",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/securitycenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitycenter.NewAutoProvisioning(ctx, "example", &securitycenter.AutoProvisioningArgs{
			AutoProvision: pulumi.String("On"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new AutoProvisioning("example", AutoProvisioningArgs.builder()        
            .autoProvision("On")
            .build());

        }
}
import pulumi
import pulumi_azure as azure

example = azure.securitycenter.AutoProvisioning("example", auto_provision="On")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = new azure.securitycenter.AutoProvisioning("example", {
    autoProvision: "On",
});
resources:
  example:
    type: azure:securitycenter:AutoProvisioning
    properties:
      autoProvision: On

Create a AutoProvisioning Resource

new AutoProvisioning(name: string, args: AutoProvisioningArgs, opts?: CustomResourceOptions);
@overload
def AutoProvisioning(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     auto_provision: Optional[str] = None)
@overload
def AutoProvisioning(resource_name: str,
                     args: AutoProvisioningArgs,
                     opts: Optional[ResourceOptions] = None)
func NewAutoProvisioning(ctx *Context, name string, args AutoProvisioningArgs, opts ...ResourceOption) (*AutoProvisioning, error)
public AutoProvisioning(string name, AutoProvisioningArgs args, CustomResourceOptions? opts = null)
public AutoProvisioning(String name, AutoProvisioningArgs args)
public AutoProvisioning(String name, AutoProvisioningArgs args, CustomResourceOptions options)
type: azure:securitycenter:AutoProvisioning
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AutoProvisioningArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AutoProvisioningArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AutoProvisioningArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AutoProvisioningArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AutoProvisioningArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AutoProvisioning Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The AutoProvisioning resource accepts the following input properties:

AutoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

AutoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision String

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

auto_provision str

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision String

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

Outputs

All input properties are implicitly available as output properties. Additionally, the AutoProvisioning resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing AutoProvisioning Resource

Get an existing AutoProvisioning resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AutoProvisioningState, opts?: CustomResourceOptions): AutoProvisioning
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auto_provision: Optional[str] = None) -> AutoProvisioning
func GetAutoProvisioning(ctx *Context, name string, id IDInput, state *AutoProvisioningState, opts ...ResourceOption) (*AutoProvisioning, error)
public static AutoProvisioning Get(string name, Input<string> id, AutoProvisioningState? state, CustomResourceOptions? opts = null)
public static AutoProvisioning get(String name, Output<String> id, AutoProvisioningState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AutoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

AutoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision String

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision string

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

auto_provision str

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

autoProvision String

Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are On (to install the security agent automatically, if it's missing) or Off (to not install the security agent automatically).

Import

Security Center Auto Provisioning can be imported using the resource id, e.g.

 $ pulumi import azure:securitycenter/autoProvisioning:AutoProvisioning example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/autoProvisioningSettings/default

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.