azure-native.sql.ServerVulnerabilityAssessment
Explore with Pulumi AI
A server vulnerability assessment. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2020-11-01-preview.
Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.
Example Usage
Create a server's vulnerability assessment with all parameters
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverVulnerabilityAssessment = new AzureNative.Sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", new()
{
RecurringScans = new AzureNative.Sql.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
{
EmailSubscriptionAdmins = true,
Emails = new[]
{
"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/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewServerVulnerabilityAssessment(ctx, "serverVulnerabilityAssessment", &sql.ServerVulnerabilityAssessmentArgs{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.ServerVulnerabilityAssessment;
import com.pulumi.azurenative.sql.ServerVulnerabilityAssessmentArgs;
import com.pulumi.azurenative.sql.inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs;
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()
.recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
.emailSubscriptionAdmins(true)
.emails(
"email1@mail.com",
"email2@mail.com")
.isEnabled(true)
.build())
.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
server_vulnerability_assessment = azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment",
recurring_scans={
"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 serverVulnerabilityAssessment = new azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", {
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:
serverVulnerabilityAssessment:
type: azure-native:sql:ServerVulnerabilityAssessment
properties:
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 server's vulnerability assessment with minimal parameters, when storageAccountAccessKey is specified
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverVulnerabilityAssessment = new AzureNative.Sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", new()
{
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/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewServerVulnerabilityAssessment(ctx, "serverVulnerabilityAssessment", &sql.ServerVulnerabilityAssessmentArgs{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.ServerVulnerabilityAssessment;
import com.pulumi.azurenative.sql.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("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
server_vulnerability_assessment = azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment",
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 serverVulnerabilityAssessment = new azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", {
resourceGroupName: "vulnerabilityaseessmenttest-4799",
serverName: "vulnerabilityaseessmenttest-6440",
storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
vulnerabilityAssessmentName: "default",
});
resources:
serverVulnerabilityAssessment:
type: azure-native:sql:ServerVulnerabilityAssessment
properties:
resourceGroupName: vulnerabilityaseessmenttest-4799
serverName: vulnerabilityaseessmenttest-6440
storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
vulnerabilityAssessmentName: default
Create a server's vulnerability assessment with minimal parameters, when storageContainerSasKey is specified
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serverVulnerabilityAssessment = new AzureNative.Sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", new()
{
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/sql/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sql.NewServerVulnerabilityAssessment(ctx, "serverVulnerabilityAssessment", &sql.ServerVulnerabilityAssessmentArgs{
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 com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.ServerVulnerabilityAssessment;
import com.pulumi.azurenative.sql.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("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
server_vulnerability_assessment = azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment",
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 serverVulnerabilityAssessment = new azure_native.sql.ServerVulnerabilityAssessment("serverVulnerabilityAssessment", {
resourceGroupName: "vulnerabilityaseessmenttest-4799",
serverName: "vulnerabilityaseessmenttest-6440",
storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
vulnerabilityAssessmentName: "default",
});
resources:
serverVulnerabilityAssessment:
type: azure-native:sql:ServerVulnerabilityAssessment
properties:
resourceGroupName: vulnerabilityaseessmenttest-4799
serverName: vulnerabilityaseessmenttest-6440
storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
vulnerabilityAssessmentName: 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,
server_name: Optional[str] = None,
storage_container_path: Optional[str] = None,
recurring_scans: Optional[VulnerabilityAssessmentRecurringScansPropertiesArgs] = None,
storage_account_access_key: Optional[str] = None,
storage_container_sas_key: Optional[str] = None,
vulnerability_assessment_name: 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:sql: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 azure_nativeServerVulnerabilityAssessmentResource = new AzureNative.Sql.ServerVulnerabilityAssessment("azure-nativeServerVulnerabilityAssessmentResource", new()
{
ResourceGroupName = "string",
ServerName = "string",
StorageContainerPath = "string",
RecurringScans = new AzureNative.Sql.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
{
EmailSubscriptionAdmins = false,
Emails = new[]
{
"string",
},
IsEnabled = false,
},
StorageAccountAccessKey = "string",
StorageContainerSasKey = "string",
VulnerabilityAssessmentName = "string",
});
example, err := sql.NewServerVulnerabilityAssessment(ctx, "azure-nativeServerVulnerabilityAssessmentResource", &sql.ServerVulnerabilityAssessmentArgs{
ResourceGroupName: pulumi.String("string"),
ServerName: pulumi.String("string"),
StorageContainerPath: pulumi.String("string"),
RecurringScans: &sql.VulnerabilityAssessmentRecurringScansPropertiesArgs{
EmailSubscriptionAdmins: pulumi.Bool(false),
Emails: pulumi.StringArray{
pulumi.String("string"),
},
IsEnabled: pulumi.Bool(false),
},
StorageAccountAccessKey: pulumi.String("string"),
StorageContainerSasKey: pulumi.String("string"),
VulnerabilityAssessmentName: pulumi.String("string"),
})
var azure_nativeServerVulnerabilityAssessmentResource = new ServerVulnerabilityAssessment("azure-nativeServerVulnerabilityAssessmentResource", ServerVulnerabilityAssessmentArgs.builder()
.resourceGroupName("string")
.serverName("string")
.storageContainerPath("string")
.recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
.emailSubscriptionAdmins(false)
.emails("string")
.isEnabled(false)
.build())
.storageAccountAccessKey("string")
.storageContainerSasKey("string")
.vulnerabilityAssessmentName("string")
.build());
azure_native_server_vulnerability_assessment_resource = azure_native.sql.ServerVulnerabilityAssessment("azure-nativeServerVulnerabilityAssessmentResource",
resource_group_name="string",
server_name="string",
storage_container_path="string",
recurring_scans={
"emailSubscriptionAdmins": False,
"emails": ["string"],
"isEnabled": False,
},
storage_account_access_key="string",
storage_container_sas_key="string",
vulnerability_assessment_name="string")
const azure_nativeServerVulnerabilityAssessmentResource = new azure_native.sql.ServerVulnerabilityAssessment("azure-nativeServerVulnerabilityAssessmentResource", {
resourceGroupName: "string",
serverName: "string",
storageContainerPath: "string",
recurringScans: {
emailSubscriptionAdmins: false,
emails: ["string"],
isEnabled: false,
},
storageAccountAccessKey: "string",
storageContainerSasKey: "string",
vulnerabilityAssessmentName: "string",
});
type: azure-native:sql:ServerVulnerabilityAssessment
properties:
recurringScans:
emailSubscriptionAdmins: false
emails:
- string
isEnabled: false
resourceGroupName: string
serverName: string
storageAccountAccessKey: string
storageContainerPath: string
storageContainerSasKey: string
vulnerabilityAssessmentName: 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 that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
- Server
Name string - The name of the server for which the vulnerability assessment is defined.
- Storage
Container stringPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Recurring
Scans Pulumi.Azure Native. Sql. Inputs. Vulnerability Assessment Recurring Scans Properties - The recurring scans settings
- Storage
Account stringAccess Key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- Storage
Container stringSas Key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- Vulnerability
Assessment stringName - The name of the vulnerability assessment.
- Resource
Group stringName - 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 string - The name of the server for which the vulnerability assessment is defined.
- Storage
Container stringPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- Recurring
Scans VulnerabilityAssessment Recurring Scans Properties Args - The recurring scans settings
- Storage
Account stringAccess Key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- Storage
Container stringSas Key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- Vulnerability
Assessment stringName - The name of the vulnerability assessment.
- resource
Group StringName - 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 String - The name of the server for which the vulnerability assessment is defined.
- storage
Container StringPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring
Scans VulnerabilityAssessment Recurring Scans Properties - The recurring scans settings
- storage
Account StringAccess Key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- storage
Container StringSas Key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- vulnerability
Assessment StringName - The name of the vulnerability assessment.
- resource
Group stringName - 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 string - The name of the server for which the vulnerability assessment is defined.
- storage
Container stringPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring
Scans VulnerabilityAssessment Recurring Scans Properties - The recurring scans settings
- storage
Account stringAccess Key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- storage
Container stringSas Key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- vulnerability
Assessment stringName - The name of the vulnerability assessment.
- resource_
group_ strname - 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 for which the vulnerability assessment is defined.
- storage_
container_ strpath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring_
scans VulnerabilityAssessment Recurring Scans Properties Args - The recurring scans settings
- storage_
account_ straccess_ key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- storage_
container_ strsas_ key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- vulnerability_
assessment_ strname - The name of the vulnerability assessment.
- resource
Group StringName - 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 String - The name of the server for which the vulnerability assessment is defined.
- storage
Container StringPath - A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
- recurring
Scans Property Map - The recurring scans settings
- storage
Account StringAccess Key - Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall
- storage
Container StringSas Key - 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. Applies only if the storage account is not behind a Vnet or a firewall
- vulnerability
Assessment StringName - The name of the vulnerability assessment.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServerVulnerabilityAssessment resource produces the following output properties:
Supporting Types
VulnerabilityAssessmentRecurringScansProperties, VulnerabilityAssessmentRecurringScansPropertiesArgs
- Email
Subscription boolAdmins - 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.
- Is
Enabled bool - Recurring scans state.
- Email
Subscription boolAdmins - 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.
- Is
Enabled bool - Recurring scans state.
- email
Subscription BooleanAdmins - 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.
- is
Enabled Boolean - Recurring scans state.
- email
Subscription booleanAdmins - 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.
- is
Enabled boolean - Recurring scans state.
- email_
subscription_ booladmins - 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.
- email
Subscription BooleanAdmins - 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.
- is
Enabled Boolean - Recurring scans state.
VulnerabilityAssessmentRecurringScansPropertiesResponse, VulnerabilityAssessmentRecurringScansPropertiesResponseArgs
- Email
Subscription boolAdmins - 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.
- Is
Enabled bool - Recurring scans state.
- Email
Subscription boolAdmins - 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.
- Is
Enabled bool - Recurring scans state.
- email
Subscription BooleanAdmins - 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.
- is
Enabled Boolean - Recurring scans state.
- email
Subscription booleanAdmins - 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.
- is
Enabled boolean - Recurring scans state.
- email_
subscription_ booladmins - 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.
- email
Subscription BooleanAdmins - 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.
- is
Enabled 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:ServerVulnerabilityAssessment default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0