Azure Native

Pulumi Official
Package maintained by Pulumi
v1.64.1 published on Wednesday, May 18, 2022 by Pulumi

DatabaseVulnerabilityAssessment

A database vulnerability assessment. API Version: 2020-11-01-preview.

Example Usage

Create a database's vulnerability assessment with all parameters

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var databaseVulnerabilityAssessment = new AzureNative.Sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", new AzureNative.Sql.DatabaseVulnerabilityAssessmentArgs
        {
            DatabaseName = "testdb",
            RecurringScans = new AzureNative.Sql.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
            {
                EmailSubscriptionAdmins = true,
                Emails = 
                {
                    "email1@mail.com",
                    "email2@mail.com",
                },
                IsEnabled = true,
            },
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            ServerName = "vulnerabilityaseessmenttest-6440",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
        });
    }

}
package main

import (
	sql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/sql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewDatabaseVulnerabilityAssessment(ctx, "databaseVulnerabilityAssessment", &sql.DatabaseVulnerabilityAssessmentArgs{
			DatabaseName: pulumi.String("testdb"),
			RecurringScans: &sql.VulnerabilityAssessmentRecurringScansPropertiesArgs{
				EmailSubscriptionAdmins: pulumi.Bool(true),
				Emails: pulumi.StringArray{
					pulumi.String("email1@mail.com"),
					pulumi.String("email2@mail.com"),
				},
				IsEnabled: pulumi.Bool(true),
			},
			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
			ServerName:                  pulumi.String("vulnerabilityaseessmenttest-6440"),
			StorageAccountAccessKey:     pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			StorageContainerSasKey:      pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			VulnerabilityAssessmentName: pulumi.String("default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var databaseVulnerabilityAssessment = new DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", DatabaseVulnerabilityAssessmentArgs.builder()        
            .databaseName("testdb")
            .recurringScans(Map.ofEntries(
                Map.entry("emailSubscriptionAdmins", true),
                Map.entry("emails",                 
                    "email1@mail.com",
                    "email2@mail.com"),
                Map.entry("isEnabled", true)
            ))
            .resourceGroupName("vulnerabilityaseessmenttest-4799")
            .serverName("vulnerabilityaseessmenttest-6440")
            .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .vulnerabilityAssessmentName("default")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

database_vulnerability_assessment = azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment",
    database_name="testdb",
    recurring_scans=azure_native.sql.VulnerabilityAssessmentRecurringScansPropertiesArgs(
        email_subscription_admins=True,
        emails=[
            "email1@mail.com",
            "email2@mail.com",
        ],
        is_enabled=True,
    ),
    resource_group_name="vulnerabilityaseessmenttest-4799",
    server_name="vulnerabilityaseessmenttest-6440",
    storage_account_access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storage_container_sas_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerability_assessment_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const databaseVulnerabilityAssessment = new azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", {
    databaseName: "testdb",
    recurringScans: {
        emailSubscriptionAdmins: true,
        emails: [
            "email1@mail.com",
            "email2@mail.com",
        ],
        isEnabled: true,
    },
    resourceGroupName: "vulnerabilityaseessmenttest-4799",
    serverName: "vulnerabilityaseessmenttest-6440",
    storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerabilityAssessmentName: "default",
});
resources:
  databaseVulnerabilityAssessment:
    type: azure-native:sql:DatabaseVulnerabilityAssessment
    properties:
      databaseName: testdb
      recurringScans:
        emailSubscriptionAdmins: true
        emails:
          - email1@mail.com
          - email2@mail.com
        isEnabled: true
      resourceGroupName: vulnerabilityaseessmenttest-4799
      serverName: vulnerabilityaseessmenttest-6440
      storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      vulnerabilityAssessmentName: default

Create a database's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var databaseVulnerabilityAssessment = new AzureNative.Sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", new AzureNative.Sql.DatabaseVulnerabilityAssessmentArgs
        {
            DatabaseName = "testdb",
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            ServerName = "vulnerabilityaseessmenttest-6440",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            VulnerabilityAssessmentName = "default",
        });
    }

}
package main

import (
	sql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/sql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewDatabaseVulnerabilityAssessment(ctx, "databaseVulnerabilityAssessment", &sql.DatabaseVulnerabilityAssessmentArgs{
			DatabaseName:                pulumi.String("testdb"),
			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
			ServerName:                  pulumi.String("vulnerabilityaseessmenttest-6440"),
			StorageAccountAccessKey:     pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			VulnerabilityAssessmentName: pulumi.String("default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var databaseVulnerabilityAssessment = new DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", DatabaseVulnerabilityAssessmentArgs.builder()        
            .databaseName("testdb")
            .resourceGroupName("vulnerabilityaseessmenttest-4799")
            .serverName("vulnerabilityaseessmenttest-6440")
            .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .vulnerabilityAssessmentName("default")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

database_vulnerability_assessment = azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment",
    database_name="testdb",
    resource_group_name="vulnerabilityaseessmenttest-4799",
    server_name="vulnerabilityaseessmenttest-6440",
    storage_account_access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    vulnerability_assessment_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const databaseVulnerabilityAssessment = new azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", {
    databaseName: "testdb",
    resourceGroupName: "vulnerabilityaseessmenttest-4799",
    serverName: "vulnerabilityaseessmenttest-6440",
    storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    vulnerabilityAssessmentName: "default",
});
resources:
  databaseVulnerabilityAssessment:
    type: azure-native:sql:DatabaseVulnerabilityAssessment
    properties:
      databaseName: testdb
      resourceGroupName: vulnerabilityaseessmenttest-4799
      serverName: vulnerabilityaseessmenttest-6440
      storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      vulnerabilityAssessmentName: default

Create a database's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var databaseVulnerabilityAssessment = new AzureNative.Sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", new AzureNative.Sql.DatabaseVulnerabilityAssessmentArgs
        {
            DatabaseName = "testdb",
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            ServerName = "vulnerabilityaseessmenttest-6440",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
        });
    }

}
package main

import (
	sql "github.com/pulumi/pulumi-azure-native/sdk/go/azure/sql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewDatabaseVulnerabilityAssessment(ctx, "databaseVulnerabilityAssessment", &sql.DatabaseVulnerabilityAssessmentArgs{
			DatabaseName:                pulumi.String("testdb"),
			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
			ServerName:                  pulumi.String("vulnerabilityaseessmenttest-6440"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			StorageContainerSasKey:      pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			VulnerabilityAssessmentName: pulumi.String("default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var databaseVulnerabilityAssessment = new DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", DatabaseVulnerabilityAssessmentArgs.builder()        
            .databaseName("testdb")
            .resourceGroupName("vulnerabilityaseessmenttest-4799")
            .serverName("vulnerabilityaseessmenttest-6440")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .vulnerabilityAssessmentName("default")
            .build());

        }
}
import pulumi
import pulumi_azure_native as azure_native

database_vulnerability_assessment = azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment",
    database_name="testdb",
    resource_group_name="vulnerabilityaseessmenttest-4799",
    server_name="vulnerabilityaseessmenttest-6440",
    storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storage_container_sas_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerability_assessment_name="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const databaseVulnerabilityAssessment = new azure_native.sql.DatabaseVulnerabilityAssessment("databaseVulnerabilityAssessment", {
    databaseName: "testdb",
    resourceGroupName: "vulnerabilityaseessmenttest-4799",
    serverName: "vulnerabilityaseessmenttest-6440",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerabilityAssessmentName: "default",
});
resources:
  databaseVulnerabilityAssessment:
    type: azure-native:sql:DatabaseVulnerabilityAssessment
    properties:
      databaseName: testdb
      resourceGroupName: vulnerabilityaseessmenttest-4799
      serverName: vulnerabilityaseessmenttest-6440
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      vulnerabilityAssessmentName: default

Create a DatabaseVulnerabilityAssessment Resource

new DatabaseVulnerabilityAssessment(name: string, args: DatabaseVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);
@overload
def DatabaseVulnerabilityAssessment(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    database_name: Optional[str] = None,
                                    recurring_scans: Optional[VulnerabilityAssessmentRecurringScansPropertiesArgs] = None,
                                    resource_group_name: Optional[str] = None,
                                    server_name: Optional[str] = None,
                                    storage_account_access_key: Optional[str] = None,
                                    storage_container_path: Optional[str] = None,
                                    storage_container_sas_key: Optional[str] = None,
                                    vulnerability_assessment_name: Optional[str] = None)
@overload
def DatabaseVulnerabilityAssessment(resource_name: str,
                                    args: DatabaseVulnerabilityAssessmentArgs,
                                    opts: Optional[ResourceOptions] = None)
func NewDatabaseVulnerabilityAssessment(ctx *Context, name string, args DatabaseVulnerabilityAssessmentArgs, opts ...ResourceOption) (*DatabaseVulnerabilityAssessment, error)
public DatabaseVulnerabilityAssessment(string name, DatabaseVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)
public DatabaseVulnerabilityAssessment(String name, DatabaseVulnerabilityAssessmentArgs args)
public DatabaseVulnerabilityAssessment(String name, DatabaseVulnerabilityAssessmentArgs args, CustomResourceOptions options)
type: azure-native:sql:DatabaseVulnerabilityAssessment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DatabaseVulnerabilityAssessmentArgs
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 DatabaseVulnerabilityAssessmentArgs
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 DatabaseVulnerabilityAssessmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DatabaseVulnerabilityAssessmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DatabaseVulnerabilityAssessmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DatabaseName string

The name of the database for which the vulnerability assessment is defined.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

RecurringScans Pulumi.AzureNative.Sql.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs

The recurring scans settings

StorageAccountAccessKey string

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

StorageContainerPath string

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

StorageContainerSasKey string

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

VulnerabilityAssessmentName string

The name of the vulnerability assessment.

DatabaseName string

The name of the database for which the vulnerability assessment is defined.

ResourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

ServerName string

The name of the server.

RecurringScans VulnerabilityAssessmentRecurringScansPropertiesArgs

The recurring scans settings

StorageAccountAccessKey string

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

StorageContainerPath string

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

StorageContainerSasKey string

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

VulnerabilityAssessmentName string

The name of the vulnerability assessment.

databaseName String

The name of the database for which the vulnerability assessment is defined.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

recurringScans VulnerabilityAssessmentRecurringScansPropertiesArgs

The recurring scans settings

storageAccountAccessKey String

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

storageContainerPath String

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

storageContainerSasKey String

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

vulnerabilityAssessmentName String

The name of the vulnerability assessment.

databaseName string

The name of the database for which the vulnerability assessment is defined.

resourceGroupName string

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName string

The name of the server.

recurringScans VulnerabilityAssessmentRecurringScansPropertiesArgs

The recurring scans settings

storageAccountAccessKey string

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

storageContainerPath string

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

storageContainerSasKey string

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

vulnerabilityAssessmentName string

The name of the vulnerability assessment.

database_name str

The name of the database for which the vulnerability assessment is defined.

resource_group_name str

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

server_name str

The name of the server.

recurring_scans VulnerabilityAssessmentRecurringScansPropertiesArgs

The recurring scans settings

storage_account_access_key str

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

storage_container_path str

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

storage_container_sas_key str

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

vulnerability_assessment_name str

The name of the vulnerability assessment.

databaseName String

The name of the database for which the vulnerability assessment is defined.

resourceGroupName String

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

serverName String

The name of the server.

recurringScans Property Map

The recurring scans settings

storageAccountAccessKey String

Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required.

storageContainerPath String

A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/). It is required if server level vulnerability assessment policy doesn't set

storageContainerSasKey String

A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.

vulnerabilityAssessmentName String

The name of the vulnerability assessment.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Type string

Resource type.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Type string

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

type string

Resource type.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

type str

Resource type.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type.

Supporting Types

VulnerabilityAssessmentRecurringScansProperties

EmailSubscriptionAdmins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

Emails List<string>

Specifies an array of e-mail addresses to which the scan notification is sent.

IsEnabled bool

Recurring scans state.

EmailSubscriptionAdmins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

Emails []string

Specifies an array of e-mail addresses to which the scan notification is sent.

IsEnabled bool

Recurring scans state.

emailSubscriptionAdmins Boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails List

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled Boolean

Recurring scans state.

emailSubscriptionAdmins boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails string[]

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled boolean

Recurring scans state.

email_subscription_admins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails Sequence[str]

Specifies an array of e-mail addresses to which the scan notification is sent.

is_enabled bool

Recurring scans state.

emailSubscriptionAdmins Boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails List

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled Boolean

Recurring scans state.

VulnerabilityAssessmentRecurringScansPropertiesResponse

EmailSubscriptionAdmins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

Emails List<string>

Specifies an array of e-mail addresses to which the scan notification is sent.

IsEnabled bool

Recurring scans state.

EmailSubscriptionAdmins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

Emails []string

Specifies an array of e-mail addresses to which the scan notification is sent.

IsEnabled bool

Recurring scans state.

emailSubscriptionAdmins Boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails List

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled Boolean

Recurring scans state.

emailSubscriptionAdmins boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails string[]

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled boolean

Recurring scans state.

email_subscription_admins bool

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails Sequence[str]

Specifies an array of e-mail addresses to which the scan notification is sent.

is_enabled bool

Recurring scans state.

emailSubscriptionAdmins Boolean

Specifies that the schedule scan notification will be is sent to the subscription administrators.

emails List

Specifies an array of e-mail addresses to which the scan notification is sent.

isEnabled Boolean

Recurring scans state.

Import

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

$ pulumi import azure-native:sql:DatabaseVulnerabilityAssessment default /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Sql/servers/vulnerabilityaseessmenttest-6440/databases/testdb/vulnerabilityAssessments/default 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0