Deployment At Scope Args
    data class DeploymentAtScopeArgs(val deploymentName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<DeploymentPropertiesArgs>? = null, val scope: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DeploymentAtScopeArgs> 
Deployment information. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2021-01-01. Other available API versions: 2023-07-01.
Example Usage
Create deployment at a given scope.
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var deploymentAtScope = new AzureNative.Resources.DeploymentAtScope("deploymentAtScope", new()
    {
        DeploymentName = "my-deployment",
        Location = "eastus",
        Properties = new AzureNative.Resources.Inputs.DeploymentPropertiesArgs
        {
            Mode = AzureNative.Resources.DeploymentMode.Incremental,
            Parameters = null,
            TemplateLink = new AzureNative.Resources.Inputs.TemplateLinkArgs
            {
                Uri = "https://example.com/exampleTemplate.json",
            },
        },
        Scope = "providers/Microsoft.Management/managementGroups/my-management-group-id",
        Tags =
        {
            { "tagKey1", "tag-value-1" },
            { "tagKey2", "tag-value-2" },
        },
    });
});Content copied to clipboard
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.NewDeploymentAtScope(ctx, "deploymentAtScope", &resources.DeploymentAtScopeArgs{
			DeploymentName: pulumi.String("my-deployment"),
			Location:       pulumi.String("eastus"),
			Properties: resources.DeploymentPropertiesExtendedResponse{
				Mode:       resources.DeploymentModeIncremental,
				Parameters: nil,
				TemplateLink: &resources.TemplateLinkArgs{
					Uri: pulumi.String("https://example.com/exampleTemplate.json"),
				},
			},
			Scope: pulumi.String("providers/Microsoft.Management/managementGroups/my-management-group-id"),
			Tags: pulumi.StringMap{
				"tagKey1": pulumi.String("tag-value-1"),
				"tagKey2": pulumi.String("tag-value-2"),
			},
		})
		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.resources.DeploymentAtScope;
import com.pulumi.azurenative.resources.DeploymentAtScopeArgs;
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 deploymentAtScope = new DeploymentAtScope("deploymentAtScope", DeploymentAtScopeArgs.builder()
            .deploymentName("my-deployment")
            .location("eastus")
            .properties(Map.ofEntries(
                Map.entry("mode", "Incremental"),
                Map.entry("parameters", ),
                Map.entry("templateLink", Map.of("uri", "https://example.com/exampleTemplate.json"))
            ))
            .scope("providers/Microsoft.Management/managementGroups/my-management-group-id")
            .tags(Map.ofEntries(
                Map.entry("tagKey1", "tag-value-1"),
                Map.entry("tagKey2", "tag-value-2")
            ))
            .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:resources:DeploymentAtScope my-deployment /{scope}/providers/Microsoft.Resources/deployments/{deploymentName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun DeploymentAtScopeArgs(deploymentName: Output<String>? = null, location: Output<String>? = null, properties: Output<DeploymentPropertiesArgs>? = null, scope: Output<String>? = null, tags: Output<Map<String, String>>? = null)