published on Thursday, Aug 13, 2026 by Pulumi
published on Thursday, Aug 13, 2026 by Pulumi
Describes the server vulnerability assessment details on a resource
Uses Azure REST API version 2020-01-01. In version 2.x of the Azure Native provider, it used 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 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/v3"
"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
})
}
pulumi {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_security_servervulnerabilityassessment" "serverVulnerabilityAssessment" {
resource_group_name = "rg1"
resource_name = "vm1"
resource_namespace = "Microsoft.Compute"
resource_type = "virtualMachines"
server_vulnerability_assessment = "default"
}
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.ArrayList;
import java.util.Arrays;
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 * 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",
});
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")
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.
resource "azure-native_security_server_vulnerability_assessment" "name" {
# resource properties
}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"),
})
resource "azure-native_security_server_vulnerability_assessment" "serverVulnerabilityAssessmentResource" {
lifecycle {
create_before_destroy = true
}
resource_group_name = "string"
resource_name = "string"
resource_namespace = "string"
resource_type = "string"
server_vulnerability_assessment = "string"
}
var serverVulnerabilityAssessmentResource = new com.pulumi.azurenative.security.ServerVulnerabilityAssessment("serverVulnerabilityAssessmentResource", com.pulumi.azurenative.security.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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServerVulnerabilityAssessment resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Resource
Namespace string - The parent resource provider namespace.
- Resource
Type string - The type of the resource.
- Server
Vulnerability stringAssessment - Name of the server vulnerability assessment resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the resource.
- Resource
Namespace string - The parent resource provider namespace.
- Resource
Type string - The type of the resource.
- Server
Vulnerability stringAssessment - Name of the server vulnerability assessment resource.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- resource_
name string - The name of the resource.
- resource_
namespace string - The parent resource provider namespace.
- resource_
type string - The type of the resource.
- server_
vulnerability_ stringassessment - Name of the server vulnerability assessment resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- resource
Namespace String - The parent resource provider namespace.
- resource
Type String - The type of the resource.
- server
Vulnerability StringAssessment - Name of the server vulnerability assessment resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the resource.
- resource
Namespace string - The parent resource provider namespace.
- resource
Type string - The type of the resource.
- server
Vulnerability stringAssessment - Name of the server vulnerability assessment resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the resource.
- resource_
namespace str - The parent resource provider namespace.
- resource_
type str - The type of the resource.
- server_
vulnerability_ strassessment - Name of the server vulnerability assessment resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the resource.
- resource
Namespace String - The parent resource provider namespace.
- resource
Type String - The type of the resource.
- server
Vulnerability StringAssessment - Name of the server vulnerability assessment resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerVulnerabilityAssessment resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioningState of the vulnerability assessment capability on the VM
- System
Data Pulumi.Azure Native. Security. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The provisioningState of the vulnerability assessment capability on the VM
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ stringversion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning_
state string - The provisioningState of the vulnerability assessment capability on the VM
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioningState of the vulnerability assessment capability on the VM
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The provisioningState of the vulnerability assessment capability on the VM
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - The provisioningState of the vulnerability assessment capability on the VM
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The provisioningState of the vulnerability assessment capability on the VM
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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
published on Thursday, Aug 13, 2026 by Pulumi