1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. ManagedInstanceVulnerabilityAssessment
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.33.0 published on Friday, Mar 22, 2024 by Pulumi

azure-native.sql.ManagedInstanceVulnerabilityAssessment

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.33.0 published on Friday, Mar 22, 2024 by Pulumi

    A managed instance 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.

    Example Usage

    Create a managed instance's vulnerability assessment with all parameters

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var managedInstanceVulnerabilityAssessment = new AzureNative.Sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", new()
        {
            ManagedInstanceName = "vulnerabilityaseessmenttest-6440",
            RecurringScans = new AzureNative.Sql.Inputs.VulnerabilityAssessmentRecurringScansPropertiesArgs
            {
                EmailSubscriptionAdmins = true,
                Emails = new[]
                {
                    "email1@mail.com",
                    "email2@mail.com",
                },
                IsEnabled = true,
            },
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
        });
    
    });
    
    package main
    
    import (
    	"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.NewManagedInstanceVulnerabilityAssessment(ctx, "managedInstanceVulnerabilityAssessment", &sql.ManagedInstanceVulnerabilityAssessmentArgs{
    			ManagedInstanceName: pulumi.String("vulnerabilityaseessmenttest-6440"),
    			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"),
    			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.ManagedInstanceVulnerabilityAssessment;
    import com.pulumi.azurenative.sql.ManagedInstanceVulnerabilityAssessmentArgs;
    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 managedInstanceVulnerabilityAssessment = new ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", ManagedInstanceVulnerabilityAssessmentArgs.builder()        
                .managedInstanceName("vulnerabilityaseessmenttest-6440")
                .recurringScans(VulnerabilityAssessmentRecurringScansPropertiesArgs.builder()
                    .emailSubscriptionAdmins(true)
                    .emails(                
                        "email1@mail.com",
                        "email2@mail.com")
                    .isEnabled(true)
                    .build())
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .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
    
    managed_instance_vulnerability_assessment = azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment",
        managed_instance_name="vulnerabilityaseessmenttest-6440",
        recurring_scans=azure_native.sql.VulnerabilityAssessmentRecurringScansPropertiesArgs(
            email_subscription_admins=True,
            emails=[
                "email1@mail.com",
                "email2@mail.com",
            ],
            is_enabled=True,
        ),
        resource_group_name="vulnerabilityaseessmenttest-4799",
        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 managedInstanceVulnerabilityAssessment = new azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", {
        managedInstanceName: "vulnerabilityaseessmenttest-6440",
        recurringScans: {
            emailSubscriptionAdmins: true,
            emails: [
                "email1@mail.com",
                "email2@mail.com",
            ],
            isEnabled: true,
        },
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        vulnerabilityAssessmentName: "default",
    });
    
    resources:
      managedInstanceVulnerabilityAssessment:
        type: azure-native:sql:ManagedInstanceVulnerabilityAssessment
        properties:
          managedInstanceName: vulnerabilityaseessmenttest-6440
          recurringScans:
            emailSubscriptionAdmins: true
            emails:
              - email1@mail.com
              - email2@mail.com
            isEnabled: true
          resourceGroupName: vulnerabilityaseessmenttest-4799
          storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          vulnerabilityAssessmentName: default
    

    Create a managed instance'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 managedInstanceVulnerabilityAssessment = new AzureNative.Sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", new()
        {
            ManagedInstanceName = "vulnerabilityaseessmenttest-6440",
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            StorageAccountAccessKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            VulnerabilityAssessmentName = "default",
        });
    
    });
    
    package main
    
    import (
    	"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.NewManagedInstanceVulnerabilityAssessment(ctx, "managedInstanceVulnerabilityAssessment", &sql.ManagedInstanceVulnerabilityAssessmentArgs{
    			ManagedInstanceName:         pulumi.String("vulnerabilityaseessmenttest-6440"),
    			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
    			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.ManagedInstanceVulnerabilityAssessment;
    import com.pulumi.azurenative.sql.ManagedInstanceVulnerabilityAssessmentArgs;
    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 managedInstanceVulnerabilityAssessment = new ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", ManagedInstanceVulnerabilityAssessmentArgs.builder()        
                .managedInstanceName("vulnerabilityaseessmenttest-6440")
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .storageAccountAccessKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
                .vulnerabilityAssessmentName("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    managed_instance_vulnerability_assessment = azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment",
        managed_instance_name="vulnerabilityaseessmenttest-6440",
        resource_group_name="vulnerabilityaseessmenttest-4799",
        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 managedInstanceVulnerabilityAssessment = new azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", {
        managedInstanceName: "vulnerabilityaseessmenttest-6440",
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        storageAccountAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        vulnerabilityAssessmentName: "default",
    });
    
    resources:
      managedInstanceVulnerabilityAssessment:
        type: azure-native:sql:ManagedInstanceVulnerabilityAssessment
        properties:
          managedInstanceName: vulnerabilityaseessmenttest-6440
          resourceGroupName: vulnerabilityaseessmenttest-4799
          storageAccountAccessKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          vulnerabilityAssessmentName: default
    

    Create a managed instance'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 managedInstanceVulnerabilityAssessment = new AzureNative.Sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", new()
        {
            ManagedInstanceName = "vulnerabilityaseessmenttest-6440",
            ResourceGroupName = "vulnerabilityaseessmenttest-4799",
            StorageContainerPath = "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
            StorageContainerSasKey = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
            VulnerabilityAssessmentName = "default",
        });
    
    });
    
    package main
    
    import (
    	"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.NewManagedInstanceVulnerabilityAssessment(ctx, "managedInstanceVulnerabilityAssessment", &sql.ManagedInstanceVulnerabilityAssessmentArgs{
    			ManagedInstanceName:         pulumi.String("vulnerabilityaseessmenttest-6440"),
    			ResourceGroupName:           pulumi.String("vulnerabilityaseessmenttest-4799"),
    			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.ManagedInstanceVulnerabilityAssessment;
    import com.pulumi.azurenative.sql.ManagedInstanceVulnerabilityAssessmentArgs;
    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 managedInstanceVulnerabilityAssessment = new ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", ManagedInstanceVulnerabilityAssessmentArgs.builder()        
                .managedInstanceName("vulnerabilityaseessmenttest-6440")
                .resourceGroupName("vulnerabilityaseessmenttest-4799")
                .storageContainerPath("https://myStorage.blob.core.windows.net/vulnerability-assessment/")
                .storageContainerSasKey("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")
                .vulnerabilityAssessmentName("default")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    managed_instance_vulnerability_assessment = azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment",
        managed_instance_name="vulnerabilityaseessmenttest-6440",
        resource_group_name="vulnerabilityaseessmenttest-4799",
        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 managedInstanceVulnerabilityAssessment = new azure_native.sql.ManagedInstanceVulnerabilityAssessment("managedInstanceVulnerabilityAssessment", {
        managedInstanceName: "vulnerabilityaseessmenttest-6440",
        resourceGroupName: "vulnerabilityaseessmenttest-4799",
        storageContainerPath: "https://myStorage.blob.core.windows.net/vulnerability-assessment/",
        storageContainerSasKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        vulnerabilityAssessmentName: "default",
    });
    
    resources:
      managedInstanceVulnerabilityAssessment:
        type: azure-native:sql:ManagedInstanceVulnerabilityAssessment
        properties:
          managedInstanceName: vulnerabilityaseessmenttest-6440
          resourceGroupName: vulnerabilityaseessmenttest-4799
          storageContainerPath: https://myStorage.blob.core.windows.net/vulnerability-assessment/
          storageContainerSasKey: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
          vulnerabilityAssessmentName: default
    

    Create ManagedInstanceVulnerabilityAssessment Resource

    new ManagedInstanceVulnerabilityAssessment(name: string, args: ManagedInstanceVulnerabilityAssessmentArgs, opts?: CustomResourceOptions);
    @overload
    def ManagedInstanceVulnerabilityAssessment(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               managed_instance_name: Optional[str] = None,
                                               recurring_scans: Optional[VulnerabilityAssessmentRecurringScansPropertiesArgs] = None,
                                               resource_group_name: Optional[str] = None,
                                               storage_account_access_key: Optional[str] = None,
                                               storage_container_path: Optional[str] = None,
                                               storage_container_sas_key: Optional[str] = None,
                                               vulnerability_assessment_name: Optional[str] = None)
    @overload
    def ManagedInstanceVulnerabilityAssessment(resource_name: str,
                                               args: ManagedInstanceVulnerabilityAssessmentArgs,
                                               opts: Optional[ResourceOptions] = None)
    func NewManagedInstanceVulnerabilityAssessment(ctx *Context, name string, args ManagedInstanceVulnerabilityAssessmentArgs, opts ...ResourceOption) (*ManagedInstanceVulnerabilityAssessment, error)
    public ManagedInstanceVulnerabilityAssessment(string name, ManagedInstanceVulnerabilityAssessmentArgs args, CustomResourceOptions? opts = null)
    public ManagedInstanceVulnerabilityAssessment(String name, ManagedInstanceVulnerabilityAssessmentArgs args)
    public ManagedInstanceVulnerabilityAssessment(String name, ManagedInstanceVulnerabilityAssessmentArgs args, CustomResourceOptions options)
    
    type: azure-native:sql:ManagedInstanceVulnerabilityAssessment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ManagedInstanceVulnerabilityAssessmentArgs
    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 ManagedInstanceVulnerabilityAssessmentArgs
    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 ManagedInstanceVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ManagedInstanceVulnerabilityAssessmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ManagedInstanceVulnerabilityAssessmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ManagedInstanceName string
    The name of the managed instance for which the vulnerability assessment is defined.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    StorageContainerPath string
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    RecurringScans Pulumi.AzureNative.Sql.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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    VulnerabilityAssessmentName string
    The name of the vulnerability assessment.
    ManagedInstanceName string
    The name of the managed instance for which the vulnerability assessment is defined.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    StorageContainerPath string
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    VulnerabilityAssessmentName string
    The name of the vulnerability assessment.
    managedInstanceName String
    The name of the managed instance for which the vulnerability assessment is defined.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    storageContainerPath String
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    vulnerabilityAssessmentName String
    The name of the vulnerability assessment.
    managedInstanceName string
    The name of the managed instance for which the vulnerability assessment is defined.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    storageContainerPath string
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    vulnerabilityAssessmentName string
    The name of the vulnerability assessment.
    managed_instance_name str
    The name of the managed instance for which the vulnerability assessment is defined.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    storage_container_path str
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    vulnerability_assessment_name str
    The name of the vulnerability assessment.
    managedInstanceName String
    The name of the managed instance for which the vulnerability assessment is defined.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    storageContainerPath String
    A blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
    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. Applies only if the storage account is not behind a Vnet or a firewall
    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. Applies only if the storage account is not behind a Vnet or a firewall
    vulnerabilityAssessmentName String
    The name of the vulnerability assessment.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name.
    type string
    Resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name.
    type str
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name.
    type String
    Resource type.

    Supporting Types

    VulnerabilityAssessmentRecurringScansProperties, 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:sql:ManagedInstanceVulnerabilityAssessment default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName} 
    

    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.33.0 published on Friday, Mar 22, 2024 by Pulumi