1. Packages
  2. Azure Classic
  3. API Docs
  4. securitycenter
  5. AutoProvisioning

We recommend using Azure Native.

Azure Classic v5.80.0 published on Monday, Jun 10, 2024 by Pulumi

azure.securitycenter.AutoProvisioning

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.80.0 published on Monday, Jun 10, 2024 by Pulumi

    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

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.securitycenter.AutoProvisioning("example", {autoProvision: "On"});
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.securitycenter.AutoProvisioning("example", auto_provision="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
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.SecurityCenter.AutoProvisioning("example", new()
        {
            AutoProvision = "On",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.securitycenter.AutoProvisioning;
    import com.pulumi.azure.securitycenter.AutoProvisioningArgs;
    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 example = new AutoProvisioning("example", AutoProvisioningArgs.builder()
                .autoProvision("On")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:securitycenter:AutoProvisioning
        properties:
          autoProvision: On
    

    Create AutoProvisioning Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AutoProvisioning(name: string, args: AutoProvisioningArgs, opts?: CustomResourceOptions);
    @overload
    def AutoProvisioning(resource_name: str,
                         args: AutoProvisioningArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AutoProvisioning(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         auto_provision: Optional[str] = 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.
    
    

    Parameters

    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.

    Example

    The following reference example uses placeholder values for all input properties.

    var autoProvisioningResource = new Azure.SecurityCenter.AutoProvisioning("autoProvisioningResource", new()
    {
        AutoProvision = "string",
    });
    
    example, err := securitycenter.NewAutoProvisioning(ctx, "autoProvisioningResource", &securitycenter.AutoProvisioningArgs{
    	AutoProvision: pulumi.String("string"),
    })
    
    var autoProvisioningResource = new AutoProvisioning("autoProvisioningResource", AutoProvisioningArgs.builder()
        .autoProvision("string")
        .build());
    
    auto_provisioning_resource = azure.securitycenter.AutoProvisioning("autoProvisioningResource", auto_provision="string")
    
    const autoProvisioningResource = new azure.securitycenter.AutoProvisioning("autoProvisioningResource", {autoProvision: "string"});
    
    type: azure:securitycenter:AutoProvisioning
    properties:
        autoProvision: string
    

    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 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
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.80.0 published on Monday, Jun 10, 2024 by Pulumi