Dev Tool Portal
Dev Tool Portal resource Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview. Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appplatform [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
DevToolPortals_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var devToolPortal = new AzureNative.AppPlatform.DevToolPortal("devToolPortal", new()
{
DevToolPortalName = "default",
Properties = new AzureNative.AppPlatform.Inputs.DevToolPortalPropertiesArgs
{
Features = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureSettingsArgs
{
ApplicationAccelerator = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureDetailArgs
{
State = AzureNative.AppPlatform.DevToolPortalFeatureState.Enabled,
},
ApplicationLiveView = new AzureNative.AppPlatform.Inputs.DevToolPortalFeatureDetailArgs
{
State = AzureNative.AppPlatform.DevToolPortalFeatureState.Enabled,
},
},
Public = true,
SsoProperties = new AzureNative.AppPlatform.Inputs.DevToolPortalSsoPropertiesArgs
{
ClientId = "00000000-0000-0000-0000-000000000000",
ClientSecret = "xxxxx",
MetadataUrl = "https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration",
Scopes = new[]
{
"openid",
},
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
Content copied to clipboard
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewDevToolPortal(ctx, "devToolPortal", &appplatform.DevToolPortalArgs{
DevToolPortalName: pulumi.String("default"),
Properties: &appplatform.DevToolPortalPropertiesArgs{
Features: &appplatform.DevToolPortalFeatureSettingsArgs{
ApplicationAccelerator: &appplatform.DevToolPortalFeatureDetailArgs{
State: pulumi.String(appplatform.DevToolPortalFeatureStateEnabled),
},
ApplicationLiveView: &appplatform.DevToolPortalFeatureDetailArgs{
State: pulumi.String(appplatform.DevToolPortalFeatureStateEnabled),
},
},
Public: pulumi.Bool(true),
SsoProperties: &appplatform.DevToolPortalSsoPropertiesArgs{
ClientId: pulumi.String("00000000-0000-0000-0000-000000000000"),
ClientSecret: pulumi.String("xxxxx"),
MetadataUrl: pulumi.String("https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration"),
Scopes: pulumi.StringArray{
pulumi.String("openid"),
},
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
if err != nil {
return err
}
return nil
})
}
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.DevToolPortal;
import com.pulumi.azurenative.appplatform.DevToolPortalArgs;
import com.pulumi.azurenative.appplatform.inputs.DevToolPortalPropertiesArgs;
import com.pulumi.azurenative.appplatform.inputs.DevToolPortalFeatureSettingsArgs;
import com.pulumi.azurenative.appplatform.inputs.DevToolPortalFeatureDetailArgs;
import com.pulumi.azurenative.appplatform.inputs.DevToolPortalSsoPropertiesArgs;
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 devToolPortal = new DevToolPortal("devToolPortal", DevToolPortalArgs.builder()
.devToolPortalName("default")
.properties(DevToolPortalPropertiesArgs.builder()
.features(DevToolPortalFeatureSettingsArgs.builder()
.applicationAccelerator(DevToolPortalFeatureDetailArgs.builder()
.state("Enabled")
.build())
.applicationLiveView(DevToolPortalFeatureDetailArgs.builder()
.state("Enabled")
.build())
.build())
.public_(true)
.ssoProperties(DevToolPortalSsoPropertiesArgs.builder()
.clientId("00000000-0000-0000-0000-000000000000")
.clientSecret("xxxxx")
.metadataUrl("https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000/v2.0/.well-known/openid-configuration")
.scopes("openid")
.build())
.build())
.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:DevToolPortal default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/DevToolPortals/{devToolPortalName}
Content copied to clipboard