DeploymentAtSubscriptionScopeArgs

data class DeploymentAtSubscriptionScopeArgs(val deploymentName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<DeploymentPropertiesArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DeploymentAtSubscriptionScopeArgs>

Deployment information. Uses Azure REST API version 2022-09-01. In version 1.x of the Azure Native provider, it used API version 2021-01-01. Other available API versions: 2023-07-01, 2024-03-01, 2024-07-01, 2024-11-01.

Example Usage

Create a deployment that will deploy a templateSpec with the given resourceId

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var deploymentAtSubscriptionScope = new AzureNative.Resources.DeploymentAtSubscriptionScope("deploymentAtSubscriptionScope", 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
{
Id = "/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1",
},
},
});
});
package main
import (
resources "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.NewDeploymentAtSubscriptionScope(ctx, "deploymentAtSubscriptionScope", &resources.DeploymentAtSubscriptionScopeArgs{
DeploymentName: pulumi.String("my-deployment"),
Location: pulumi.String("eastus"),
Properties: &resources.DeploymentPropertiesArgs{
Mode: resources.DeploymentModeIncremental,
Parameters: resources.DeploymentParameterMap{},
TemplateLink: &resources.TemplateLinkArgs{
Id: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1"),
},
},
})
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.DeploymentAtSubscriptionScope;
import com.pulumi.azurenative.resources.DeploymentAtSubscriptionScopeArgs;
import com.pulumi.azurenative.resources.inputs.DeploymentPropertiesArgs;
import com.pulumi.azurenative.resources.inputs.TemplateLinkArgs;
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 deploymentAtSubscriptionScope = new DeploymentAtSubscriptionScope("deploymentAtSubscriptionScope", DeploymentAtSubscriptionScopeArgs.builder()
.deploymentName("my-deployment")
.location("eastus")
.properties(DeploymentPropertiesArgs.builder()
.mode("Incremental")
.parameters()
.templateLink(TemplateLinkArgs.builder()
.id("/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/my-resource-group/providers/Microsoft.Resources/TemplateSpecs/TemplateSpec-Name/versions/v1")
.build())
.build())
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:resources:DeploymentAtSubscriptionScope my-deployment /subscriptions/{subscriptionId}/providers/Microsoft.Resources/deployments/{deploymentName}

Constructors

Link copied to clipboard
constructor(deploymentName: Output<String>? = null, location: Output<String>? = null, properties: Output<DeploymentPropertiesArgs>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val deploymentName: Output<String>? = null

The name of the deployment.

Link copied to clipboard
val location: Output<String>? = null

The location to store the deployment data.

Link copied to clipboard

The deployment properties.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Deployment tags

Functions

Link copied to clipboard
open override fun toJava(): DeploymentAtSubscriptionScopeArgs