Standard
Security Standard on a resource Uses Azure REST API version 2021-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-08-01-preview.
Example Usage
Create a security standard on a specified scope
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var standard = new AzureNative.Security.Standard("standard", new()
{
Category = "SecurityCenter",
Components = new[]
{
new AzureNative.Security.Inputs.StandardComponentPropertiesArgs
{
Key = "1195afff-c881-495e-9bc5-1486211ae03f",
},
new AzureNative.Security.Inputs.StandardComponentPropertiesArgs
{
Key = "dbd0cb49-b563-45e7-9724-889e799fa648",
},
},
Description = "description of Azure Test Security Standard 1",
DisplayName = "Azure Test Security Standard 1",
ResourceGroupName = "myResourceGroup",
StandardId = "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
SupportedClouds = new[]
{
AzureNative.Security.StandardSupportedClouds.GCP,
},
});
});
Content copied to clipboard
package main
import (
security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := security.NewStandard(ctx, "standard", &security.StandardArgs{
Category: pulumi.String("SecurityCenter"),
Components: security.StandardComponentPropertiesArray{
&security.StandardComponentPropertiesArgs{
Key: pulumi.String("1195afff-c881-495e-9bc5-1486211ae03f"),
},
&security.StandardComponentPropertiesArgs{
Key: pulumi.String("dbd0cb49-b563-45e7-9724-889e799fa648"),
},
},
Description: pulumi.String("description of Azure Test Security Standard 1"),
DisplayName: pulumi.String("Azure Test Security Standard 1"),
ResourceGroupName: pulumi.String("myResourceGroup"),
StandardId: pulumi.String("8bb8be0a-6010-4789-812f-e4d661c4ed0e"),
SupportedClouds: security.StandardSupportedCloudsArray{
security.StandardSupportedCloudsGCP,
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.security.Standard;
import com.pulumi.azurenative.security.StandardArgs;
import com.pulumi.azurenative.security.inputs.StandardComponentPropertiesArgs;
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 standard = new Standard("standard", StandardArgs.builder()
.category("SecurityCenter")
.components(
StandardComponentPropertiesArgs.builder()
.key("1195afff-c881-495e-9bc5-1486211ae03f")
.build(),
StandardComponentPropertiesArgs.builder()
.key("dbd0cb49-b563-45e7-9724-889e799fa648")
.build())
.description("description of Azure Test Security Standard 1")
.displayName("Azure Test Security Standard 1")
.resourceGroupName("myResourceGroup")
.standardId("8bb8be0a-6010-4789-812f-e4d661c4ed0e")
.supportedClouds("GCP")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:security:Standard 8bb8be0a-6010-4789-812f-e4d661c4ed0e /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/standards/{standardId}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
List of component objects containing component unique keys (such as assessment keys) to apply to standard scope. Currently only supports assessment keys.
Link copied to clipboard
description of the standard
Link copied to clipboard
display name of the standard, equivalent to the standardId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
standard type (Custom or BuiltIn only currently)
Link copied to clipboard
List of all standard supported clouds.
Link copied to clipboard
Azure Resource Manager metadata containing createdBy and modifiedBy information.