SpringCloudAppArgs

data class SpringCloudAppArgs(val addonJson: Output<String>? = null, val customPersistentDisks: Output<List<SpringCloudAppCustomPersistentDiskArgs>>? = null, val httpsOnly: Output<Boolean>? = null, val identity: Output<SpringCloudAppIdentityArgs>? = null, val ingressSettings: Output<SpringCloudAppIngressSettingsArgs>? = null, val isPublic: Output<Boolean>? = null, val name: Output<String>? = null, val persistentDisk: Output<SpringCloudAppPersistentDiskArgs>? = null, val publicEndpointEnabled: Output<Boolean>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val tlsEnabled: Output<Boolean>? = null) : ConvertibleToJava<SpringCloudAppArgs>

Manage an Azure Spring Cloud Application. !>Note: Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the azure.appplatform.SpringCloudApp resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", {
name: "example-springcloud",
resourceGroupName: example.name,
location: example.location,
});
const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", {
name: "example-springcloudapp",
resourceGroupName: example.name,
serviceName: exampleSpringCloudService.name,
identity: {
type: "SystemAssigned",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_spring_cloud_service = azure.appplatform.SpringCloudService("example",
name="example-springcloud",
resource_group_name=example.name,
location=example.location)
example_spring_cloud_app = azure.appplatform.SpringCloudApp("example",
name="example-springcloudapp",
resource_group_name=example.name,
service_name=example_spring_cloud_service.name,
identity={
"type": "SystemAssigned",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("example", new()
{
Name = "example-springcloud",
ResourceGroupName = example.Name,
Location = example.Location,
});
var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("example", new()
{
Name = "example-springcloudapp",
ResourceGroupName = example.Name,
ServiceName = exampleSpringCloudService.Name,
Identity = new Azure.AppPlatform.Inputs.SpringCloudAppIdentityArgs
{
Type = "SystemAssigned",
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "example", &appplatform.SpringCloudServiceArgs{
Name: pulumi.String("example-springcloud"),
ResourceGroupName: example.Name,
Location: example.Location,
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudApp(ctx, "example", &appplatform.SpringCloudAppArgs{
Name: pulumi.String("example-springcloudapp"),
ResourceGroupName: example.Name,
ServiceName: exampleSpringCloudService.Name,
Identity: &appplatform.SpringCloudAppIdentityArgs{
Type: pulumi.String("SystemAssigned"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.SpringCloudApp;
import com.pulumi.azure.appplatform.SpringCloudAppArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudAppIdentityArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.name("example-springcloud")
.resourceGroupName(example.name())
.location(example.location())
.build());
var exampleSpringCloudApp = new SpringCloudApp("exampleSpringCloudApp", SpringCloudAppArgs.builder()
.name("example-springcloudapp")
.resourceGroupName(example.name())
.serviceName(exampleSpringCloudService.name())
.identity(SpringCloudAppIdentityArgs.builder()
.type("SystemAssigned")
.build())
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
name: example
properties:
name: example-springcloud
resourceGroupName: ${example.name}
location: ${example.location}
exampleSpringCloudApp:
type: azure:appplatform:SpringCloudApp
name: example
properties:
name: example-springcloudapp
resourceGroupName: ${example.name}
serviceName: ${exampleSpringCloudService.name}
identity:
type: SystemAssigned

Import

Spring Cloud Application can be imported using the resource id, e.g.

$ pulumi import azure:appplatform/springCloudApp:SpringCloudApp example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.AppPlatform/spring/myservice/apps/myapp

Constructors

Link copied to clipboard
constructor(addonJson: Output<String>? = null, customPersistentDisks: Output<List<SpringCloudAppCustomPersistentDiskArgs>>? = null, httpsOnly: Output<Boolean>? = null, identity: Output<SpringCloudAppIdentityArgs>? = null, ingressSettings: Output<SpringCloudAppIngressSettingsArgs>? = null, isPublic: Output<Boolean>? = null, name: Output<String>? = null, persistentDisk: Output<SpringCloudAppPersistentDiskArgs>? = null, publicEndpointEnabled: Output<Boolean>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, tlsEnabled: Output<Boolean>? = null)

Properties

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

A JSON object that contains the addon configurations of the Spring Cloud Service.

Link copied to clipboard

A custom_persistent_disk block as defined below.

Link copied to clipboard
val httpsOnly: Output<Boolean>? = null

Is only HTTPS allowed? Defaults to false.

Link copied to clipboard

An identity block as defined below.

Link copied to clipboard

An ingress_settings block as defined below.

Link copied to clipboard
val isPublic: Output<Boolean>? = null

Does the Spring Cloud Application have public endpoint? Defaults to false.

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

Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.

Link copied to clipboard

An persistent_disk block as defined below.

Link copied to clipboard
val publicEndpointEnabled: Output<Boolean>? = null

Should the App in vnet injection instance exposes endpoint which could be accessed from Internet?

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

Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.

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

Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.

Link copied to clipboard
val tlsEnabled: Output<Boolean>? = null

Is End to End TLS Enabled? Defaults to false.

Functions

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