1. Packages
  2. Azure Native v2
  3. API Docs
  4. synapse
  5. WorkspaceManagedSqlServerVulnerabilityAssessment
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment

Explore with Pulumi AI

A server vulnerability assessment. Azure REST API version: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.

Other available API versions: 2021-06-01-preview.

Example Usage

Create or Update a workspace managed sql 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 workspaceManagedSqlServerVulnerabilityAssessment = new AzureNative.Synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", new()
    {
        RecurringScans = new AzureNative.Synapse.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
        {
            EmailSubscriptionAdmins = true,
            Emails = new[]
            {
                "email1@mail.com",
                "email2@mail.com",
            },
            IsEnabled = true,
        },
        ResourceGroupName = "wsg-7398",
        StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        VulnerabilityAssessmentName = "default",
        WorkspaceName = "testWorkspace",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewWorkspaceManagedSqlServerVulnerabilityAssessment(ctx, "workspaceManagedSqlServerVulnerabilityAssessment", &synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs{
			RecurringScans: &synapse.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("wsg-7398"),
			StorageAccountAccessKey:     pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			StorageContainerSasKey:      pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			VulnerabilityAssessmentName: pulumi.String("default"),
			WorkspaceName:               pulumi.String("testWorkspace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs;
import com.pulumi.azurenative.synapse.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 workspaceManagedSqlServerVulnerabilityAssessment = new WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", WorkspaceManagedSqlServerVulnerabilityAssessmentArgs.builder()
            .recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
                .emailSubscriptionAdmins(true)
                .emails(                
                    "email1@mail.com",
                    "email2@mail.com")
                .isEnabled(true)
                .build())
            .resourceGroupName("wsg-7398")
            .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .vulnerabilityAssessmentName("default")
            .workspaceName("testWorkspace")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const workspaceManagedSqlServerVulnerabilityAssessment = new azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", {
    recurringScans: {
        emailSubscriptionAdmins: true,
        emails: [
            "email1@mail.com",
            "email2@mail.com",
        ],
        isEnabled: true,
    },
    resourceGroupName: "wsg-7398",
    storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerabilityAssessmentName: "default",
    workspaceName: "testWorkspace",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workspace_managed_sql_server_vulnerability_assessment = azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment",
    recurring_scans={
        "email_subscription_admins": True,
        "emails": [
            "email1@mail.com",
            "email2@mail.com",
        ],
        "is_enabled": True,
    },
    resource_group_name="wsg-7398",
    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",
    workspace_name="testWorkspace")
Copy
resources:
  workspaceManagedSqlServerVulnerabilityAssessment:
    type: azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment
    properties:
      recurringScans:
        emailSubscriptionAdmins: true
        emails:
          - email1@mail.com
          - email2@mail.com
        isEnabled: true
      resourceGroupName: wsg-7398
      storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      vulnerabilityAssessmentName: default
      workspaceName: testWorkspace
Copy

Create or Update a workspace managed sql 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 workspaceManagedSqlServerVulnerabilityAssessment = new AzureNative.Synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", new()
    {
        ResourceGroupName = "wsg-7398",
        StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        VulnerabilityAssessmentName = "default",
        WorkspaceName = "testWorkspace",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewWorkspaceManagedSqlServerVulnerabilityAssessment(ctx, "workspaceManagedSqlServerVulnerabilityAssessment", &synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs{
			ResourceGroupName:           pulumi.String("wsg-7398"),
			StorageAccountAccessKey:     pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			VulnerabilityAssessmentName: pulumi.String("default"),
			WorkspaceName:               pulumi.String("testWorkspace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs;
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 workspaceManagedSqlServerVulnerabilityAssessment = new WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", WorkspaceManagedSqlServerVulnerabilityAssessmentArgs.builder()
            .resourceGroupName("wsg-7398")
            .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .vulnerabilityAssessmentName("default")
            .workspaceName("testWorkspace")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const workspaceManagedSqlServerVulnerabilityAssessment = new azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", {
    resourceGroupName: "wsg-7398",
    storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    vulnerabilityAssessmentName: "default",
    workspaceName: "testWorkspace",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workspace_managed_sql_server_vulnerability_assessment = azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment",
    resource_group_name="wsg-7398",
    storage_account_access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    vulnerability_assessment_name="default",
    workspace_name="testWorkspace")
Copy
resources:
  workspaceManagedSqlServerVulnerabilityAssessment:
    type: azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment
    properties:
      resourceGroupName: wsg-7398
      storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      vulnerabilityAssessmentName: default
      workspaceName: testWorkspace
Copy

Create or Update a workspace managed sql 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 workspaceManagedSqlServerVulnerabilityAssessment = new AzureNative.Synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", new()
    {
        ResourceGroupName = "wsg-7398",
        StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        VulnerabilityAssessmentName = "default",
        WorkspaceName = "testWorkspace",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := synapse.NewWorkspaceManagedSqlServerVulnerabilityAssessment(ctx, "workspaceManagedSqlServerVulnerabilityAssessment", &synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs{
			ResourceGroupName:           pulumi.String("wsg-7398"),
			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
			StorageContainerSasKey:      pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
			VulnerabilityAssessmentName: pulumi.String("default"),
			WorkspaceName:               pulumi.String("testWorkspace"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment;
import com.pulumi.azurenative.synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs;
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 workspaceManagedSqlServerVulnerabilityAssessment = new WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", WorkspaceManagedSqlServerVulnerabilityAssessmentArgs.builder()
            .resourceGroupName("wsg-7398")
            .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
            .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
            .vulnerabilityAssessmentName("default")
            .workspaceName("testWorkspace")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const workspaceManagedSqlServerVulnerabilityAssessment = new azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment", {
    resourceGroupName: "wsg-7398",
    storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerabilityAssessmentName: "default",
    workspaceName: "testWorkspace",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

workspace_managed_sql_server_vulnerability_assessment = azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessment",
    resource_group_name="wsg-7398",
    storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
    storage_container_sas_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    vulnerability_assessment_name="default",
    workspace_name="testWorkspace")
Copy
resources:
  workspaceManagedSqlServerVulnerabilityAssessment:
    type: azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment
    properties:
      resourceGroupName: wsg-7398
      storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
      storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      vulnerabilityAssessmentName: default
      workspaceName: testWorkspace
Copy

Create WorkspaceManagedSqlServerVulnerabilityAssessment Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new WorkspaceManagedSqlServerVulnerabilityAssessment(name: string, args: WorkspaceManagedSqlServerVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);
@overload
def WorkspaceManagedSqlServerVulnerabilityAssessment(resource_name: str,
                                                     args: WorkspaceManagedSqlServerVulnerabilityAssessmentArgs,
                                                     opts: Optional[ResourceOptions] = None)

@overload
def WorkspaceManagedSqlServerVulnerabilityAssessment(resource_name: str,
                                                     opts: Optional[ResourceOptions] = None,
                                                     resource_group_name: Optional[str] = None,
                                                     storage_container_path: Optional[str] = None,
                                                     workspace_name: 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 NewWorkspaceManagedSqlServerVulnerabilityAssessment(ctx *Context, name string, args WorkspaceManagedSqlServerVulnerabilityAssessmentArgs, opts ...ResourceOption) (*WorkspaceManagedSqlServerVulnerabilityAssessment, error)
public WorkspaceManagedSqlServerVulnerabilityAssessment(string name, WorkspaceManagedSqlServerVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)
public WorkspaceManagedSqlServerVulnerabilityAssessment(String name, WorkspaceManagedSqlServerVulnerabilityAssessmentArgs args)
public WorkspaceManagedSqlServerVulnerabilityAssessment(String name, WorkspaceManagedSqlServerVulnerabilityAssessmentArgs args, CustomResourceOptions options)
type: azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceManagedSqlServerVulnerabilityAssessmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. WorkspaceManagedSqlServerVulnerabilityAssessmentArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceManagedSqlServerVulnerabilityAssessmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. WorkspaceManagedSqlServerVulnerabilityAssessmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WorkspaceManagedSqlServerVulnerabilityAssessmentArgs
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 workspaceManagedSqlServerVulnerabilityAssessmentResource = new AzureNative.Synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessmentResource", new()
{
    ResourceGroupName = "string",
    StorageContainerPath = "string",
    WorkspaceName = "string",
    RecurringScans = 
    {
        { "emailSubscriptionAdmins", false },
        { "emails", new[]
        {
            "string",
        } },
        { "isEnabled", false },
    },
    StorageAccountAccessKey = "string",
    StorageContainerSasKey = "string",
    VulnerabilityAssessmentName = "string",
});
Copy
example, err := synapse.NewWorkspaceManagedSqlServerVulnerabilityAssessment(ctx, "workspaceManagedSqlServerVulnerabilityAssessmentResource", &synapse.WorkspaceManagedSqlServerVulnerabilityAssessmentArgs{
	ResourceGroupName:    "string",
	StorageContainerPath: "string",
	WorkspaceName:        "string",
	RecurringScans: map[string]interface{}{
		"emailSubscriptionAdmins": false,
		"emails": []string{
			"string",
		},
		"isEnabled": false,
	},
	StorageAccountAccessKey:     "string",
	StorageContainerSasKey:      "string",
	VulnerabilityAssessmentName: "string",
})
Copy
var workspaceManagedSqlServerVulnerabilityAssessmentResource = new WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessmentResource", WorkspaceManagedSqlServerVulnerabilityAssessmentArgs.builder()
    .resourceGroupName("string")
    .storageContainerPath("string")
    .workspaceName("string")
    .recurringScans(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .storageAccountAccessKey("string")
    .storageContainerSasKey("string")
    .vulnerabilityAssessmentName("string")
    .build());
Copy
workspace_managed_sql_server_vulnerability_assessment_resource = azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessmentResource",
    resource_group_name=string,
    storage_container_path=string,
    workspace_name=string,
    recurring_scans={
        emailSubscriptionAdmins: False,
        emails: [string],
        isEnabled: False,
    },
    storage_account_access_key=string,
    storage_container_sas_key=string,
    vulnerability_assessment_name=string)
Copy
const workspaceManagedSqlServerVulnerabilityAssessmentResource = new azure_native.synapse.WorkspaceManagedSqlServerVulnerabilityAssessment("workspaceManagedSqlServerVulnerabilityAssessmentResource", {
    resourceGroupName: "string",
    storageContainerPath: "string",
    workspaceName: "string",
    recurringScans: {
        emailSubscriptionAdmins: false,
        emails: ["string"],
        isEnabled: false,
    },
    storageAccountAccessKey: "string",
    storageContainerSasKey: "string",
    vulnerabilityAssessmentName: "string",
});
Copy
type: azure-native:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment
properties:
    recurringScans:
        emailSubscriptionAdmins: false
        emails:
            - string
        isEnabled: false
    resourceGroupName: string
    storageAccountAccessKey: string
    storageContainerPath: string
    storageContainerSasKey: string
    vulnerabilityAssessmentName: string
    workspaceName: string
Copy

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

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StorageContainerPath
This property is required.
Changes to this property will trigger replacement.
string
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
RecurringScans Pulumi.AzureNative.Synapse.Inputs.VulnerabilityAssessmentRecurringScansProperties
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.
StorageContainerSasKey string
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
VulnerabilityAssessmentName Changes to this property will trigger replacement. string
The name of the vulnerability assessment.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
StorageContainerPath
This property is required.
Changes to this property will trigger replacement.
string
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
WorkspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
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.
StorageContainerSasKey string
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
VulnerabilityAssessmentName Changes to this property will trigger replacement. string
The name of the vulnerability assessment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
storageContainerPath
This property is required.
Changes to this property will trigger replacement.
String
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
recurringScans VulnerabilityAssessmentRecurringScansProperties
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.
storageContainerSasKey String
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
vulnerabilityAssessmentName Changes to this property will trigger replacement. String
The name of the vulnerability assessment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
storageContainerPath
This property is required.
Changes to this property will trigger replacement.
string
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
workspaceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
recurringScans VulnerabilityAssessmentRecurringScansProperties
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.
storageContainerSasKey string
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
vulnerabilityAssessmentName Changes to this property will trigger replacement. string
The name of the vulnerability assessment.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
storage_container_path
This property is required.
Changes to this property will trigger replacement.
str
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
workspace_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workspace.
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_sas_key str
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
vulnerability_assessment_name Changes to this property will trigger replacement. str
The name of the vulnerability assessment.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
storageContainerPath
This property is required.
Changes to this property will trigger replacement.
String
A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
workspaceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
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.
storageContainerSasKey String
A shared access signature (SAS Key) that has read and write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required.
vulnerabilityAssessmentName Changes to this property will trigger replacement. String
The name of the vulnerability assessment.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

VulnerabilityAssessmentRecurringScansProperties
, VulnerabilityAssessmentRecurringScansPropertiesArgs

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<String>
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<String>
Specifies an array of e-mail addresses to which the scan notification is sent.
isEnabled Boolean
Recurring scans state.

VulnerabilityAssessmentRecurringScansPropertiesResponse
, VulnerabilityAssessmentRecurringScansPropertiesResponseArgs

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<String>
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<String>
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:synapse:WorkspaceManagedSqlServerVulnerabilityAssessment default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0