Azure App Service (Web Apps) Token

This page shows how to write Terraform and Azure Resource Manager for App Service (Web Apps) Token and write them securely.

azurerm_source_control_token (Terraform)

The Token in App Service (Web Apps) can be configured in Terraform with the resource name azurerm_source_control_token. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • type - (Required) The Token type. Possible values include Bitbucket, Dropbox, Github, and OneDrive.

  • token - (Required) The Access Token.

NOTE: The token used for deploying App Service needs the following permissions: repo and workflow.

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the App Service Source GitHub Token.

Explanation in Terraform Registry

Manages an App Service Source Control Token.

NOTE: This resource can only manage the token for the user currently running Terraform. Managing tokens for another user is not supported by the service. !> Note: This Resource is coming in version 3.0 of the Azure Provider and is available as an opt-in Beta - more information can be found in the upcoming version 3.0 of the Azure Provider.

Tips: Best Practices for The Other Azure App Service (Web Apps) Resources

In addition to the azurerm_app_service, Azure App Service (Web Apps) has the other resources that should be configured for security reasons. Please check some examples of those resources and precautions.

risk-label

azurerm_app_service

Ensure your App Service is accessible via HTTPS only

It is better to configure the App Service to be accessible via HTTPS only. By default, both HTTP and HTTPS are available.

risk-label

azurerm_function_app

Ensure to enable authentication to prevent anonymous request being accepted

It is better to enable authentication to prevent anonymous requests and ensure all communications in the application are authenticated.

Review your Azure App Service (Web Apps) settings

In addition to the above, there are other security points you should be aware of making sure that your .tf files are protected in Shisho Cloud.

Microsoft.Web/sourcecontrols (Azure Resource Manager)

The sourcecontrols in Microsoft.Web can be configured in Azure Resource Manager with the resource name Microsoft.Web/sourcecontrols. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Frequently asked questions

What is Azure App Service (Web Apps) Token?

Azure App Service (Web Apps) Token is a resource for App Service (Web Apps) of Microsoft Azure. Settings can be wrote in Terraform.