DotNetComponent

class DotNetComponent : KotlinCustomResource

.NET Component. Uses Azure REST API version 2024-10-02-preview. In version 2.x of the Azure Native provider, it used API version 2023-11-02-preview. Other available API versions: 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2025-02-02-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native app [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or Update .NET Component

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dotNetComponent = new AzureNative.App.DotNetComponent("dotNetComponent", new()
{
ComponentType = AzureNative.App.DotNetComponentType.AspireDashboard,
Configurations = new[]
{
new AzureNative.App.Inputs.DotNetComponentConfigurationPropertyArgs
{
PropertyName = "dashboard-theme",
Value = "dark",
},
},
EnvironmentName = "myenvironment",
Name = "mydotnetcomponent",
ResourceGroupName = "examplerg",
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewDotNetComponent(ctx, "dotNetComponent", &app.DotNetComponentArgs{
ComponentType: pulumi.String(app.DotNetComponentTypeAspireDashboard),
Configurations: app.DotNetComponentConfigurationPropertyArray{
&app.DotNetComponentConfigurationPropertyArgs{
PropertyName: pulumi.String("dashboard-theme"),
Value: pulumi.String("dark"),
},
},
EnvironmentName: pulumi.String("myenvironment"),
Name: pulumi.String("mydotnetcomponent"),
ResourceGroupName: pulumi.String("examplerg"),
})
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.app.DotNetComponent;
import com.pulumi.azurenative.app.DotNetComponentArgs;
import com.pulumi.azurenative.app.inputs.DotNetComponentConfigurationPropertyArgs;
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 dotNetComponent = new DotNetComponent("dotNetComponent", DotNetComponentArgs.builder()
.componentType("AspireDashboard")
.configurations(DotNetComponentConfigurationPropertyArgs.builder()
.propertyName("dashboard-theme")
.value("dark")
.build())
.environmentName("myenvironment")
.name("mydotnetcomponent")
.resourceGroupName("examplerg")
.build());
}
}

Create or Update .NET Component with ServiceBinds

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var dotNetComponent = new AzureNative.App.DotNetComponent("dotNetComponent", new()
{
ComponentType = AzureNative.App.DotNetComponentType.AspireDashboard,
Configurations = new[]
{
new AzureNative.App.Inputs.DotNetComponentConfigurationPropertyArgs
{
PropertyName = "dashboard-theme",
Value = "dark",
},
},
EnvironmentName = "myenvironment",
Name = "mydotnetcomponent",
ResourceGroupName = "examplerg",
ServiceBinds = new[]
{
new AzureNative.App.Inputs.DotNetComponentServiceBindArgs
{
Name = "yellowcat",
ServiceId = "/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat",
},
},
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewDotNetComponent(ctx, "dotNetComponent", &app.DotNetComponentArgs{
ComponentType: pulumi.String(app.DotNetComponentTypeAspireDashboard),
Configurations: app.DotNetComponentConfigurationPropertyArray{
&app.DotNetComponentConfigurationPropertyArgs{
PropertyName: pulumi.String("dashboard-theme"),
Value: pulumi.String("dark"),
},
},
EnvironmentName: pulumi.String("myenvironment"),
Name: pulumi.String("mydotnetcomponent"),
ResourceGroupName: pulumi.String("examplerg"),
ServiceBinds: app.DotNetComponentServiceBindArray{
&app.DotNetComponentServiceBindArgs{
Name: pulumi.String("yellowcat"),
ServiceId: pulumi.String("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat"),
},
},
})
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.app.DotNetComponent;
import com.pulumi.azurenative.app.DotNetComponentArgs;
import com.pulumi.azurenative.app.inputs.DotNetComponentConfigurationPropertyArgs;
import com.pulumi.azurenative.app.inputs.DotNetComponentServiceBindArgs;
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 dotNetComponent = new DotNetComponent("dotNetComponent", DotNetComponentArgs.builder()
.componentType("AspireDashboard")
.configurations(DotNetComponentConfigurationPropertyArgs.builder()
.propertyName("dashboard-theme")
.value("dark")
.build())
.environmentName("myenvironment")
.name("mydotnetcomponent")
.resourceGroupName("examplerg")
.serviceBinds(DotNetComponentServiceBindArgs.builder()
.name("yellowcat")
.serviceId("/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/myenvironment/dotNetComponents/yellowcat")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:app:DotNetComponent mydotnetcomponent /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/dotNetComponents/{name}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val componentType: Output<String>?

Type of the .NET Component.

Link copied to clipboard

List of .NET Components configuration properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Provisioning state of the .NET Component.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

List of .NET Components that are bound to the .NET component

Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>