getSpringCloudService

Use this data source to access information about an existing Spring Cloud Service. !>Note: Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the azure.appplatform.SpringCloudService data source 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 = azure.appplatform.getSpringCloudService({
name: exampleAzurermSpringCloudService.name,
resourceGroupName: exampleAzurermSpringCloudService.resourceGroupName,
});
export const springCloudServiceId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appplatform.get_spring_cloud_service(name=example_azurerm_spring_cloud_service["name"],
resource_group_name=example_azurerm_spring_cloud_service["resourceGroupName"])
pulumi.export("springCloudServiceId", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.AppPlatform.GetSpringCloudService.Invoke(new()
{
Name = exampleAzurermSpringCloudService.Name,
ResourceGroupName = exampleAzurermSpringCloudService.ResourceGroupName,
});
return new Dictionary<string, object?>
{
["springCloudServiceId"] = example.Apply(getSpringCloudServiceResult => getSpringCloudServiceResult.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.LookupSpringCloudService(ctx, &appplatform.LookupSpringCloudServiceArgs{
Name: exampleAzurermSpringCloudService.Name,
ResourceGroupName: exampleAzurermSpringCloudService.ResourceGroupName,
}, nil)
if err != nil {
return err
}
ctx.Export("springCloudServiceId", example.Id)
return nil
})
}
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.GetSpringCloudServiceArgs;
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.getSpringCloudService(GetSpringCloudServiceArgs.builder()
.name(exampleAzurermSpringCloudService.name())
.resourceGroupName(exampleAzurermSpringCloudService.resourceGroupName())
.build());
ctx.export("springCloudServiceId", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:appplatform:getSpringCloudService
arguments:
name: ${exampleAzurermSpringCloudService.name}
resourceGroupName: ${exampleAzurermSpringCloudService.resourceGroupName}
outputs:
springCloudServiceId: ${example.id}

Return

A collection of values returned by getSpringCloudService.

Parameters

argument

A collection of arguments for invoking getSpringCloudService.


suspend fun getSpringCloudService(name: String, resourceGroupName: String): GetSpringCloudServiceResult

Return

A collection of values returned by getSpringCloudService.

Parameters

name

Specifies The name of the Spring Cloud Service resource.

resourceGroupName

Specifies the name of the Resource Group where the Spring Cloud Service exists.

See also


Return

A collection of values returned by getSpringCloudService.

Parameters

argument

Builder for com.pulumi.azure.appplatform.kotlin.inputs.GetSpringCloudServicePlainArgs.

See also