SpringCloudApp

class SpringCloudApp : KotlinCustomResource

Manage an Azure Spring Cloud Application.

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

Properties

Link copied to clipboard
val addonJson: Output<String>

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 fqdn: Output<String>

The Fully Qualified DNS Name of the Spring Application in the service.

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

Is only HTTPS allowed? Defaults to false.

Link copied to clipboard
val id: Output<String>
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>?

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

Link copied to clipboard
val name: Output<String>

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

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

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

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>

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>?

Is End to End TLS Enabled? Defaults to false.

Link copied to clipboard
val url: Output<String>

The public endpoint of the Spring Cloud Application.

Link copied to clipboard
val urn: Output<String>