SiteConfig Class
Configuration of an App Service app.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
SiteConfig
Constructor
SiteConfig(*, number_of_workers: Optional[int] = None, default_documents: Optional[List[str]] = None, net_framework_version: Optional[str] = 'v4.6', php_version: Optional[str] = None, python_version: Optional[str] = None, node_version: Optional[str] = None, power_shell_version: Optional[str] = None, linux_fx_version: Optional[str] = None, windows_fx_version: Optional[str] = None, request_tracing_enabled: Optional[bool] = None, request_tracing_expiration_time: Optional[datetime.datetime] = None, remote_debugging_enabled: Optional[bool] = None, remote_debugging_version: Optional[str] = None, http_logging_enabled: Optional[bool] = None, acr_use_managed_identity_creds: Optional[bool] = None, acr_user_managed_identity_id: Optional[str] = None, logs_directory_size_limit: Optional[int] = None, detailed_error_logging_enabled: Optional[bool] = None, publishing_username: Optional[str] = None, app_settings: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.NameValuePair]] = None, connection_strings: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.ConnStringInfo]] = None, handler_mappings: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.HandlerMapping]] = None, document_root: Optional[str] = None, scm_type: Optional[Union[str, azure.mgmt.web.v2019_08_01.models._web_site_management_client_enums.ScmType]] = None, use32_bit_worker_process: Optional[bool] = None, web_sockets_enabled: Optional[bool] = None, always_on: Optional[bool] = None, java_version: Optional[str] = None, java_container: Optional[str] = None, java_container_version: Optional[str] = None, app_command_line: Optional[str] = None, managed_pipeline_mode: Optional[Union[str, azure.mgmt.web.v2019_08_01.models._web_site_management_client_enums.ManagedPipelineMode]] = None, virtual_applications: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.VirtualApplication]] = None, load_balancing: Optional[Union[str, azure.mgmt.web.v2019_08_01.models._web_site_management_client_enums.SiteLoadBalancing]] = None, experiments: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.Experiments] = None, limits: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.SiteLimits] = None, auto_heal_enabled: Optional[bool] = None, auto_heal_rules: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.AutoHealRules] = None, tracing_options: Optional[str] = None, vnet_name: Optional[str] = None, cors: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.CorsSettings] = None, push: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.PushSettings] = None, api_definition: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.ApiDefinitionInfo] = None, api_management_config: Optional[azure.mgmt.web.v2019_08_01.models._models_py3.ApiManagementConfig] = None, auto_swap_slot_name: Optional[str] = None, local_my_sql_enabled: Optional[bool] = False, managed_service_identity_id: Optional[int] = None, x_managed_service_identity_id: Optional[int] = None, ip_security_restrictions: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.IpSecurityRestriction]] = None, scm_ip_security_restrictions: Optional[List[azure.mgmt.web.v2019_08_01.models._models_py3.IpSecurityRestriction]] = None, scm_ip_security_restrictions_use_main: Optional[bool] = None, http20_enabled: Optional[bool] = True, min_tls_version: Optional[Union[str, azure.mgmt.web.v2019_08_01.models._web_site_management_client_enums.SupportedTlsVersions]] = None, ftps_state: Optional[Union[str, azure.mgmt.web.v2019_08_01.models._web_site_management_client_enums.FtpsState]] = None, pre_warmed_instance_count: Optional[int] = None, health_check_path: Optional[str] = None, **kwargs)
Parameters
- request_tracing_enabled
- bool
<code>true</code> if request tracing is enabled;
otherwise, <code>false</code>.
- remote_debugging_enabled
- bool
<code>true</code> if remote debugging is enabled;
otherwise, <code>false</code>.
- http_logging_enabled
- bool
<code>true</code> if HTTP logging is enabled; otherwise,
<code>false</code>.
- acr_user_managed_identity_id
- str
If using user managed identity, the user managed identity ClientId.
- detailed_error_logging_enabled
- bool
<code>true</code> if detailed error logging is
enabled; otherwise, <code>false</code>.
SCM type. Possible values include: "None", "Dropbox", "Tfs", "LocalGit", "GitHub", "CodePlexGit", "CodePlexHg", "BitbucketGit", "BitbucketHg", "ExternalGit", "ExternalHg", "OneDrive", "VSO", "VSTSRM".
- use32_bit_worker_process
- bool
<code>true</code> to use 32-bit worker process;
otherwise, <code>false</code>.
- web_sockets_enabled
- bool
<code>true</code> if WebSocket is enabled; otherwise,
<code>false</code>.
- managed_pipeline_mode
- str or ManagedPipelineMode
Managed pipeline mode. Possible values include: "Integrated", "Classic".
- load_balancing
- str or SiteLoadBalancing
Site load balancing. Possible values include: "WeightedRoundRobin", "LeastRequests", "LeastResponseTime", "WeightedTotalTraffic", "RequestHash".
- auto_heal_enabled
- bool
<code>true</code> if Auto Heal is enabled; otherwise,
<code>false</code>.
- local_my_sql_enabled
- bool
<code>true</code> to enable local MySQL; otherwise,
<code>false</code>.
- http20_enabled
- bool
Http20Enabled: configures a web site to allow clients to connect over http2.0.
- min_tls_version
- str or SupportedTlsVersions
MinTlsVersion: configures the minimum version of TLS required for SSL requests. Possible values include: "1.0", "1.1", "1.2".
State of FTP / FTPS service. Possible values include: "AllAllowed", "FtpsOnly", "Disabled".
- pre_warmed_instance_count
- int
Number of preWarmed instances. This setting only applies to the Consumption and Elastic Plans.
Variables
- machine_key
- SiteMachineKey
Site MachineKey.
Feedback
Submit and view feedback for