SourceCodeToken

class SourceCodeToken : KotlinCustomResource

Manages an App Service source control token. !>NOTE: This resource has been deprecated in version 5.0 of the provider and will be removed in version 6.0. Please use azure.appservice.ServicePlan resource instead.

NOTE: Source Control Tokens are configured at the subscription level, not on each App Service - as such this can only be configured Subscription-wide

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.appservice.SourceCodeToken("example", {
type: "GitHub",
token: "7e57735e77e577e57",
});
import pulumi
import pulumi_azure as azure
example = azure.appservice.SourceCodeToken("example",
type="GitHub",
token="7e57735e77e577e57")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.AppService.SourceCodeToken("example", new()
{
Type = "GitHub",
Token = "7e57735e77e577e57",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appservice.NewSourceCodeToken(ctx, "example", &appservice.SourceCodeTokenArgs{
Type: pulumi.String("GitHub"),
Token: pulumi.String("7e57735e77e577e57"),
})
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.appservice.SourceCodeToken;
import com.pulumi.azure.appservice.SourceCodeTokenArgs;
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 example = new SourceCodeToken("example", SourceCodeTokenArgs.builder()
.type("GitHub")
.token("7e57735e77e577e57")
.build());
}
}
resources:
example:
type: azure:appservice:SourceCodeToken
properties:
type: GitHub
token: 7e57735e77e577e57

Import

App Service Source Control Token's can be imported using the type, e.g.

$ pulumi import azure:appservice/sourceCodeToken:SourceCodeToken example {type}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val token: Output<String>

The OAuth access token.

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

The OAuth access token secret.

Link copied to clipboard
val type: Output<String>

The source control type. Possible values are BitBucket, Dropbox, GitHub and OneDrive.

Link copied to clipboard
val urn: Output<String>