azure-native.security.ServerVulnerabilityAssessment

Explore with Pulumi AI

Describes the server vulnerability assessment details on a resource API Version: 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 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/go/azure/security"
	"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

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

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.

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/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/rg1/providers/Microsoft.Compute/virtualMachines/vm1/providers/Microsoft.Security/serverVulnerabilityAssessments/default 

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0