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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.securitycenter.ServerVulnerabilityAssessmentsSetting

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages the Server Vulnerability Assesments Setting for Azure Security Center.

    NOTE: This resource requires the Owner permission on the Subscription.

    NOTE: Deletion of this resource disables the setting.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", {vulnerabilityAssessmentProvider: "MdeTvm"});
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.securitycenter.ServerVulnerabilityAssessmentsSetting("example", vulnerability_assessment_provider="MdeTvm")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securitycenter.NewServerVulnerabilityAssessmentsSetting(ctx, "example", &securitycenter.ServerVulnerabilityAssessmentsSettingArgs{
    			VulnerabilityAssessmentProvider: pulumi.String("MdeTvm"),
    		})
    		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.ServerVulnerabilityAssessmentsSetting("example", new()
        {
            VulnerabilityAssessmentProvider = "MdeTvm",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSetting;
    import com.pulumi.azure.securitycenter.ServerVulnerabilityAssessmentsSettingArgs;
    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 ServerVulnerabilityAssessmentsSetting("example", ServerVulnerabilityAssessmentsSettingArgs.builder()
                .vulnerabilityAssessmentProvider("MdeTvm")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
        properties:
          vulnerabilityAssessmentProvider: MdeTvm
    

    Create ServerVulnerabilityAssessmentsSetting Resource

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

    Constructor syntax

    new ServerVulnerabilityAssessmentsSetting(name: string, args: ServerVulnerabilityAssessmentsSettingArgs, opts?: CustomResourceOptions);
    @overload
    def ServerVulnerabilityAssessmentsSetting(resource_name: str,
                                              args: ServerVulnerabilityAssessmentsSettingArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerVulnerabilityAssessmentsSetting(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              vulnerability_assessment_provider: Optional[str] = None)
    func NewServerVulnerabilityAssessmentsSetting(ctx *Context, name string, args ServerVulnerabilityAssessmentsSettingArgs, opts ...ResourceOption) (*ServerVulnerabilityAssessmentsSetting, error)
    public ServerVulnerabilityAssessmentsSetting(string name, ServerVulnerabilityAssessmentsSettingArgs args, CustomResourceOptions? opts = null)
    public ServerVulnerabilityAssessmentsSetting(String name, ServerVulnerabilityAssessmentsSettingArgs args)
    public ServerVulnerabilityAssessmentsSetting(String name, ServerVulnerabilityAssessmentsSettingArgs args, CustomResourceOptions options)
    
    type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
    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 ServerVulnerabilityAssessmentsSettingArgs
    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 ServerVulnerabilityAssessmentsSettingArgs
    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 ServerVulnerabilityAssessmentsSettingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerVulnerabilityAssessmentsSettingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerVulnerabilityAssessmentsSettingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var serverVulnerabilityAssessmentsSettingResource = new Azure.SecurityCenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", new()
    {
        VulnerabilityAssessmentProvider = "string",
    });
    
    example, err := securitycenter.NewServerVulnerabilityAssessmentsSetting(ctx, "serverVulnerabilityAssessmentsSettingResource", &securitycenter.ServerVulnerabilityAssessmentsSettingArgs{
    	VulnerabilityAssessmentProvider: pulumi.String("string"),
    })
    
    var serverVulnerabilityAssessmentsSettingResource = new ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", ServerVulnerabilityAssessmentsSettingArgs.builder()
        .vulnerabilityAssessmentProvider("string")
        .build());
    
    server_vulnerability_assessments_setting_resource = azure.securitycenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", vulnerability_assessment_provider="string")
    
    const serverVulnerabilityAssessmentsSettingResource = new azure.securitycenter.ServerVulnerabilityAssessmentsSetting("serverVulnerabilityAssessmentsSettingResource", {vulnerabilityAssessmentProvider: "string"});
    
    type: azure:securitycenter:ServerVulnerabilityAssessmentsSetting
    properties:
        vulnerabilityAssessmentProvider: string
    

    ServerVulnerabilityAssessmentsSetting Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ServerVulnerabilityAssessmentsSetting resource accepts the following input properties:

    VulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    VulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider String
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerability_assessment_provider str
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider String
    The vulnerability assesment provider to use. The only possible values is MdeTvm.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServerVulnerabilityAssessmentsSetting 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 ServerVulnerabilityAssessmentsSetting Resource

    Get an existing ServerVulnerabilityAssessmentsSetting 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?: ServerVulnerabilityAssessmentsSettingState, opts?: CustomResourceOptions): ServerVulnerabilityAssessmentsSetting
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            vulnerability_assessment_provider: Optional[str] = None) -> ServerVulnerabilityAssessmentsSetting
    func GetServerVulnerabilityAssessmentsSetting(ctx *Context, name string, id IDInput, state *ServerVulnerabilityAssessmentsSettingState, opts ...ResourceOption) (*ServerVulnerabilityAssessmentsSetting, error)
    public static ServerVulnerabilityAssessmentsSetting Get(string name, Input<string> id, ServerVulnerabilityAssessmentsSettingState? state, CustomResourceOptions? opts = null)
    public static ServerVulnerabilityAssessmentsSetting get(String name, Output<String> id, ServerVulnerabilityAssessmentsSettingState 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:
    VulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    VulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider String
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider string
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerability_assessment_provider str
    The vulnerability assesment provider to use. The only possible values is MdeTvm.
    vulnerabilityAssessmentProvider String
    The vulnerability assesment provider to use. The only possible values is MdeTvm.

    Import

    The setting can be imported using the resource id, e.g.

    $ pulumi import azure:securitycenter/serverVulnerabilityAssessmentsSetting:ServerVulnerabilityAssessmentsSetting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/AzureServersSetting
    

    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 v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi