Documentation ¶
Index ¶
- Constants
- func AadAuthSettingsSchema() *pluginsdk.Schema
- func AadAuthSettingsSchemaComputed() *pluginsdk.Schema
- func AuthSettingsSchema() *pluginsdk.Schema
- func AuthSettingsSchemaComputed() *pluginsdk.Schema
- func BackupSchema() *pluginsdk.Schema
- func BackupSchemaComputed() *pluginsdk.Schema
- func ConnectionStringSchema() *pluginsdk.Schema
- func ConnectionStringSchemaComputed() *pluginsdk.Schema
- func CorsSettingsSchema() *pluginsdk.Schema
- func CorsSettingsSchemaComputed() *pluginsdk.Schema
- func DisabledLogsConfig() *web.SiteLogsConfig
- func EncodeFunctionAppLinuxFxVersion(input []ApplicationStackLinuxFunctionApp) *string
- func EncodeFunctionAppWindowsFxVersion(input []ApplicationStackWindowsFunctionApp) *string
- func ExpandAppSettingsForCreate(settings map[string]string) *[]web.NameValuePair
- func ExpandAppSettingsForUpdate(settings map[string]string) *web.StringDictionary
- func ExpandAuthSettings(auth []AuthSettings) *web.SiteAuthSettings
- func ExpandBackupConfig(backupConfigs []Backup) *web.BackupRequest
- func ExpandConnectionStrings(connectionStringsConfig []ConnectionString) *web.ConnectionStringDictionary
- func ExpandCorsSettings(input []CorsSetting) *web.CorsSettings
- func ExpandFunctionAppAppServiceLogs(input []FunctionAppAppServiceLogs) web.SiteLogsConfig
- func ExpandIpRestrictions(restrictions []IpRestriction) (*[]web.IPSecurityRestriction, error)
- func ExpandLogsConfig(config []LogsConfig) *web.SiteLogsConfig
- func ExpandSiteConfigLinux(siteConfig []SiteConfigLinux, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigLinuxFunctionApp(siteConfig []SiteConfigLinuxFunctionApp, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigLinuxFunctionAppSlot(siteConfig []SiteConfigLinuxFunctionAppSlot, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigLinuxWebAppSlot(siteConfig []SiteConfigLinuxWebAppSlot, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigWindows(siteConfig []SiteConfigWindows, existing *web.SiteConfig, ...) (*web.SiteConfig, *string, error)
- func ExpandSiteConfigWindowsFunctionApp(siteConfig []SiteConfigWindowsFunctionApp, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigWindowsFunctionAppSlot(siteConfig []SiteConfigWindowsFunctionAppSlot, existing *web.SiteConfig, ...) (*web.SiteConfig, error)
- func ExpandSiteConfigWindowsWebAppSlot(siteConfig []SiteConfigWindowsWebAppSlot, existing *web.SiteConfig, ...) (*web.SiteConfig, *string, error)
- func ExpandStorageConfig(storageConfigs []StorageAccount) *web.AzureStoragePropertyDictionaryResource
- func FacebookAuthSettingsSchema() *pluginsdk.Schema
- func FacebookAuthSettingsSchemaComputed() *pluginsdk.Schema
- func FlattenAppSettings(input web.StringDictionary) (map[string]string, *int)
- func FlattenWebStringDictionary(input web.StringDictionary) map[string]string
- func FunctionAppAppServiceLogsSchema() *pluginsdk.Schema
- func FunctionAppAppServiceLogsSchemaComputed() *pluginsdk.Schema
- func GithubAuthSettingsSchema() *pluginsdk.Schema
- func GithubAuthSettingsSchemaComputed() *pluginsdk.Schema
- func GoogleAuthSettingsSchema() *pluginsdk.Schema
- func GoogleAuthSettingsSchemaComputed() *pluginsdk.Schema
- func IpRestrictionHeadersSchema() *pluginsdk.Schema
- func IpRestrictionHeadersSchemaComputed() *pluginsdk.Schema
- func IpRestrictionSchema() *pluginsdk.Schema
- func IpRestrictionSchemaComputed() *pluginsdk.Schema
- func LogsConfigSchema() *pluginsdk.Schema
- func LogsConfigSchemaComputed() *pluginsdk.Schema
- func MergeUserAppSettings(systemSettings *[]web.NameValuePair, userSettings map[string]string) *[]web.NameValuePair
- func MicrosoftAuthSettingsSchema() *pluginsdk.Schema
- func MicrosoftAuthSettingsSchemaComputed() *pluginsdk.Schema
- func ParseWebJobsStorageString(input *string) (name, key string)
- func SiteConfigSchemaLinux() *pluginsdk.Schema
- func SiteConfigSchemaLinuxComputed() *pluginsdk.Schema
- func SiteConfigSchemaLinuxFunctionApp() *pluginsdk.Schema
- func SiteConfigSchemaLinuxFunctionAppComputed() *pluginsdk.Schema
- func SiteConfigSchemaLinuxFunctionAppSlot() *pluginsdk.Schema
- func SiteConfigSchemaLinuxWebAppSlot() *pluginsdk.Schema
- func SiteConfigSchemaWindows() *pluginsdk.Schema
- func SiteConfigSchemaWindowsComputed() *pluginsdk.Schema
- func SiteConfigSchemaWindowsFunctionApp() *pluginsdk.Schema
- func SiteConfigSchemaWindowsFunctionAppComputed() *pluginsdk.Schema
- func SiteConfigSchemaWindowsFunctionAppSlot() *pluginsdk.Schema
- func SiteConfigSchemaWindowsWebAppSlot() *pluginsdk.Schema
- func SiteCredentialSchema() *pluginsdk.Schema
- func StorageAccountSchema() *pluginsdk.Schema
- func StorageAccountSchemaComputed() *pluginsdk.Schema
- func StorageAccountSchemaWindows() *pluginsdk.Schema
- func TwitterAuthSettingsSchema() *pluginsdk.Schema
- func TwitterAuthSettingsSchemaComputed() *pluginsdk.Schema
- type AadAuthSettings
- type ApplicationLog
- type ApplicationStackDocker
- type ApplicationStackLinux
- type ApplicationStackLinuxFunctionApp
- type ApplicationStackWindows
- type ApplicationStackWindowsFunctionApp
- type AuthSettings
- type AutoHealActionLinux
- type AutoHealActionWindows
- type AutoHealCustomAction
- type AutoHealRequestTrigger
- type AutoHealSettingLinux
- type AutoHealSettingWindows
- type AutoHealSlowRequest
- type AutoHealStatusCodeTrigger
- type AutoHealTriggerLinux
- type AutoHealTriggerWindows
- type AzureBlobStorage
- type AzureBlobStorageHttp
- type Backup
- type BackupSchedule
- type ConnectionString
- type CorsSetting
- type FacebookAuthSettings
- type FunctionAppAppServiceLogs
- type GithubAuthSettings
- type GoogleAuthSettings
- type HttpLog
- type IpRestriction
- type IpRestrictionHeaders
- type LogsConfig
- type LogsFileSystem
- type MicrosoftAuthSettings
- type SiteConfigLinux
- type SiteConfigLinuxFunctionApp
- type SiteConfigLinuxFunctionAppSlot
- type SiteConfigLinuxWebAppSlot
- type SiteConfigWindows
- type SiteConfigWindowsFunctionApp
- type SiteConfigWindowsFunctionAppSlot
- type SiteConfigWindowsWebAppSlot
- type SiteCredential
- type SourceControl
- type StorageAccount
- type TwitterAuthSettings
- type VirtualApplication
- type VirtualDirectory
Constants ¶
View Source
const (
StorageStringFmt = "DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;EndpointSuffix=%s"
)
Variables ¶
This section is empty.
Functions ¶
func AadAuthSettingsSchema ¶
func AuthSettingsSchema ¶
func BackupSchema ¶
func BackupSchemaComputed ¶
func ConnectionStringSchema ¶
func CorsSettingsSchema ¶
func DisabledLogsConfig ¶
func DisabledLogsConfig() *web.SiteLogsConfig
func EncodeFunctionAppLinuxFxVersion ¶
func EncodeFunctionAppLinuxFxVersion(input []ApplicationStackLinuxFunctionApp) *string
func EncodeFunctionAppWindowsFxVersion ¶
func EncodeFunctionAppWindowsFxVersion(input []ApplicationStackWindowsFunctionApp) *string
func ExpandAppSettingsForCreate ¶
func ExpandAppSettingsForCreate(settings map[string]string) *[]web.NameValuePair
func ExpandAppSettingsForUpdate ¶
func ExpandAppSettingsForUpdate(settings map[string]string) *web.StringDictionary
func ExpandAuthSettings ¶
func ExpandAuthSettings(auth []AuthSettings) *web.SiteAuthSettings
func ExpandBackupConfig ¶
func ExpandBackupConfig(backupConfigs []Backup) *web.BackupRequest
func ExpandConnectionStrings ¶
func ExpandConnectionStrings(connectionStringsConfig []ConnectionString) *web.ConnectionStringDictionary
func ExpandCorsSettings ¶
func ExpandCorsSettings(input []CorsSetting) *web.CorsSettings
func ExpandFunctionAppAppServiceLogs ¶
func ExpandFunctionAppAppServiceLogs(input []FunctionAppAppServiceLogs) web.SiteLogsConfig
func ExpandIpRestrictions ¶
func ExpandIpRestrictions(restrictions []IpRestriction) (*[]web.IPSecurityRestriction, error)
func ExpandLogsConfig ¶
func ExpandLogsConfig(config []LogsConfig) *web.SiteLogsConfig
func ExpandSiteConfigLinux ¶
func ExpandSiteConfigLinux(siteConfig []SiteConfigLinux, existing *web.SiteConfig, metadata sdk.ResourceMetaData) (*web.SiteConfig, error)
func ExpandSiteConfigLinuxFunctionApp ¶
func ExpandSiteConfigLinuxFunctionApp(siteConfig []SiteConfigLinuxFunctionApp, existing *web.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*web.SiteConfig, error)
func ExpandSiteConfigLinuxFunctionAppSlot ¶
func ExpandSiteConfigLinuxFunctionAppSlot(siteConfig []SiteConfigLinuxFunctionAppSlot, existing *web.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*web.SiteConfig, error)
func ExpandSiteConfigLinuxWebAppSlot ¶
func ExpandSiteConfigLinuxWebAppSlot(siteConfig []SiteConfigLinuxWebAppSlot, existing *web.SiteConfig, metadata sdk.ResourceMetaData) (*web.SiteConfig, error)
func ExpandSiteConfigWindows ¶
func ExpandSiteConfigWindows(siteConfig []SiteConfigWindows, existing *web.SiteConfig, metadata sdk.ResourceMetaData) (*web.SiteConfig, *string, error)
func ExpandSiteConfigWindowsFunctionApp ¶
func ExpandSiteConfigWindowsFunctionApp(siteConfig []SiteConfigWindowsFunctionApp, existing *web.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*web.SiteConfig, error)
func ExpandSiteConfigWindowsFunctionAppSlot ¶
func ExpandSiteConfigWindowsFunctionAppSlot(siteConfig []SiteConfigWindowsFunctionAppSlot, existing *web.SiteConfig, metadata sdk.ResourceMetaData, version string, storageString string, storageUsesMSI bool) (*web.SiteConfig, error)
func ExpandSiteConfigWindowsWebAppSlot ¶
func ExpandSiteConfigWindowsWebAppSlot(siteConfig []SiteConfigWindowsWebAppSlot, existing *web.SiteConfig, metadata sdk.ResourceMetaData) (*web.SiteConfig, *string, error)
func ExpandStorageConfig ¶
func ExpandStorageConfig(storageConfigs []StorageAccount) *web.AzureStoragePropertyDictionaryResource
func FlattenAppSettings ¶
func FlattenAppSettings(input web.StringDictionary) (map[string]string, *int)
func FlattenWebStringDictionary ¶
func FlattenWebStringDictionary(input web.StringDictionary) map[string]string
func IpRestrictionSchema ¶
func LogsConfigSchema ¶
func MergeUserAppSettings ¶
func MergeUserAppSettings(systemSettings *[]web.NameValuePair, userSettings map[string]string) *[]web.NameValuePair
func SiteConfigSchemaLinux ¶
func SiteConfigSchemaWindows ¶
func SiteCredentialSchema ¶
func StorageAccountSchema ¶
Types ¶
type AadAuthSettings ¶
type ApplicationLog ¶
type ApplicationLog struct { FileSystemLevel string `tfschema:"file_system_level"` AzureBlobStorage []AzureBlobStorage `tfschema:"azure_blob_storage"` }
type ApplicationStackDocker ¶
type ApplicationStackDocker struct { RegistryURL string `tfschema:"registry_url"` RegistryUsername string `tfschema:"registry_username"` RegistryPassword string `tfschema:"registry_password"` ImageName string `tfschema:"image_name"` ImageTag string `tfschema:"image_tag"` }
func DecodeFunctionAppDockerFxString ¶
func DecodeFunctionAppDockerFxString(input string, partial ApplicationStackDocker) ([]ApplicationStackDocker, error)
type ApplicationStackLinux ¶
type ApplicationStackLinux struct { NetFrameworkVersion string `tfschema:"dotnet_version"` PhpVersion string `tfschema:"php_version"` PythonVersion string `tfschema:"python_version"` // Linux Only? NodeVersion string `tfschema:"node_version"` JavaVersion string `tfschema:"java_version"` JavaServer string `tfschema:"java_server"` JavaServerVersion string `tfschema:"java_server_version"` DockerImageTag string `tfschema:"docker_image_tag"` DockerImage string `tfschema:"docker_image"` RubyVersion string `tfschema:"ruby_version"` }
type ApplicationStackLinuxFunctionApp ¶
type ApplicationStackLinuxFunctionApp struct { // Note - Function Apps differ to Web Apps here. They do not use the named properties in the SiteConfig block and exclusively use the app_settings map DotNetVersion string `tfschema:"dotnet_version"` // Supported values `3.1`. Version 6 is in preview on Windows Only NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS` PythonVersion string `tfschema:"python_version"` // Supported values `3.9`, `3.8`, `3.7` PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0` JavaVersion string `tfschema:"java_version"` // Supported values `8`, `11` CustomHandler bool `tfschema:"use_custom_runtime"` // Supported values `true` Docker []ApplicationStackDocker `tfschema:"docker"` // Needs ElasticPremium or Basic (B1) Standard (S 1-3) or Premium(PxV2 or PxV3) LINUX Service Plan }
func DecodeFunctionAppLinuxFxVersion ¶
func DecodeFunctionAppLinuxFxVersion(input string) ([]ApplicationStackLinuxFunctionApp, error)
type ApplicationStackWindows ¶
type ApplicationStackWindows struct { NetFrameworkVersion string `tfschema:"dotnet_version"` PhpVersion string `tfschema:"php_version"` JavaVersion string `tfschema:"java_version"` PythonVersion string `tfschema:"python_version"` NodeVersion string `tfschema:"node_version"` JavaContainer string `tfschema:"java_container"` JavaContainerVersion string `tfschema:"java_container_version"` DockerContainerName string `tfschema:"docker_container_name"` DockerContainerRegistry string `tfschema:"docker_container_registry"` DockerContainerTag string `tfschema:"docker_container_tag"` CurrentStack string `tfschema:"current_stack"` }
type ApplicationStackWindowsFunctionApp ¶
type ApplicationStackWindowsFunctionApp struct { DotNetVersion string `tfschema:"dotnet_version"` // Supported values `3.1`. Version 6 is in preview on Windows Only NodeVersion string `tfschema:"node_version"` // Supported values `12LTS`, `14LTS` JavaVersion string `tfschema:"java_version"` // Supported values `8`, `11` PowerShellCoreVersion string `tfschema:"powershell_core_version"` // Supported values are `7.0` CustomHandler bool `tfschema:"use_custom_runtime"` // Supported values `true` }
func DecodeFunctionAppWindowsFxVersion ¶
func DecodeFunctionAppWindowsFxVersion(input string) ([]ApplicationStackWindowsFunctionApp, error)
type AuthSettings ¶
type AuthSettings struct { Enabled bool `tfschema:"enabled"` AdditionalLoginParameters map[string]string `tfschema:"additional_login_parameters"` AllowedExternalRedirectUrls []string `tfschema:"allowed_external_redirect_urls"` DefaultProvider string `tfschema:"default_provider"` Issuer string `tfschema:"issuer"` RuntimeVersion string `tfschema:"runtime_version"` TokenRefreshExtensionHours float64 `tfschema:"token_refresh_extension_hours"` TokenStoreEnabled bool `tfschema:"token_store_enabled"` UnauthenticatedClientAction string `tfschema:"unauthenticated_client_action"` AzureActiveDirectoryAuth []AadAuthSettings `tfschema:"active_directory"` FacebookAuth []FacebookAuthSettings `tfschema:"facebook"` GithubAuth []GithubAuthSettings `tfschema:"github"` GoogleAuth []GoogleAuthSettings `tfschema:"google"` MicrosoftAuth []MicrosoftAuthSettings `tfschema:"microsoft"` TwitterAuth []TwitterAuthSettings `tfschema:"twitter"` }
func FlattenAuthSettings ¶
func FlattenAuthSettings(auth web.SiteAuthSettings) []AuthSettings
type AutoHealActionLinux ¶
type AutoHealActionWindows ¶
type AutoHealActionWindows struct { ActionType string `tfschema:"action_type"` // Enum CustomAction []AutoHealCustomAction `tfschema:"custom_action"` // Max: 1, needs `action_type` to be "Custom" MinimumProcessTime string `tfschema:"minimum_process_execution_time"` // Minimum uptime for process before action will trigger }
type AutoHealCustomAction ¶
type AutoHealRequestTrigger ¶
type AutoHealSettingLinux ¶
type AutoHealSettingLinux struct { Triggers []AutoHealTriggerLinux `tfschema:"trigger"` Actions []AutoHealActionLinux `tfschema:"action"` }
type AutoHealSettingWindows ¶
type AutoHealSettingWindows struct { Triggers []AutoHealTriggerWindows `tfschema:"trigger"` Actions []AutoHealActionWindows `tfschema:"action"` }
type AutoHealSlowRequest ¶
type AutoHealStatusCodeTrigger ¶
type AutoHealStatusCodeTrigger struct { StatusCodeRange string `tfschema:"status_code_range"` // Conflicts with `StatusCode`, `Win32Code`, and `SubStatus` when not a single value... SubStatus int `tfschema:"sub_status"` Win32Status string `tfschema:"win32_status"` Path string `tfschema:"path"` Count int `tfschema:"count"` Interval string `tfschema:"interval"` // Format - hh:mm:ss }
type AutoHealTriggerLinux ¶
type AutoHealTriggerLinux struct { Requests []AutoHealRequestTrigger `tfschema:"requests"` StatusCodes []AutoHealStatusCodeTrigger `tfschema:"status_code"` // 0 or more, ranges split by `-`, ranges cannot use sub-status or win32 code SlowRequests []AutoHealSlowRequest `tfschema:"slow_request"` }
type AutoHealTriggerWindows ¶
type AutoHealTriggerWindows struct { Requests []AutoHealRequestTrigger `tfschema:"requests"` PrivateMemoryKB int `tfschema:"private_memory_kb"` // Private should be > 102400 KB (100 MB) to 13631488 KB (13 GB), defaults to 0 however and is always present. StatusCodes []AutoHealStatusCodeTrigger `tfschema:"status_code"` // 0 or more, ranges split by `-`, ranges cannot use sub-status or win32 code SlowRequests []AutoHealSlowRequest `tfschema:"slow_request"` }
type AzureBlobStorage ¶
type AzureBlobStorageHttp ¶
type Backup ¶
type Backup struct { Name string `tfschema:"name"` StorageAccountUrl string `tfschema:"storage_account_url"` Enabled bool `tfschema:"enabled"` Schedule []BackupSchedule `tfschema:"schedule"` }
func FlattenBackupConfig ¶
func FlattenBackupConfig(backupRequest web.BackupRequest) []Backup
type BackupSchedule ¶
type BackupSchedule struct { FrequencyInterval int `tfschema:"frequency_interval"` FrequencyUnit string `tfschema:"frequency_unit"` KeepAtLeastOneBackup bool `tfschema:"keep_at_least_one_backup"` RetentionPeriodDays int `tfschema:"retention_period_days"` StartTime string `tfschema:"start_time"` LastExecutionTime string `tfschema:"last_execution_time"` }
type ConnectionString ¶
type ConnectionString struct { Name string `tfschema:"name"` Type string `tfschema:"type"` Value string `tfschema:"value"` }
func FlattenConnectionStrings ¶
func FlattenConnectionStrings(appConnectionStrings web.ConnectionStringDictionary) []ConnectionString
type CorsSetting ¶
type FacebookAuthSettings ¶
type FunctionAppAppServiceLogs ¶
type FunctionAppAppServiceLogs struct { DiskQuotaMB int `tfschema:"disk_quota_mb"` RetentionPeriodDays int `tfschema:"retention_period_days"` }
func FlattenFunctionAppAppServiceLogs ¶
func FlattenFunctionAppAppServiceLogs(input web.SiteLogsConfig) []FunctionAppAppServiceLogs
type GithubAuthSettings ¶
type GoogleAuthSettings ¶
type HttpLog ¶
type HttpLog struct { FileSystems []LogsFileSystem `tfschema:"file_system"` AzureBlobStorage []AzureBlobStorageHttp `tfschema:"azure_blob_storage"` }
type IpRestriction ¶
type IpRestriction struct { IpAddress string `tfschema:"ip_address"` ServiceTag string `tfschema:"service_tag"` VnetSubnetId string `tfschema:"virtual_network_subnet_id"` Name string `tfschema:"name"` Priority int `tfschema:"priority"` Action string `tfschema:"action"` Headers []IpRestrictionHeaders `tfschema:"headers"` }
func FlattenIpRestrictions ¶
func FlattenIpRestrictions(ipRestrictionsList *[]web.IPSecurityRestriction) []IpRestriction
func (IpRestriction) Validate ¶
func (v IpRestriction) Validate() error
type IpRestrictionHeaders ¶
type LogsConfig ¶
type LogsConfig struct { ApplicationLogs []ApplicationLog `tfschema:"application_logs"` HttpLogs []HttpLog `tfschema:"http_logs"` DetailedErrorMessages bool `tfschema:"detailed_error_messages"` FailedRequestTracing bool `tfschema:"failed_request_tracing"` }
func FlattenLogsConfig ¶
func FlattenLogsConfig(logsConfig web.SiteLogsConfig) []LogsConfig
type LogsFileSystem ¶
type MicrosoftAuthSettings ¶
type SiteConfigLinux ¶
type SiteConfigLinux struct { AlwaysOn bool `tfschema:"always_on"` ApiManagementConfigId string `tfschema:"api_management_api_id"` ApiDefinition string `tfschema:"api_definition_url"` AppCommandLine string `tfschema:"app_command_line"` AutoHeal bool `tfschema:"auto_heal_enabled"` AutoHealSettings []AutoHealSettingLinux `tfschema:"auto_heal_setting"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` LocalMysql bool `tfschema:"local_mysql_enabled"` ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` ScmType string `tfschema:"scm_type"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` NumberOfWorkers int `tfschema:"worker_count"` ApplicationStack []ApplicationStackLinux `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` LinuxFxVersion string `tfschema:"linux_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` }
func FlattenSiteConfigLinux ¶
func FlattenSiteConfigLinux(appSiteConfig *web.SiteConfig, healthCheckCount *int) []SiteConfigLinux
type SiteConfigLinuxFunctionApp ¶
type SiteConfigLinuxFunctionApp struct { AlwaysOn bool `tfschema:"always_on"` AppCommandLine string `tfschema:"app_command_line"` ApiDefinition string `tfschema:"api_definition_url"` ApiManagementConfigId string `tfschema:"api_management_api_id"` AppInsightsInstrumentationKey string `tfschema:"application_insights_key"` // App Insights Instrumentation Key AppInsightsConnectionString string `tfschema:"application_insights_connection_string"` AppScaleLimit int `tfschema:"app_scale_limit"` AppServiceLogs []FunctionAppAppServiceLogs `tfschema:"app_service_logs"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` ElasticInstanceMinimum int `tfschema:"elastic_instance_minimum"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps? ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` PreWarmedInstanceCount int `tfschema:"pre_warmed_instance_count"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` RuntimeScaleMonitoring bool `tfschema:"runtime_scale_monitoring_enabled"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` ScmType string `tfschema:"scm_type"` // Computed? ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` WorkerCount int `tfschema:"worker_count"` ApplicationStack []ApplicationStackLinuxFunctionApp `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` LinuxFxVersion string `tfschema:"linux_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans }
func FlattenSiteConfigLinuxFunctionApp ¶
func FlattenSiteConfigLinuxFunctionApp(functionAppSiteConfig *web.SiteConfig) (*SiteConfigLinuxFunctionApp, error)
type SiteConfigLinuxFunctionAppSlot ¶
type SiteConfigLinuxFunctionAppSlot struct { AlwaysOn bool `tfschema:"always_on"` AppCommandLine string `tfschema:"app_command_line"` ApiDefinition string `tfschema:"api_definition_url"` ApiManagementConfigId string `tfschema:"api_management_api_id"` AppInsightsInstrumentationKey string `tfschema:"application_insights_key"` // App Insights Instrumentation Key AppInsightsConnectionString string `tfschema:"application_insights_connection_string"` AppScaleLimit int `tfschema:"app_scale_limit"` AppServiceLogs []FunctionAppAppServiceLogs `tfschema:"app_service_logs"` AutoSwapSlotName string `tfschema:"auto_swap_slot_name"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` ElasticInstanceMinimum int `tfschema:"elastic_instance_minimum"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps? ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` PreWarmedInstanceCount int `tfschema:"pre_warmed_instance_count"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` RuntimeScaleMonitoring bool `tfschema:"runtime_scale_monitoring_enabled"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` ScmType string `tfschema:"scm_type"` // Computed? ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` WorkerCount int `tfschema:"worker_count"` ApplicationStack []ApplicationStackLinuxFunctionApp `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` LinuxFxVersion string `tfschema:"linux_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans }
func FlattenSiteConfigLinuxFunctionAppSlot ¶
func FlattenSiteConfigLinuxFunctionAppSlot(functionAppSlotSiteConfig *web.SiteConfig) (*SiteConfigLinuxFunctionAppSlot, error)
type SiteConfigLinuxWebAppSlot ¶
type SiteConfigLinuxWebAppSlot struct { AlwaysOn bool `tfschema:"always_on"` ApiManagementConfigId string `tfschema:"api_management_api_id"` ApiDefinition string `tfschema:"api_definition_url"` AppCommandLine string `tfschema:"app_command_line"` AutoHeal bool `tfschema:"auto_heal_enabled"` AutoHealSettings []AutoHealSettingLinux `tfschema:"auto_heal_setting"` AutoSwapSlotName string `tfschema:"auto_swap_slot_name"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` LocalMysql bool `tfschema:"local_mysql_enabled"` ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` ScmType string `tfschema:"scm_type"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` WorkerCount int `tfschema:"worker_count"` ApplicationStack []ApplicationStackLinux `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` LinuxFxVersion string `tfschema:"linux_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` }
func FlattenSiteConfigLinuxWebAppSlot ¶
func FlattenSiteConfigLinuxWebAppSlot(appSiteSlotConfig *web.SiteConfig, healthCheckCount *int) []SiteConfigLinuxWebAppSlot
type SiteConfigWindows ¶
type SiteConfigWindows struct { AlwaysOn bool `tfschema:"always_on"` ApiManagementConfigId string `tfschema:"api_management_api_id"` ApiDefinition string `tfschema:"api_definition_url"` AppCommandLine string `tfschema:"app_command_line"` AutoHeal bool `tfschema:"auto_heal_enabled"` AutoHealSettings []AutoHealSettingWindows `tfschema:"auto_heal_setting"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryUserMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` LocalMysql bool `tfschema:"local_mysql_enabled"` ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` ScmType string `tfschema:"scm_type"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` WorkerCount int `tfschema:"worker_count"` ApplicationStack []ApplicationStackWindows `tfschema:"application_stack"` VirtualApplications []VirtualApplication `tfschema:"virtual_application"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` WindowsFxVersion string `tfschema:"windows_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` }
func FlattenSiteConfigWindows ¶
func FlattenSiteConfigWindows(appSiteConfig *web.SiteConfig, currentStack string, healthCheckCount *int) []SiteConfigWindows
type SiteConfigWindowsFunctionApp ¶
type SiteConfigWindowsFunctionApp struct { AlwaysOn bool `tfschema:"always_on"` AppCommandLine string `tfschema:"app_command_line"` ApiDefinition string `tfschema:"api_definition_url"` ApiManagementConfigId string `tfschema:"api_management_api_id"` AppInsightsInstrumentationKey string `tfschema:"application_insights_key"` // App Insights Instrumentation Key AppInsightsConnectionString string `tfschema:"application_insights_connection_string"` AppScaleLimit int `tfschema:"app_scale_limit"` AppServiceLogs []FunctionAppAppServiceLogs `tfschema:"app_service_logs"` DefaultDocuments []string `tfschema:"default_documents"` ElasticInstanceMinimum int `tfschema:"elastic_instance_minimum"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps? ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` PreWarmedInstanceCount int `tfschema:"pre_warmed_instance_count"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` RuntimeScaleMonitoring bool `tfschema:"runtime_scale_monitoring_enabled"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` ScmType string `tfschema:"scm_type"` // Computed? ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` NumberOfWorkers int `tfschema:"worker_count"` ApplicationStack []ApplicationStackWindowsFunctionApp `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` WindowsFxVersion string `tfschema:"windows_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans }
func FlattenSiteConfigWindowsFunctionApp ¶
func FlattenSiteConfigWindowsFunctionApp(functionAppSiteConfig *web.SiteConfig) (*SiteConfigWindowsFunctionApp, error)
type SiteConfigWindowsFunctionAppSlot ¶
type SiteConfigWindowsFunctionAppSlot struct { AlwaysOn bool `tfschema:"always_on"` AppCommandLine string `tfschema:"app_command_line"` ApiDefinition string `tfschema:"api_definition_url"` ApiManagementConfigId string `tfschema:"api_management_api_id"` AppInsightsInstrumentationKey string `tfschema:"application_insights_key"` // App Insights Instrumentation Key AppInsightsConnectionString string `tfschema:"application_insights_connection_string"` AppScaleLimit int `tfschema:"app_scale_limit"` AppServiceLogs []FunctionAppAppServiceLogs `tfschema:"app_service_logs"` AutoSwapSlotName string `tfschema:"auto_swap_slot_name"` DefaultDocuments []string `tfschema:"default_documents"` ElasticInstanceMinimum int `tfschema:"elastic_instance_minimum"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` // TODO - Valid for FunctionApps? ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` PreWarmedInstanceCount int `tfschema:"pre_warmed_instance_count"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` RuntimeScaleMonitoring bool `tfschema:"runtime_scale_monitoring_enabled"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` ScmType string `tfschema:"scm_type"` // Computed? ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` NumberOfWorkers int `tfschema:"worker_count"` ApplicationStack []ApplicationStackWindowsFunctionApp `tfschema:"application_stack"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` WindowsFxVersion string `tfschema:"windows_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` // Not supported in Dynamic plans }
func FlattenSiteConfigWindowsFunctionAppSlot ¶
func FlattenSiteConfigWindowsFunctionAppSlot(functionAppSlotSiteConfig *web.SiteConfig) (*SiteConfigWindowsFunctionAppSlot, error)
type SiteConfigWindowsWebAppSlot ¶
type SiteConfigWindowsWebAppSlot struct { AlwaysOn bool `tfschema:"always_on"` ApiManagementConfigId string `tfschema:"api_management_api_id"` ApiDefinition string `tfschema:"api_definition_url"` ApplicationStack []ApplicationStackWindows `tfschema:"application_stack"` AppCommandLine string `tfschema:"app_command_line"` AutoHeal bool `tfschema:"auto_heal_enabled"` AutoHealSettings []AutoHealSettingWindows `tfschema:"auto_heal_setting"` AutoSwapSlotName string `tfschema:"auto_swap_slot_name"` UseManagedIdentityACR bool `tfschema:"container_registry_use_managed_identity"` ContainerRegistryUserMSI string `tfschema:"container_registry_managed_identity_client_id"` DefaultDocuments []string `tfschema:"default_documents"` Http2Enabled bool `tfschema:"http2_enabled"` IpRestriction []IpRestriction `tfschema:"ip_restriction"` ScmUseMainIpRestriction bool `tfschema:"scm_use_main_ip_restriction"` ScmIpRestriction []IpRestriction `tfschema:"scm_ip_restriction"` LoadBalancing string `tfschema:"load_balancing_mode"` LocalMysql bool `tfschema:"local_mysql_enabled"` ManagedPipelineMode string `tfschema:"managed_pipeline_mode"` RemoteDebugging bool `tfschema:"remote_debugging_enabled"` RemoteDebuggingVersion string `tfschema:"remote_debugging_version"` ScmType string `tfschema:"scm_type"` Use32BitWorker bool `tfschema:"use_32_bit_worker"` WebSockets bool `tfschema:"websockets_enabled"` FtpsState string `tfschema:"ftps_state"` HealthCheckPath string `tfschema:"health_check_path"` HealthCheckEvictionTime int `tfschema:"health_check_eviction_time_in_min"` WorkerCount int `tfschema:"worker_count"` VirtualApplications []VirtualApplication `tfschema:"virtual_application"` MinTlsVersion string `tfschema:"minimum_tls_version"` ScmMinTlsVersion string `tfschema:"scm_minimum_tls_version"` Cors []CorsSetting `tfschema:"cors"` DetailedErrorLogging bool `tfschema:"detailed_error_logging_enabled"` WindowsFxVersion string `tfschema:"windows_fx_version"` VnetRouteAllEnabled bool `tfschema:"vnet_route_all_enabled"` }
func FlattenSiteConfigWindowsAppSlot ¶
func FlattenSiteConfigWindowsAppSlot(appSiteSlotConfig *web.SiteConfig, currentStack string, healthCheckCount *int) []SiteConfigWindowsWebAppSlot
type SiteCredential ¶
type SiteCredential struct { Username string `tfschema:"name"` Password string `tfschema:"password"` }
func FlattenSiteCredentials ¶
func FlattenSiteCredentials(input web.User) []SiteCredential
type SourceControl ¶
type StorageAccount ¶
type StorageAccount struct { Name string `tfschema:"name"` Type string `tfschema:"type"` AccountName string `tfschema:"account_name"` AccessKey string `tfschema:"access_key"` MountPath string `tfschema:"mount_path"` }
func FlattenStorageAccounts ¶
func FlattenStorageAccounts(appStorageAccounts web.AzureStoragePropertyDictionaryResource) []StorageAccount
type TwitterAuthSettings ¶
type VirtualApplication ¶
type VirtualApplication struct { VirtualPath string `tfschema:"virtual_path"` PhysicalPath string `tfschema:"physical_path"` Preload bool `tfschema:"preload"` VirtualDirectories []VirtualDirectory `tfschema:"virtual_directory"` }
type VirtualDirectory ¶
Click to show internal directories.
Click to hide internal directories.