1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. ServerVulnerabilityAssessment
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.security.ServerVulnerabilityAssessment

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    Describes the server vulnerability assessment details on a resource Azure REST API version: 2020-01-01. Prior API version in Azure Native 1.x: 2020-01-01.

    Example Usage

    Create a server vulnerability assessments on a resource. Only 'default' resource is supported. Once creating the resource, the server will be onboarded to vulnerability assessment by Microsoft.Security

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var serverVulnerabilityAssessment = new AzureNative.Security.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", new()
        {
            ResourceGroupName = "rg1",
            ResourceName = "vm1",
            ResourceNamespace = "Microsoft.Compute",
            ResourceType = "virtualMachines",
            ServerVulnerabilityAssessment = "default",
        });
    
    });
    
    package main
    
    import (
    	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := security.NewServerVulnerabilityAssessment(ctx, "serverVulnerabilityAssessment", &security.ServerVulnerabilityAssessmentArgs{
    			ResourceGroupName:             pulumi.String("rg1"),
    			ResourceName:                  pulumi.String("vm1"),
    			ResourceNamespace:             pulumi.String("Microsoft.Compute"),
    			ResourceType:                  pulumi.String("virtualMachines"),
    			ServerVulnerabilityAssessment: pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.security.ServerVulnerabilityAssessment;
    import com.pulumi.azurenative.security.ServerVulnerabilityAssessmentArgs;
    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 serverVulnerabilityAssessment = new ServerVulnerabilityAssessment("serverVulnerabilityAssessment", ServerVulnerabilityAssessmentArgs.builder()
                .resourceGroupName("rg1")
                .resourceName("vm1")
                .resourceNamespace("Microsoft.Compute")
                .resourceType("virtualMachines")
                .serverVulnerabilityAssessment("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    server_vulnerability_assessment = azure_native.security.ServerVulnerabilityAssessment("serverVulnerabilityAssessment",
        resource_group_name="rg1",
        resource_name_="vm1",
        resource_namespace="Microsoft.Compute",
        resource_type="virtualMachines",
        server_vulnerability_assessment="default")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const serverVulnerabilityAssessment = new azure_native.security.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", {
        resourceGroupName: "rg1",
        resourceName: "vm1",
        resourceNamespace: "Microsoft.Compute",
        resourceType: "virtualMachines",
        serverVulnerabilityAssessment: "default",
    });
    
    resources:
      serverVulnerabilityAssessment:
        type: azure-native:security:ServerVulnerabilityAssessment
        properties:
          resourceGroupName: rg1
          resourceName: vm1
          resourceNamespace: Microsoft.Compute
          resourceType: virtualMachines
          serverVulnerabilityAssessment: default
    

    Create ServerVulnerabilityAssessment Resource

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

    Constructor syntax

    new ServerVulnerabilityAssessment(name: string, args: ServerVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);
    @overload
    def ServerVulnerabilityAssessment(resource_name: str,
                                      args: ServerVulnerabilityAssessmentArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerVulnerabilityAssessment(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      resource_group_name: Optional[str] = None,
                                      resource_name_: Optional[str] = None,
                                      resource_namespace: Optional[str] = None,
                                      resource_type: Optional[str] = None,
                                      server_vulnerability_assessment: Optional[str] = None)
    func NewServerVulnerabilityAssessment(ctx *Context, name string, args ServerVulnerabilityAssessmentArgs, opts ...ResourceOption) (*ServerVulnerabilityAssessment, error)
    public ServerVulnerabilityAssessment(string name, ServerVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)
    public ServerVulnerabilityAssessment(String name, ServerVulnerabilityAssessmentArgs args)
    public ServerVulnerabilityAssessment(String name, ServerVulnerabilityAssessmentArgs args, CustomResourceOptions options)
    
    type: azure-native:security:ServerVulnerabilityAssessment
    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 ServerVulnerabilityAssessmentArgs
    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 ServerVulnerabilityAssessmentArgs
    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 ServerVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerVulnerabilityAssessmentArgs
    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 serverVulnerabilityAssessmentResource = new AzureNative.Security.ServerVulnerabilityAssessment("serverVulnerabilityAssessmentResource", new()
    {
        ResourceGroupName = "string",
        ResourceName = "string",
        ResourceNamespace = "string",
        ResourceType = "string",
        ServerVulnerabilityAssessment = "string",
    });
    
    example, err := security.NewServerVulnerabilityAssessment(ctx, "serverVulnerabilityAssessmentResource", &security.ServerVulnerabilityAssessmentArgs{
    	ResourceGroupName:             pulumi.String("string"),
    	ResourceName:                  pulumi.String("string"),
    	ResourceNamespace:             pulumi.String("string"),
    	ResourceType:                  pulumi.String("string"),
    	ServerVulnerabilityAssessment: pulumi.String("string"),
    })
    
    var serverVulnerabilityAssessmentResource = new ServerVulnerabilityAssessment("serverVulnerabilityAssessmentResource", ServerVulnerabilityAssessmentArgs.builder()
        .resourceGroupName("string")
        .resourceName("string")
        .resourceNamespace("string")
        .resourceType("string")
        .serverVulnerabilityAssessment("string")
        .build());
    
    server_vulnerability_assessment_resource = azure_native.security.ServerVulnerabilityAssessment("serverVulnerabilityAssessmentResource",
        resource_group_name="string",
        resource_name_="string",
        resource_namespace="string",
        resource_type="string",
        server_vulnerability_assessment="string")
    
    const serverVulnerabilityAssessmentResource = new azure_native.security.ServerVulnerabilityAssessment("serverVulnerabilityAssessmentResource", {
        resourceGroupName: "string",
        resourceName: "string",
        resourceNamespace: "string",
        resourceType: "string",
        serverVulnerabilityAssessment: "string",
    });
    
    type: azure-native:security:ServerVulnerabilityAssessment
    properties:
        resourceGroupName: string
        resourceName: string
        resourceNamespace: string
        resourceType: string
        serverVulnerabilityAssessment: string
    

    ServerVulnerabilityAssessment 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 ServerVulnerabilityAssessment resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    ResourceName string
    Name of the resource.
    ResourceNamespace string
    The Namespace of the resource.
    ResourceType string
    The type of the resource.
    ServerVulnerabilityAssessment string
    ServerVulnerabilityAssessment status. only a 'default' value is supported.
    ResourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    ResourceName string
    Name of the resource.
    ResourceNamespace string
    The Namespace of the resource.
    ResourceType string
    The type of the resource.
    ServerVulnerabilityAssessment string
    ServerVulnerabilityAssessment status. only a 'default' value is supported.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    resourceName String
    Name of the resource.
    resourceNamespace String
    The Namespace of the resource.
    resourceType String
    The type of the resource.
    serverVulnerabilityAssessment String
    ServerVulnerabilityAssessment status. only a 'default' value is supported.
    resourceGroupName string
    The name of the resource group within the user's subscription. The name is case insensitive.
    resourceName string
    Name of the resource.
    resourceNamespace string
    The Namespace of the resource.
    resourceType string
    The type of the resource.
    serverVulnerabilityAssessment string
    ServerVulnerabilityAssessment status. only a 'default' value is supported.
    resource_group_name str
    The name of the resource group within the user's subscription. The name is case insensitive.
    resource_name str
    Name of the resource.
    resource_namespace str
    The Namespace of the resource.
    resource_type str
    The type of the resource.
    server_vulnerability_assessment str
    ServerVulnerabilityAssessment status. only a 'default' value is supported.
    resourceGroupName String
    The name of the resource group within the user's subscription. The name is case insensitive.
    resourceName String
    Name of the resource.
    resourceNamespace String
    The Namespace of the resource.
    resourceType String
    The type of the resource.
    serverVulnerabilityAssessment String
    ServerVulnerabilityAssessment status. only a 'default' value is supported.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    ProvisioningState string
    The provisioningState of the vulnerability assessment capability on the VM
    Type string
    Resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    ProvisioningState string
    The provisioningState of the vulnerability assessment capability on the VM
    Type string
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    provisioningState String
    The provisioningState of the vulnerability assessment capability on the VM
    type String
    Resource type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    provisioningState string
    The provisioningState of the vulnerability assessment capability on the VM
    type string
    Resource type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    provisioning_state str
    The provisioningState of the vulnerability assessment capability on the VM
    type str
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    provisioningState String
    The provisioningState of the vulnerability assessment capability on the VM
    type String
    Resource type

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:security:ServerVulnerabilityAssessment default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/serverVulnerabilityAssessments/{serverVulnerabilityAssessment} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi