Config Server
Config Server resource API Version: 2020-07-01.
Example Usage
ConfigServers_UpdatePut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var configServer = new AzureNative.AppPlatform.ConfigServer("configServer", new()
{
Properties = new AzureNative.AppPlatform.Inputs.ConfigServerPropertiesArgs
{
ConfigServer = new AzureNative.AppPlatform.Inputs.ConfigServerSettingsArgs
{
GitProperty = new AzureNative.AppPlatform.Inputs.ConfigServerGitPropertyArgs
{
Label = "master",
SearchPaths = new[]
{
"/",
},
Uri = "https://github.com/fake-user/fake-repository.git",
},
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.ConfigServer;
import com.pulumi.azurenative.appplatform.ConfigServerArgs;
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 configServer = new ConfigServer("configServer", ConfigServerArgs.builder()
.properties(Map.of("configServer", Map.of("gitProperty", Map.ofEntries(
Map.entry("label", "master"),
Map.entry("searchPaths", "/"),
Map.entry("uri", "https://github.com/fake-user/fake-repository.git")
))))
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:appplatform:ConfigServer default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/configServers/default
Content copied to clipboard