1. Packages
  2. Azure Native
  3. API Docs
  4. synapse
  5. SqlPoolVulnerabilityAssessment
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.0 published on Monday, Jun 24, 2024 by Pulumi

azure-native.synapse.SqlPoolVulnerabilityAssessment

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.0 published on Monday, Jun 24, 2024 by Pulumi

    A Sql pool 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 a database's vulnerability assessment with all parameters

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var sqlPoolVulnerabilityAssessment = new AzureNative.Synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", new()
        {
            RecurringScans = new AzureNative.Synapse.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
            {
                EmailSubscriptionAdmins = true,
                Emails = new[]
                {
                    "email1@mail.com",
                    "email2@mail.com",
                },
                IsEnabled = true,
            },
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            SqlPoolName = "testdb",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
            WorkspaceName = "vulnerabilityaseessmenttest-6440",
        });
    
    });
    
    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.NewSqlPoolVulnerabilityAssessment(ctx, "sqlPoolVulnerabilityAssessment", &synapse.SqlPoolVulnerabilityAssessmentArgs{
    			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("vulnerabilityaseessmenttest-4799"),
    			SqlPoolName:                 pulumi.String("testdb"),
    			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("vulnerabilityaseessmenttest-6440"),
    		})
    		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.synapse.SqlPoolVulnerabilityAssessment;
    import com.pulumi.azurenative.synapse.SqlPoolVulnerabilityAssessmentArgs;
    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 sqlPoolVulnerabilityAssessment = new SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", SqlPoolVulnerabilityAssessmentArgs.builder()
                .recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
                    .emailSubscriptionAdmins(true)
                    .emails(                
                        "email1@mail.com",
                        "email2@mail.com")
                    .isEnabled(true)
                    .build())
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .sqlPoolName("testdb")
                .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
                .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .vulnerabilityAssessmentName("default")
                .workspaceName("vulnerabilityaseessmenttest-6440")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sql_pool_vulnerability_assessment = azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment",
        recurring_scans=azure_native.synapse.VulnerabilityAssessmentRecurringScansPropertiesArgs(
            email_subscription_admins=True,
            emails=[
                "email1@mail.com",
                "email2@mail.com",
            ],
            is_enabled=True,
        ),
        resource_group_name="vulnerabilityaseessmenttest-4799",
        sql_pool_name="testdb",
        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="vulnerabilityaseessmenttest-6440")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sqlPoolVulnerabilityAssessment = new azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", {
        recurringScans: {
            emailSubscriptionAdmins: true,
            emails: [
                "email1@mail.com",
                "email2@mail.com",
            ],
            isEnabled: true,
        },
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        sqlPoolName: "testdb",
        storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        vulnerabilityAssessmentName: "default",
        workspaceName: "vulnerabilityaseessmenttest-6440",
    });
    
    resources:
      sqlPoolVulnerabilityAssessment:
        type: azure-native:synapse:SqlPoolVulnerabilityAssessment
        properties:
          recurringScans:
            emailSubscriptionAdmins: true
            emails:
              - email1@mail.com
              - email2@mail.com
            isEnabled: true
          resourceGroupName: vulnerabilityaseessmenttest-4799
          sqlPoolName: testdb
          storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          vulnerabilityAssessmentName: default
          workspaceName: vulnerabilityaseessmenttest-6440
    

    Create a database'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 sqlPoolVulnerabilityAssessment = new AzureNative.Synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", new()
        {
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            SqlPoolName = "testdb",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            VulnerabilityAssessmentName = "default",
            WorkspaceName = "vulnerabilityaseessmenttest-6440",
        });
    
    });
    
    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.NewSqlPoolVulnerabilityAssessment(ctx, "sqlPoolVulnerabilityAssessment", &synapse.SqlPoolVulnerabilityAssessmentArgs{
    			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
    			SqlPoolName:                 pulumi.String("testdb"),
    			StorageAccountAccessKey:     pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
    			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
    			VulnerabilityAssessmentName: pulumi.String("default"),
    			WorkspaceName:               pulumi.String("vulnerabilityaseessmenttest-6440"),
    		})
    		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.synapse.SqlPoolVulnerabilityAssessment;
    import com.pulumi.azurenative.synapse.SqlPoolVulnerabilityAssessmentArgs;
    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 sqlPoolVulnerabilityAssessment = new SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", SqlPoolVulnerabilityAssessmentArgs.builder()
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .sqlPoolName("testdb")
                .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
                .vulnerabilityAssessmentName("default")
                .workspaceName("vulnerabilityaseessmenttest-6440")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sql_pool_vulnerability_assessment = azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment",
        resource_group_name="vulnerabilityaseessmenttest-4799",
        sql_pool_name="testdb",
        storage_account_access_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        vulnerability_assessment_name="default",
        workspace_name="vulnerabilityaseessmenttest-6440")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sqlPoolVulnerabilityAssessment = new azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", {
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        sqlPoolName: "testdb",
        storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        vulnerabilityAssessmentName: "default",
        workspaceName: "vulnerabilityaseessmenttest-6440",
    });
    
    resources:
      sqlPoolVulnerabilityAssessment:
        type: azure-native:synapse:SqlPoolVulnerabilityAssessment
        properties:
          resourceGroupName: vulnerabilityaseessmenttest-4799
          sqlPoolName: testdb
          storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          vulnerabilityAssessmentName: default
          workspaceName: vulnerabilityaseessmenttest-6440
    

    Create a database'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 sqlPoolVulnerabilityAssessment = new AzureNative.Synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", new()
        {
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            SqlPoolName = "testdb",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
            WorkspaceName = "vulnerabilityaseessmenttest-6440",
        });
    
    });
    
    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.NewSqlPoolVulnerabilityAssessment(ctx, "sqlPoolVulnerabilityAssessment", &synapse.SqlPoolVulnerabilityAssessmentArgs{
    			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
    			SqlPoolName:                 pulumi.String("testdb"),
    			StorageContainerPath:        pulumi.String("https://myStorage.blob.core.windows.net/vulnerability-assessment/"),
    			StorageContainerSasKey:      pulumi.String("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"),
    			VulnerabilityAssessmentName: pulumi.String("default"),
    			WorkspaceName:               pulumi.String("vulnerabilityaseessmenttest-6440"),
    		})
    		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.synapse.SqlPoolVulnerabilityAssessment;
    import com.pulumi.azurenative.synapse.SqlPoolVulnerabilityAssessmentArgs;
    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 sqlPoolVulnerabilityAssessment = new SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", SqlPoolVulnerabilityAssessmentArgs.builder()
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .sqlPoolName("testdb")
                .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
                .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .vulnerabilityAssessmentName("default")
                .workspaceName("vulnerabilityaseessmenttest-6440")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    sql_pool_vulnerability_assessment = azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment",
        resource_group_name="vulnerabilityaseessmenttest-4799",
        sql_pool_name="testdb",
        storage_container_path="https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        storage_container_sas_key="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        vulnerability_assessment_name="default",
        workspace_name="vulnerabilityaseessmenttest-6440")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const sqlPoolVulnerabilityAssessment = new azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessment", {
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        sqlPoolName: "testdb",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        vulnerabilityAssessmentName: "default",
        workspaceName: "vulnerabilityaseessmenttest-6440",
    });
    
    resources:
      sqlPoolVulnerabilityAssessment:
        type: azure-native:synapse:SqlPoolVulnerabilityAssessment
        properties:
          resourceGroupName: vulnerabilityaseessmenttest-4799
          sqlPoolName: testdb
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          vulnerabilityAssessmentName: default
          workspaceName: vulnerabilityaseessmenttest-6440
    

    Create SqlPoolVulnerabilityAssessment Resource

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

    Constructor syntax

    new SqlPoolVulnerabilityAssessment(name: string, args: SqlPoolVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);
    @overload
    def SqlPoolVulnerabilityAssessment(resource_name: str,
                                       args: SqlPoolVulnerabilityAssessmentArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def SqlPoolVulnerabilityAssessment(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       resource_group_name: Optional[str] = None,
                                       sql_pool_name: Optional[str] = None,
                                       workspace_name: Optional[str] = None,
                                       recurring_scans: Optional[VulnerabilityAssessmentRecurringScansPropertiesArgs] = 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)
    func NewSqlPoolVulnerabilityAssessment(ctx *Context, name string, args SqlPoolVulnerabilityAssessmentArgs, opts ...ResourceOption) (*SqlPoolVulnerabilityAssessment, error)
    public SqlPoolVulnerabilityAssessment(string name, SqlPoolVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)
    public SqlPoolVulnerabilityAssessment(String name, SqlPoolVulnerabilityAssessmentArgs args)
    public SqlPoolVulnerabilityAssessment(String name, SqlPoolVulnerabilityAssessmentArgs args, CustomResourceOptions options)
    
    type: azure-native:synapse:SqlPoolVulnerabilityAssessment
    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 SqlPoolVulnerabilityAssessmentArgs
    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 SqlPoolVulnerabilityAssessmentArgs
    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 SqlPoolVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SqlPoolVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SqlPoolVulnerabilityAssessmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var sqlPoolVulnerabilityAssessmentResource = new AzureNative.Synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessmentResource", new()
    {
        ResourceGroupName = "string",
        SqlPoolName = "string",
        WorkspaceName = "string",
        RecurringScans = new AzureNative.Synapse.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
        {
            EmailSubscriptionAdmins = false,
            Emails = new[]
            {
                "string",
            },
            IsEnabled = false,
        },
        StorageAccountAccessKey = "string",
        StorageContainerPath = "string",
        StorageContainerSasKey = "string",
        VulnerabilityAssessmentName = "string",
    });
    
    example, err := synapse.NewSqlPoolVulnerabilityAssessment(ctx, "sqlPoolVulnerabilityAssessmentResource", &synapse.SqlPoolVulnerabilityAssessmentArgs{
    ResourceGroupName: pulumi.String("string"),
    SqlPoolName: pulumi.String("string"),
    WorkspaceName: pulumi.String("string"),
    RecurringScans: &synapse.VulnerabilityAssessmentRecurringScansPropertiesArgs{
    EmailSubscriptionAdmins: pulumi.Bool(false),
    Emails: pulumi.StringArray{
    pulumi.String("string"),
    },
    IsEnabled: pulumi.Bool(false),
    },
    StorageAccountAccessKey: pulumi.String("string"),
    StorageContainerPath: pulumi.String("string"),
    StorageContainerSasKey: pulumi.String("string"),
    VulnerabilityAssessmentName: pulumi.String("string"),
    })
    
    var sqlPoolVulnerabilityAssessmentResource = new SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessmentResource", SqlPoolVulnerabilityAssessmentArgs.builder()
        .resourceGroupName("string")
        .sqlPoolName("string")
        .workspaceName("string")
        .recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
            .emailSubscriptionAdmins(false)
            .emails("string")
            .isEnabled(false)
            .build())
        .storageAccountAccessKey("string")
        .storageContainerPath("string")
        .storageContainerSasKey("string")
        .vulnerabilityAssessmentName("string")
        .build());
    
    sql_pool_vulnerability_assessment_resource = azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessmentResource",
        resource_group_name="string",
        sql_pool_name="string",
        workspace_name="string",
        recurring_scans=azure_native.synapse.VulnerabilityAssessmentRecurringScansPropertiesArgs(
            email_subscription_admins=False,
            emails=["string"],
            is_enabled=False,
        ),
        storage_account_access_key="string",
        storage_container_path="string",
        storage_container_sas_key="string",
        vulnerability_assessment_name="string")
    
    const sqlPoolVulnerabilityAssessmentResource = new azure_native.synapse.SqlPoolVulnerabilityAssessment("sqlPoolVulnerabilityAssessmentResource", {
        resourceGroupName: "string",
        sqlPoolName: "string",
        workspaceName: "string",
        recurringScans: {
            emailSubscriptionAdmins: false,
            emails: ["string"],
            isEnabled: false,
        },
        storageAccountAccessKey: "string",
        storageContainerPath: "string",
        storageContainerSasKey: "string",
        vulnerabilityAssessmentName: "string",
    });
    
    type: azure-native:synapse:SqlPoolVulnerabilityAssessment
    properties:
        recurringScans:
            emailSubscriptionAdmins: false
            emails:
                - string
            isEnabled: false
        resourceGroupName: string
        sqlPoolName: string
        storageAccountAccessKey: string
        storageContainerPath: string
        storageContainerSasKey: string
        vulnerabilityAssessmentName: string
        workspaceName: string
    

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

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SqlPoolName string
    SQL pool name
    WorkspaceName 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.
    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.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    SqlPoolName string
    SQL pool name
    WorkspaceName 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.
    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.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sqlPoolName String
    SQL pool name
    workspaceName 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.
    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.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    sqlPoolName string
    SQL pool name
    workspaceName 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.
    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.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    sql_pool_name str
    SQL pool name
    workspace_name 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_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.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    sqlPoolName String
    SQL pool name
    workspaceName 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.
    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 SqlPoolVulnerabilityAssessment 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:SqlPoolVulnerabilityAssessment default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.0 published on Monday, Jun 24, 2024 by Pulumi