Dot Net Component Args
data class DotNetComponentArgs(val componentType: Output<Either<String, DotNetComponentType>>? = null, val configurations: Output<List<DotNetComponentConfigurationPropertyArgs>>? = null, val environmentName: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val serviceBinds: Output<List<DotNetComponentServiceBindArgs>>? = null) : ConvertibleToJava<DotNetComponentArgs>
.NET Component. Uses Azure REST API version 2023-11-02-preview. Other available API versions: 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview.
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",
});
});
Content copied to clipboard
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
},
},
});
});
Content copied to clipboard
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(componentType: Output<Either<String, DotNetComponentType>>? = null, configurations: Output<List<DotNetComponentConfigurationPropertyArgs>>? = null, environmentName: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, serviceBinds: Output<List<DotNetComponentServiceBindArgs>>? = null)
Properties
Link copied to clipboard
Type of the .NET Component.
Link copied to clipboard
List of .NET Components configuration properties
Link copied to clipboard
Name of the Managed Environment.
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
List of .NET Components that are bound to the .NET component