SpringCloudService

class SpringCloudService : KotlinCustomResource

Manages an Azure Spring Cloud Service.

Example Usage

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.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.appplatform.SpringCloudService;
import com.pulumi.azure.appplatform.SpringCloudServiceArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudServiceTraceArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.skuName("S0")
.configServerGitSetting(SpringCloudServiceConfigServerGitSettingArgs.builder()
.uri("https://github.com/Azure-Samples/piggymetrics")
.label("config")
.searchPaths(
"dir1",
"dir2")
.build())
.trace(SpringCloudServiceTraceArgs.builder()
.connectionString(exampleInsights.connectionString())
.sampleRate(10)
.build())
.tags(Map.of("Env", "staging"))
.build());
}
}

Import

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

$ pulumi import azure:appplatform/springCloudService:SpringCloudService example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AppPlatform/spring/spring1

Properties

Link copied to clipboard

Specifies the size for this Spring Cloud Service's default build agent pool. Possible values are S1, S2, S3, S4 and S5. This field is applicable only for Spring Cloud Service with enterprise tier.

Link copied to clipboard

A config_server_git_setting block as defined below. This field is applicable only for Spring Cloud Service with basic and standard tier.

Link copied to clipboard

One or more container_registry block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.

Link copied to clipboard

A default_build_service block as defined below. This field is applicable only for Spring Cloud Service with enterprise tier.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.

Link copied to clipboard

Should the log stream in vnet injection instance could be accessed from Internet?

Link copied to clipboard

A marketplace block as defined below. Can only be specified when sku is set to E0.

Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard

A network block as defined below. Changing this forces a new resource to be created.

Link copied to clipboard

A list of the outbound Public IP Addresses used by this Spring Cloud Service.

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

A list of required_network_traffic_rules blocks as defined below.

Link copied to clipboard

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

Link copied to clipboard

Whether enable the default Service Registry. This field is applicable only for Spring Cloud Service with enterprise tier.

Link copied to clipboard

The ID of the Spring Cloud Service Registry.

Link copied to clipboard
val skuName: Output<String>?

Specifies the SKU Name for this Spring Cloud Service. Possible values are B0, S0 and E0. Defaults to S0. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags to assign to the resource.

Link copied to clipboard

A trace block as defined below.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneRedundant: Output<Boolean>?

Whether zone redundancy is enabled for this Spring Cloud Service. Defaults to false.