Standard
Security Standard on a resource Azure REST API version: 2021-08-01-preview. Prior API version in Azure Native 1.x: 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 (
"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.StandardComponentPropertiesArgs{
{
Key: pulumi.String("1195afff-c881-495e-9bc5-1486211ae03f"),
},
{
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.StandardSupportedClouds{
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 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(
Map.of("key", "1195afff-c881-495e-9bc5-1486211ae03f"),
Map.of("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("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