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 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"
"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: "string",
ResourceName: "string",
ResourceNamespace: "string",
ResourceType: "string",
ServerVulnerabilityAssessment: "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:
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Resource
Name string - Name of the resource.
- Resource
Namespace string - The Namespace of the resource.
- Resource
Type string - The type of the resource.
- Server
Vulnerability stringAssessment - ServerVulnerabilityAssessment status. only a 'default' value is supported.
- Resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- Resource
Name string - Name of the resource.
- Resource
Namespace string - The Namespace of the resource.
- Resource
Type string - The type of the resource.
- Server
Vulnerability stringAssessment - ServerVulnerabilityAssessment status. only a 'default' value is supported.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- resource
Name String - Name of the resource.
- resource
Namespace String - The Namespace of the resource.
- resource
Type String - The type of the resource.
- server
Vulnerability StringAssessment - ServerVulnerabilityAssessment status. only a 'default' value is supported.
- resource
Group stringName - The name of the resource group within the user's subscription. The name is case insensitive.
- resource
Name string - Name of the resource.
- resource
Namespace string - The Namespace of the resource.
- resource
Type string - The type of the resource.
- server
Vulnerability stringAssessment - ServerVulnerabilityAssessment status. only a 'default' value is supported.
- resource_
group_ strname - 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_ strassessment - ServerVulnerabilityAssessment status. only a 'default' value is supported.
- resource
Group StringName - The name of the resource group within the user's subscription. The name is case insensitive.
- resource
Name String - Name of the resource.
- resource
Namespace String - The Namespace of the resource.
- resource
Type String - The type of the resource.
- server
Vulnerability StringAssessment - 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
- Provisioning
State 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
- Provisioning
State 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
- provisioning
State 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
- provisioning
State 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
- provisioning
State 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0