We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.appplatform.getSpringCloudApp
Explore with Pulumi AI
Use this data source to access information about an existing Spring Cloud Application.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appplatform.getSpringCloudApp({
    name: exampleAzurermSpringCloudApp.name,
    resourceGroupName: exampleAzurermSpringCloudApp.resourceGroupName,
    serviceName: exampleAzurermSpringCloudApp.serviceName,
});
export const springCloudAppId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appplatform.get_spring_cloud_app(name=example_azurerm_spring_cloud_app["name"],
    resource_group_name=example_azurerm_spring_cloud_app["resourceGroupName"],
    service_name=example_azurerm_spring_cloud_app["serviceName"])
pulumi.export("springCloudAppId", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := appplatform.LookupSpringCloudApp(ctx, &appplatform.LookupSpringCloudAppArgs{
			Name:              exampleAzurermSpringCloudApp.Name,
			ResourceGroupName: exampleAzurermSpringCloudApp.ResourceGroupName,
			ServiceName:       exampleAzurermSpringCloudApp.ServiceName,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("springCloudAppId", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.AppPlatform.GetSpringCloudApp.Invoke(new()
    {
        Name = exampleAzurermSpringCloudApp.Name,
        ResourceGroupName = exampleAzurermSpringCloudApp.ResourceGroupName,
        ServiceName = exampleAzurermSpringCloudApp.ServiceName,
    });
    return new Dictionary<string, object?>
    {
        ["springCloudAppId"] = example.Apply(getSpringCloudAppResult => getSpringCloudAppResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appplatform.AppplatformFunctions;
import com.pulumi.azure.appplatform.inputs.GetSpringCloudAppArgs;
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) {
        final var example = AppplatformFunctions.getSpringCloudApp(GetSpringCloudAppArgs.builder()
            .name(exampleAzurermSpringCloudApp.name())
            .resourceGroupName(exampleAzurermSpringCloudApp.resourceGroupName())
            .serviceName(exampleAzurermSpringCloudApp.serviceName())
            .build());
        ctx.export("springCloudAppId", example.applyValue(getSpringCloudAppResult -> getSpringCloudAppResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:appplatform:getSpringCloudApp
      arguments:
        name: ${exampleAzurermSpringCloudApp.name}
        resourceGroupName: ${exampleAzurermSpringCloudApp.resourceGroupName}
        serviceName: ${exampleAzurermSpringCloudApp.serviceName}
outputs:
  springCloudAppId: ${example.id}
Using getSpringCloudApp
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSpringCloudApp(args: GetSpringCloudAppArgs, opts?: InvokeOptions): Promise<GetSpringCloudAppResult>
function getSpringCloudAppOutput(args: GetSpringCloudAppOutputArgs, opts?: InvokeOptions): Output<GetSpringCloudAppResult>def get_spring_cloud_app(name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         service_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetSpringCloudAppResult
def get_spring_cloud_app_output(name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         service_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetSpringCloudAppResult]func LookupSpringCloudApp(ctx *Context, args *LookupSpringCloudAppArgs, opts ...InvokeOption) (*LookupSpringCloudAppResult, error)
func LookupSpringCloudAppOutput(ctx *Context, args *LookupSpringCloudAppOutputArgs, opts ...InvokeOption) LookupSpringCloudAppResultOutput> Note: This function is named LookupSpringCloudApp in the Go SDK.
public static class GetSpringCloudApp 
{
    public static Task<GetSpringCloudAppResult> InvokeAsync(GetSpringCloudAppArgs args, InvokeOptions? opts = null)
    public static Output<GetSpringCloudAppResult> Invoke(GetSpringCloudAppInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSpringCloudAppResult> getSpringCloudApp(GetSpringCloudAppArgs args, InvokeOptions options)
public static Output<GetSpringCloudAppResult> getSpringCloudApp(GetSpringCloudAppArgs args, InvokeOptions options)
fn::invoke:
  function: azure:appplatform/getSpringCloudApp:getSpringCloudApp
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- The name of the Spring Cloud Application.
- ResourceGroup stringName 
- The name of the Resource Group where the Spring Cloud Application exists.
- ServiceName string
- The name of the Spring Cloud Service.
- Name string
- The name of the Spring Cloud Application.
- ResourceGroup stringName 
- The name of the Resource Group where the Spring Cloud Application exists.
- ServiceName string
- The name of the Spring Cloud Service.
- name String
- The name of the Spring Cloud Application.
- resourceGroup StringName 
- The name of the Resource Group where the Spring Cloud Application exists.
- serviceName String
- The name of the Spring Cloud Service.
- name string
- The name of the Spring Cloud Application.
- resourceGroup stringName 
- The name of the Resource Group where the Spring Cloud Application exists.
- serviceName string
- The name of the Spring Cloud Service.
- name str
- The name of the Spring Cloud Application.
- resource_group_ strname 
- The name of the Resource Group where the Spring Cloud Application exists.
- service_name str
- The name of the Spring Cloud Service.
- name String
- The name of the Spring Cloud Application.
- resourceGroup StringName 
- The name of the Resource Group where the Spring Cloud Application exists.
- serviceName String
- The name of the Spring Cloud Service.
getSpringCloudApp Result
The following output properties are available:
- Fqdn string
- The Fully Qualified DNS Name.
- HttpsOnly bool
- Is only HTTPS allowed?
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<GetSpring Cloud App Identity> 
- An identityblock as defined below.
- IsPublic bool
- Does the Spring Cloud Application have public endpoint?
- Name string
- PersistentDisks List<GetSpring Cloud App Persistent Disk> 
- A persistent_diskblock as defined below.
- ResourceGroup stringName 
- ServiceName string
- TlsEnabled bool
- Is End to End TLS Enabled?
- Url string
- The public endpoint of the Spring Cloud Application.
- Fqdn string
- The Fully Qualified DNS Name.
- HttpsOnly bool
- Is only HTTPS allowed?
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]GetSpring Cloud App Identity 
- An identityblock as defined below.
- IsPublic bool
- Does the Spring Cloud Application have public endpoint?
- Name string
- PersistentDisks []GetSpring Cloud App Persistent Disk 
- A persistent_diskblock as defined below.
- ResourceGroup stringName 
- ServiceName string
- TlsEnabled bool
- Is End to End TLS Enabled?
- Url string
- The public endpoint of the Spring Cloud Application.
- fqdn String
- The Fully Qualified DNS Name.
- httpsOnly Boolean
- Is only HTTPS allowed?
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<GetSpring Cloud App Identity> 
- An identityblock as defined below.
- isPublic Boolean
- Does the Spring Cloud Application have public endpoint?
- name String
- persistentDisks List<GetSpring Cloud App Persistent Disk> 
- A persistent_diskblock as defined below.
- resourceGroup StringName 
- serviceName String
- tlsEnabled Boolean
- Is End to End TLS Enabled?
- url String
- The public endpoint of the Spring Cloud Application.
- fqdn string
- The Fully Qualified DNS Name.
- httpsOnly boolean
- Is only HTTPS allowed?
- id string
- The provider-assigned unique ID for this managed resource.
- identities
GetSpring Cloud App Identity[] 
- An identityblock as defined below.
- isPublic boolean
- Does the Spring Cloud Application have public endpoint?
- name string
- persistentDisks GetSpring Cloud App Persistent Disk[] 
- A persistent_diskblock as defined below.
- resourceGroup stringName 
- serviceName string
- tlsEnabled boolean
- Is End to End TLS Enabled?
- url string
- The public endpoint of the Spring Cloud Application.
- fqdn str
- The Fully Qualified DNS Name.
- https_only bool
- Is only HTTPS allowed?
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[GetSpring Cloud App Identity] 
- An identityblock as defined below.
- is_public bool
- Does the Spring Cloud Application have public endpoint?
- name str
- persistent_disks Sequence[GetSpring Cloud App Persistent Disk] 
- A persistent_diskblock as defined below.
- resource_group_ strname 
- service_name str
- tls_enabled bool
- Is End to End TLS Enabled?
- url str
- The public endpoint of the Spring Cloud Application.
- fqdn String
- The Fully Qualified DNS Name.
- httpsOnly Boolean
- Is only HTTPS allowed?
- id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- An identityblock as defined below.
- isPublic Boolean
- Does the Spring Cloud Application have public endpoint?
- name String
- persistentDisks List<Property Map>
- A persistent_diskblock as defined below.
- resourceGroup StringName 
- serviceName String
- tlsEnabled Boolean
- Is End to End TLS Enabled?
- url String
- The public endpoint of the Spring Cloud Application.
Supporting Types
GetSpringCloudAppIdentity    
- IdentityIds List<string>
- PrincipalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- TenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- Type string
- The Type of Managed Identity assigned to the Spring Cloud Application.
- IdentityIds []string
- PrincipalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- TenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- Type string
- The Type of Managed Identity assigned to the Spring Cloud Application.
- identityIds List<String>
- principalId String
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenantId String
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- type String
- The Type of Managed Identity assigned to the Spring Cloud Application.
- identityIds string[]
- principalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- type string
- The Type of Managed Identity assigned to the Spring Cloud Application.
- identity_ids Sequence[str]
- principal_id str
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenant_id str
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- type str
- The Type of Managed Identity assigned to the Spring Cloud Application.
- identityIds List<String>
- principalId String
- The Principal ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- tenantId String
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this Spring Cloud Application.
- type String
- The Type of Managed Identity assigned to the Spring Cloud Application.
GetSpringCloudAppPersistentDisk     
- mount_path str
- The mount path of the persistent disk.
- size_in_ intgb 
- The size of the persistent disk in GB.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.