Skip to content

azurermAppServiceSourceControlToken

Manages an App Service source control token.

!> NOTE: This resource has been deprecated in version 3.0 of the AzureRM provider and will be removed in version 4.0. Please use azurermServicePlan 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

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
new azurerm.appServiceSourceControlToken.AppServiceSourceControlToken(
  this,
  "example",
  {
    token: "7e57735e77e577e57",
    type: "GitHub",
  }
);

Argument Reference

The following arguments are supported:

  • type - (Required) The source control type. Possible values are bitBucket, dropbox, gitHub and oneDrive.

  • token - (Required) The OAuth access token.

  • tokenSecret - (Optional) The OAuth access token secret.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 30 minutes) Used when creating the App Service Source Control Token.
  • update - (Defaults to 30 minutes) Used when updating the App Service Source Control Token.
  • read - (Defaults to 5 minutes) Used when retrieving the App Service Source Control Token.
  • delete - (Defaults to 30 minutes) Used when deleting the App Service Source Control Token.

Import

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

terraform import azurerm_app_service_source_control_token.example {type}