Deployment Stack At Resource Group Args
Deployment stack object. Azure REST API version: 2022-08-01-preview.
Example Usage
DeploymentStacksCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var deploymentStackAtResourceGroup = new AzureNative.Resources.DeploymentStackAtResourceGroup("deploymentStackAtResourceGroup", new()
{
ActionOnUnmanage = new AzureNative.Resources.Inputs.DeploymentStackPropertiesActionOnUnmanageArgs
{
ManagementGroups = "detach",
ResourceGroups = "delete",
Resources = "delete",
},
DenySettings = new AzureNative.Resources.Inputs.DenySettingsArgs
{
ApplyToChildScopes = false,
ExcludedActions = new[]
{
"action",
},
ExcludedPrincipals = new[]
{
"principal",
},
Mode = "denyDelete",
},
DeploymentStackName = "simpleDeploymentStack",
Location = "eastus",
Parameters =
{
{ "parameter1",
{
{ "value", "a string" },
} },
},
ResourceGroupName = "deploymentStacksRG",
Tags =
{
{ "tagkey", "tagVal" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/resources/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := resources.NewDeploymentStackAtResourceGroup(ctx, "deploymentStackAtResourceGroup", &resources.DeploymentStackAtResourceGroupArgs{
ActionOnUnmanage: &resources.DeploymentStackPropertiesActionOnUnmanageArgs{
ManagementGroups: pulumi.String("detach"),
ResourceGroups: pulumi.String("delete"),
Resources: pulumi.String("delete"),
},
DenySettings: &resources.DenySettingsArgs{
ApplyToChildScopes: pulumi.Bool(false),
ExcludedActions: pulumi.StringArray{
pulumi.String("action"),
},
ExcludedPrincipals: pulumi.StringArray{
pulumi.String("principal"),
},
Mode: pulumi.String("denyDelete"),
},
DeploymentStackName: pulumi.String("simpleDeploymentStack"),
Location: pulumi.String("eastus"),
Parameters: pulumi.Any{
Parameter1: map[string]interface{}{
"value": "a string",
},
},
ResourceGroupName: pulumi.String("deploymentStacksRG"),
Tags: pulumi.StringMap{
"tagkey": pulumi.String("tagVal"),
},
})
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.resources.DeploymentStackAtResourceGroup;
import com.pulumi.azurenative.resources.DeploymentStackAtResourceGroupArgs;
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 deploymentStackAtResourceGroup = new DeploymentStackAtResourceGroup("deploymentStackAtResourceGroup", DeploymentStackAtResourceGroupArgs.builder()
.actionOnUnmanage(Map.ofEntries(
Map.entry("managementGroups", "detach"),
Map.entry("resourceGroups", "delete"),
Map.entry("resources", "delete")
))
.denySettings(Map.ofEntries(
Map.entry("applyToChildScopes", false),
Map.entry("excludedActions", "action"),
Map.entry("excludedPrincipals", "principal"),
Map.entry("mode", "denyDelete")
))
.deploymentStackName("simpleDeploymentStack")
.location("eastus")
.parameters(Map.of("parameter1", Map.of("value", "a string")))
.resourceGroupName("deploymentStacksRG")
.tags(Map.of("tagkey", "tagVal"))
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:resources:DeploymentStackAtResourceGroup simpleDeploymentStack /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentStacks/{deploymentStackName}
Constructors
Functions
Properties
The scope at which the initial deployment should be created. If a scope is not specified, it will default to the scope of the deployment stack. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroupId}'), subscription (format: '/subscriptions/{subscriptionId}'), resource group (format: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}').
Name and value pairs that define the deployment parameters for the template. Use this element when providing the parameter values directly in the request, rather than linking to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string.