We recommend using Azure Native.
azure.appplatform.SpringCloudConfigurationService
Explore with Pulumi AI
Manages a Spring Cloud Configuration Service.
NOTE: This resource is applicable only for Spring Cloud Service with enterprise tier.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
{
Location = "West Europe",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("exampleSpringCloudService", new()
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "E0",
});
var exampleSpringCloudConfigurationService = new Azure.AppPlatform.SpringCloudConfigurationService("exampleSpringCloudConfigurationService", new()
{
SpringCloudServiceId = exampleSpringCloudService.Id,
Repositories = new[]
{
new Azure.AppPlatform.Inputs.SpringCloudConfigurationServiceRepositoryArgs
{
Name = "fake",
Label = "master",
Patterns = new[]
{
"app/dev",
},
Uri = "https://github.com/Azure-Samples/piggymetrics",
SearchPaths = new[]
{
"dir1",
"dir2",
},
StrictHostKeyChecking = false,
Username = "adminuser",
Password = "H@Sh1CoR3!",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "exampleSpringCloudService", &appplatform.SpringCloudServiceArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("E0"),
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudConfigurationService(ctx, "exampleSpringCloudConfigurationService", &appplatform.SpringCloudConfigurationServiceArgs{
SpringCloudServiceId: exampleSpringCloudService.ID(),
Repositories: appplatform.SpringCloudConfigurationServiceRepositoryArray{
&appplatform.SpringCloudConfigurationServiceRepositoryArgs{
Name: pulumi.String("fake"),
Label: pulumi.String("master"),
Patterns: pulumi.StringArray{
pulumi.String("app/dev"),
},
Uri: pulumi.String("https://github.com/Azure-Samples/piggymetrics"),
SearchPaths: pulumi.StringArray{
pulumi.String("dir1"),
pulumi.String("dir2"),
},
StrictHostKeyChecking: pulumi.Bool(false),
Username: pulumi.String("adminuser"),
Password: pulumi.String("H@Sh1CoR3!"),
},
},
})
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.SpringCloudConfigurationService;
import com.pulumi.azure.appplatform.SpringCloudConfigurationServiceArgs;
import com.pulumi.azure.appplatform.inputs.SpringCloudConfigurationServiceRepositoryArgs;
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 exampleSpringCloudService = new SpringCloudService("exampleSpringCloudService", SpringCloudServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("E0")
.build());
var exampleSpringCloudConfigurationService = new SpringCloudConfigurationService("exampleSpringCloudConfigurationService", SpringCloudConfigurationServiceArgs.builder()
.springCloudServiceId(exampleSpringCloudService.id())
.repositories(SpringCloudConfigurationServiceRepositoryArgs.builder()
.name("fake")
.label("master")
.patterns("app/dev")
.uri("https://github.com/Azure-Samples/piggymetrics")
.searchPaths(
"dir1",
"dir2")
.strictHostKeyChecking(false)
.username("adminuser")
.password("H@Sh1CoR3!")
.build())
.build());
}
}
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_spring_cloud_service = azure.appplatform.SpringCloudService("exampleSpringCloudService",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku_name="E0")
example_spring_cloud_configuration_service = azure.appplatform.SpringCloudConfigurationService("exampleSpringCloudConfigurationService",
spring_cloud_service_id=example_spring_cloud_service.id,
repositories=[azure.appplatform.SpringCloudConfigurationServiceRepositoryArgs(
name="fake",
label="master",
patterns=["app/dev"],
uri="https://github.com/Azure-Samples/piggymetrics",
search_paths=[
"dir1",
"dir2",
],
strict_host_key_checking=False,
username="adminuser",
password="H@Sh1CoR3!",
)])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("exampleSpringCloudService", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
skuName: "E0",
});
const exampleSpringCloudConfigurationService = new azure.appplatform.SpringCloudConfigurationService("exampleSpringCloudConfigurationService", {
springCloudServiceId: exampleSpringCloudService.id,
repositories: [{
name: "fake",
label: "master",
patterns: ["app/dev"],
uri: "https://github.com/Azure-Samples/piggymetrics",
searchPaths: [
"dir1",
"dir2",
],
strictHostKeyChecking: false,
username: "adminuser",
password: "H@Sh1CoR3!",
}],
});
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
properties:
location: West Europe
exampleSpringCloudService:
type: azure:appplatform:SpringCloudService
properties:
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
skuName: E0
exampleSpringCloudConfigurationService:
type: azure:appplatform:SpringCloudConfigurationService
properties:
springCloudServiceId: ${exampleSpringCloudService.id}
repositories:
- name: fake
label: master
patterns:
- app/dev
uri: https://github.com/Azure-Samples/piggymetrics
searchPaths:
- dir1
- dir2
strictHostKeyChecking: false
username: adminuser
password: H@Sh1CoR3!
Create SpringCloudConfigurationService Resource
new SpringCloudConfigurationService(name: string, args: SpringCloudConfigurationServiceArgs, opts?: CustomResourceOptions);
@overload
def SpringCloudConfigurationService(resource_name: str,
opts: Optional[ResourceOptions] = None,
generation: Optional[str] = None,
name: Optional[str] = None,
repositories: Optional[Sequence[SpringCloudConfigurationServiceRepositoryArgs]] = None,
spring_cloud_service_id: Optional[str] = None)
@overload
def SpringCloudConfigurationService(resource_name: str,
args: SpringCloudConfigurationServiceArgs,
opts: Optional[ResourceOptions] = None)
func NewSpringCloudConfigurationService(ctx *Context, name string, args SpringCloudConfigurationServiceArgs, opts ...ResourceOption) (*SpringCloudConfigurationService, error)
public SpringCloudConfigurationService(string name, SpringCloudConfigurationServiceArgs args, CustomResourceOptions? opts = null)
public SpringCloudConfigurationService(String name, SpringCloudConfigurationServiceArgs args)
public SpringCloudConfigurationService(String name, SpringCloudConfigurationServiceArgs args, CustomResourceOptions options)
type: azure:appplatform:SpringCloudConfigurationService
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudConfigurationServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SpringCloudConfigurationServiceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SpringCloudConfigurationServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudConfigurationServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SpringCloudConfigurationServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SpringCloudConfigurationService Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The SpringCloudConfigurationService resource accepts the following input properties:
- Spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- Generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- Name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- Repositories
List<Spring
Cloud Configuration Service Repository> One or more
repository
blocks as defined below.
- Spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- Generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- Name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- Repositories
[]Spring
Cloud Configuration Service Repository Args One or more
repository
blocks as defined below.
- spring
Cloud StringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation String
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name String
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
List<Spring
Cloud Configuration Service Repository> One or more
repository
blocks as defined below.
- spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
Spring
Cloud Configuration Service Repository[] One or more
repository
blocks as defined below.
- spring_
cloud_ strservice_ id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation str
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name str
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
Sequence[Spring
Cloud Configuration Service Repository Args] One or more
repository
blocks as defined below.
- spring
Cloud StringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation String
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name String
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories List<Property Map>
One or more
repository
blocks as defined below.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpringCloudConfigurationService resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing SpringCloudConfigurationService Resource
Get an existing SpringCloudConfigurationService resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpringCloudConfigurationServiceState, opts?: CustomResourceOptions): SpringCloudConfigurationService
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
generation: Optional[str] = None,
name: Optional[str] = None,
repositories: Optional[Sequence[SpringCloudConfigurationServiceRepositoryArgs]] = None,
spring_cloud_service_id: Optional[str] = None) -> SpringCloudConfigurationService
func GetSpringCloudConfigurationService(ctx *Context, name string, id IDInput, state *SpringCloudConfigurationServiceState, opts ...ResourceOption) (*SpringCloudConfigurationService, error)
public static SpringCloudConfigurationService Get(string name, Input<string> id, SpringCloudConfigurationServiceState? state, CustomResourceOptions? opts = null)
public static SpringCloudConfigurationService get(String name, Output<String> id, SpringCloudConfigurationServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- Name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- Repositories
List<Spring
Cloud Configuration Service Repository> One or more
repository
blocks as defined below.- Spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- Generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- Name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- Repositories
[]Spring
Cloud Configuration Service Repository Args One or more
repository
blocks as defined below.- Spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation String
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name String
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
List<Spring
Cloud Configuration Service Repository> One or more
repository
blocks as defined below.- spring
Cloud StringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation string
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name string
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
Spring
Cloud Configuration Service Repository[] One or more
repository
blocks as defined below.- spring
Cloud stringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation str
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name str
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories
Sequence[Spring
Cloud Configuration Service Repository Args] One or more
repository
blocks as defined below.- spring_
cloud_ strservice_ id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
- generation String
The generation of the Spring Cloud Configuration Service. Possible values are
Gen1
andGen2
.- name String
The name which should be used for this Spring Cloud Configuration Service. The only possible value is
default
. Changing this forces a new Spring Cloud Configuration Service to be created.- repositories List<Property Map>
One or more
repository
blocks as defined below.- spring
Cloud StringService Id The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created.
Supporting Types
SpringCloudConfigurationServiceRepository, SpringCloudConfigurationServiceRepositoryArgs
- Label string
Specifies the label of the repository.
- Name string
Specifies the name which should be used for this repository.
- Patterns List<string>
Specifies the collection of patterns of the repository.
- Uri string
Specifies the URI of the repository.
- Ca
Certificate stringId Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- Host
Key string Specifies the SSH public key of git repository.
- Host
Key stringAlgorithm Specifies the SSH key algorithm of git repository.
- Password string
Specifies the password of git repository basic auth.
- Private
Key string Specifies the SSH private key of git repository.
- Search
Paths List<string> Specifies a list of searching path of the repository
- Strict
Host boolKey Checking Specifies whether enable the strict host key checking.
- Username string
Specifies the username of git repository basic auth.
- Label string
Specifies the label of the repository.
- Name string
Specifies the name which should be used for this repository.
- Patterns []string
Specifies the collection of patterns of the repository.
- Uri string
Specifies the URI of the repository.
- Ca
Certificate stringId Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- Host
Key string Specifies the SSH public key of git repository.
- Host
Key stringAlgorithm Specifies the SSH key algorithm of git repository.
- Password string
Specifies the password of git repository basic auth.
- Private
Key string Specifies the SSH private key of git repository.
- Search
Paths []string Specifies a list of searching path of the repository
- Strict
Host boolKey Checking Specifies whether enable the strict host key checking.
- Username string
Specifies the username of git repository basic auth.
- label String
Specifies the label of the repository.
- name String
Specifies the name which should be used for this repository.
- patterns List<String>
Specifies the collection of patterns of the repository.
- uri String
Specifies the URI of the repository.
- ca
Certificate StringId Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- host
Key String Specifies the SSH public key of git repository.
- host
Key StringAlgorithm Specifies the SSH key algorithm of git repository.
- password String
Specifies the password of git repository basic auth.
- private
Key String Specifies the SSH private key of git repository.
- search
Paths List<String> Specifies a list of searching path of the repository
- strict
Host BooleanKey Checking Specifies whether enable the strict host key checking.
- username String
Specifies the username of git repository basic auth.
- label string
Specifies the label of the repository.
- name string
Specifies the name which should be used for this repository.
- patterns string[]
Specifies the collection of patterns of the repository.
- uri string
Specifies the URI of the repository.
- ca
Certificate stringId Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- host
Key string Specifies the SSH public key of git repository.
- host
Key stringAlgorithm Specifies the SSH key algorithm of git repository.
- password string
Specifies the password of git repository basic auth.
- private
Key string Specifies the SSH private key of git repository.
- search
Paths string[] Specifies a list of searching path of the repository
- strict
Host booleanKey Checking Specifies whether enable the strict host key checking.
- username string
Specifies the username of git repository basic auth.
- label str
Specifies the label of the repository.
- name str
Specifies the name which should be used for this repository.
- patterns Sequence[str]
Specifies the collection of patterns of the repository.
- uri str
Specifies the URI of the repository.
- ca_
certificate_ strid Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- host_
key str Specifies the SSH public key of git repository.
- host_
key_ stralgorithm Specifies the SSH key algorithm of git repository.
- password str
Specifies the password of git repository basic auth.
- private_
key str Specifies the SSH private key of git repository.
- search_
paths Sequence[str] Specifies a list of searching path of the repository
- strict_
host_ boolkey_ checking Specifies whether enable the strict host key checking.
- username str
Specifies the username of git repository basic auth.
- label String
Specifies the label of the repository.
- name String
Specifies the name which should be used for this repository.
- patterns List<String>
Specifies the collection of patterns of the repository.
- uri String
Specifies the URI of the repository.
- ca
Certificate StringId Specifies the ID of the Certificate Authority used when retrieving the Git Repository via HTTPS.
- host
Key String Specifies the SSH public key of git repository.
- host
Key StringAlgorithm Specifies the SSH key algorithm of git repository.
- password String
Specifies the password of git repository basic auth.
- private
Key String Specifies the SSH private key of git repository.
- search
Paths List<String> Specifies a list of searching path of the repository
- strict
Host BooleanKey Checking Specifies whether enable the strict host key checking.
- username String
Specifies the username of git repository basic auth.
Import
Spring Cloud Configuration Services can be imported using the resource id
, e.g.
$ pulumi import azure:appplatform/springCloudConfigurationService:SpringCloudConfigurationService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/configurationServices/configurationService1
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.