When you clone an Azure App Service web app using New-AzWebApp -SourceWebApp, Azure copies application settings and configuration that are part of the app's configuration metadata. Environment variables (App Settings) are included in the clone. However, the following are not cloned: * Managed identity (must be enabled separately on the new app) * Deployment slots (slots are not copied to the new web app) * Backup configuration (backup schedules and settings are not cloned) Therefore, among the listed options, only the environment variable is cloned to WebApp2.