Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish-AzWebApp with war deployment including jsp file #19791

Closed
v-yuanren opened this issue Oct 12, 2022 · 2 comments
Closed

Publish-AzWebApp with war deployment including jsp file #19791

v-yuanren opened this issue Oct 12, 2022 · 2 comments
Assignees
Labels
App Services aka WebSites bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.

Comments

@v-yuanren
Copy link

Description

By using Publish-AzWebApp with war deployment. Azure unpacks incorrectly if there are jsp files in war. Other files (e.g. css, png, folders etc) will not be copied to local tomcat correctly in kudu.

Reproduce

  1. Get a java project with some jsp files
  2. Generate war file
  3. Deploy to a web app with tomcat server by using Publish-AzWebapp -ResourceGroupName -Name -ArchivePath
  4. Under /home/site/wwwroot/webapps/ROOT, all the files are unpacked successfully
  5. Check /usr/local/tomcat/webapps/ROOT, only jsp files and WEB-INF copied to this local tomcat.
  6. Browse the website, the missing css, png files will return 404
    image

Other findings

  1. If you remove all jsp files, all other files will be copied to local tomcat successfully
  2. If you use Azure CLI to deploy war file, all jsp files and other files will be unpacked to local tomcat successfully
    image

Reported this issue to PG and got response:
Unpacking WAR files in /site/wwwroot/webapps is a legacy behavior that we no longer recommend. This is the deploy behavior of Publish-AzWebApp. We recommend using the az webapp deploy command to deploy WAR files to /home/site/wwwroot without unpacking.

My questions

  1. Is it possible to fix the issue? For example, deploy with unpacked war file or copied to local tomcat correctly? https://github.com/Azure/azure-powershell/blob/main/src/Websites/Websites/Cmdlets/WebApps/PublishAzureWebApp.cs#L64
  2. The Publish-AzWebApp method still exists in document https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=powershell#deploy-warjarear-packages. If you are not planning to fix the issue, can you please update documents with warning when using this deploment? Or can you remove the Publish-AzWebApp if it is not recommended to deploy war file?

Issue script & Debug output

DEBUG: [Common.Authentication]: Authenticating using Account: '', environment: 'AzureCloud', tenant: ''
DEBUG: 12:06:51 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - TenantId:'', Scopes:'https://management.core.windows.net/', UserId:''
DEBUG: ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: 
DEBUG: Request [8a1ce38c-50a1-42ac-821d-8a4786841d89] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:8a1ce38c-50a1-42ac-821d-8a4786841d89
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.6.0,(.NET 6.0.8; Linux 5.4.0-1091-azure #96~18.04.1-Ubuntu SMP Tue Aug 30 19:15:32 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
DEBUG: Response [8a1ce38c-50a1-42ac-821d-8a4786841d89] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"30c4-4BbItpZha/3pJ9qHxTSQvOqaGf0"
Date:Wed, 12 Oct 2022 12:06:51 GMT
Connection:keep-alive
Keep-Alive:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:12484

DEBUG: ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:  ExpiresOn: 2022-10-12T13:10:26.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: ''
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/publishingcredentials/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : af059c34-59fe-4f50-b4c6-0a51fa91cd6d
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id   : abd78425-267e-4c40-9f45-5ffadc6ae00e
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120651Z:abd78425-267e-4c40-9f45-5ffadc6ae00e
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:06:51 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//Microsoft.Web/sites//publishingcredentials/",
  "name": "",
  "type": "Microsoft.Web/sites/publishingcredentials",
  "location": "Southeast Asia",
  "properties": {
    "name": null,
    "publishingUserName": "",
    "publishingPassword": "",
    "publishingPasswordHash": null,
    "publishingPasswordHashSalt": null,
    "metadata": null,
    "isDeleted": false,
    "scmUri": ""
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites/?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
ETag                          : "1D8D9694E332DC0"
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : d49cb30a-ab00-4dbe-b3ca-ee070474bd1d
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11996
x-ms-correlation-request-id   : 8c9c6ec2-ae95-461a-a6a9-af2b253f4681
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:8c9c6ec2-ae95-461a-a6a9-af2b253f4681
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites/",
  "name": "",
  "type": "Microsoft.Web/sites",
  "kind": "app,linux",
  "location": "Southeast Asia",
  "properties": {
    "name": "",
    "state": "Running",
    "hostNames": [
      ".azurewebsites.net"
    ],
    "webSpace": "",
    "selfLink": "https://waws-prod-sg1-019.api.azurewebsites.windows.net:454/subscriptions//webspaces//sites/",
    "repositorySiteName": "",
    "owner": null,
    "usageState": "Normal",
    "enabled": true,
    "adminEnabled": true,
    "enabledHostNames": [
      ".azurewebsites.net",
      ".scm.azurewebsites.net"
    ],
    "siteProperties": {
      "metadata": null,
      "properties": [
        {
          "name": "LinuxFxVersion",
          "value": "TOMCAT|9.0-java11"
        },
        {
          "name": "WindowsFxVersion",
          "value": null
        }
      ],
      "appSettings": null
    },
    "availabilityState": "Normal",
    "sslCertificates": null,
    "csrs": [],
    "cers": null,
    "siteMode": null,
    "hostNameSslStates": [
      {
        "name": ".azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "thumbprint": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Standard"
      },
      {
        "name": ".scm.azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "thumbprint": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Repository"
      }
    ],
    "computeMode": null,
    "serverFarm": null,
    "serverFarmId": "/subscriptions//resourceGroups//providers/Microsoft.Web/serverfarms/",
    "reserved": true,
    "isXenon": false,
    "hyperV": false,
    "lastModifiedTimeUtc": "2022-10-06T09:52:11.42",
    "storageRecoveryDefaultState": "Running",
    "contentAvailabilityState": "Normal",
    "runtimeAvailabilityState": "Normal",
    "vnetRouteAllEnabled": false,
    "containerAllocationSubnet": null,
    "useContainerLocalhostBindings": null,
    "vnetImagePullEnabled": false,
    "vnetContentShareEnabled": false,
    "siteConfig": {
      "numberOfWorkers": 1,
      "defaultDocuments": null,
      "netFrameworkVersion": null,
      "phpVersion": null,
      "pythonVersion": null,
      "nodeVersion": null,
      "powerShellVersion": null,
      "linuxFxVersion": "TOMCAT|9.0-java11",
      "windowsFxVersion": null,
      "requestTracingEnabled": null,
      "remoteDebuggingEnabled": null,
      "remoteDebuggingVersion": null,
      "httpLoggingEnabled": null,
      "azureMonitorLogCategories": null,
      "acrUseManagedIdentityCreds": false,
      "acrUserManagedIdentityID": null,
      "logsDirectorySizeLimit": null,
      "detailedErrorLoggingEnabled": null,
      "publishingUsername": null,
      "publishingPassword": null,
      "appSettings": null,
      "metadata": null,
      "connectionStrings": null,
      "machineKey": null,
      "handlerMappings": null,
      "documentRoot": null,
      "scmType": null,
      "use32BitWorkerProcess": null,
      "webSocketsEnabled": null,
      "alwaysOn": true,
      "javaVersion": null,
      "javaContainer": null,
      "javaContainerVersion": null,
      "appCommandLine": null,
      "managedPipelineMode": null,
      "virtualApplications": null,
      "winAuthAdminState": null,
      "winAuthTenantState": null,
      "customAppPoolIdentityAdminState": null,
      "customAppPoolIdentityTenantState": null,
      "runtimeADUser": null,
      "runtimeADUserPassword": null,
      "loadBalancing": null,
      "routingRules": null,
      "experiments": null,
      "limits": null,
      "autoHealEnabled": null,
      "autoHealRules": null,
      "tracingOptions": null,
      "vnetName": null,
      "vnetRouteAllEnabled": null,
      "vnetPrivatePortsCount": null,
      "publicNetworkAccess": null,
      "cors": null,
      "push": null,
      "apiDefinition": null,
      "apiManagementConfig": null,
      "autoSwapSlotName": null,
      "localMySqlEnabled": null,
      "managedServiceIdentityId": null,
      "xManagedServiceIdentityId": null,
      "keyVaultReferenceIdentity": null,
      "ipSecurityRestrictions": null,
      "ipSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictions": null,
      "scmIpSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictionsUseMain": null,
      "http20Enabled": false,
      "minTlsVersion": null,
      "minTlsCipherSuite": null,
      "supportedTlsCipherSuites": null,
      "scmMinTlsVersion": null,
      "ftpsState": null,
      "preWarmedInstanceCount": null,
      "functionAppScaleLimit": 0,
      "elasticWebAppScaleLimit": null,
      "healthCheckPath": null,
      "fileChangeAuditEnabled": null,
      "functionsRuntimeScaleMonitoringEnabled": null,
      "websiteTimeZone": null,
      "minimumElasticInstanceCount": 0,
      "azureStorageAccounts": null,
      "http20ProxyFlag": null,
      "sitePort": null,
      "antivirusScanEnabled": null,
      "storageType": null
    },
    "deploymentId": "",
    "slotName": null,
    "trafficManagerHostNames": null,
    "sku": "Basic",
    "scmSiteAlsoStopped": false,
    "targetSwapSlot": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "clientAffinityEnabled": false,
    "clientCertEnabled": false,
    "clientCertMode": "Required",
    "clientCertExclusionPaths": null,
    "hostNamesDisabled": false,
    "domainVerificationIdentifiers": null,
    "customDomainVerificationId": "",
    "kind": "app,linux",
    "inboundIpAddress": "52.187.36.104",
    "possibleInboundIpAddresses": "52.187.36.104",
    "ftpUsername": "",
    "ftpsHostName": "f",
    "outboundIpAddresses": "52.187.36.104,52.187.129.179,52.187.23.154,52.163.123.89,52.230.18.200",
    "possibleOutboundIpAddresses": "52.187.36.104,52.187.129.179,52.187.23.154,52.163.123.89,52.230.18.200,20.184.9.149,20.191.136.243",
    "containerSize": 0,
    "dailyMemoryTimeQuota": 0,
    "suspendedTill": null,
    "siteDisabledReason": 0,
    "functionExecutionUnitsCache": null,
    "maxNumberOfWorkers": null,
    "homeStamp": "waws-prod-sg1-019",
    "cloningInfo": null,
    "hostingEnvironmentId": null,
    "tags": null,
    "resourceGroup": "",
    "defaultHostName": ".azurewebsites.net",
    "slotSwapStatus": null,
    "httpsOnly": true,
    "redundancyMode": "None",
    "inProgressOperationId": null,
    "geoDistributions": null,
    "privateEndpointConnections": [],
    "publicNetworkAccess": null,
    "buildVersion": null,
    "targetBuildVersion": null,
    "migrationState": null,
    "eligibleLogCategories": "AppServiceAppLogs,AppServiceAuditLogs,AppServiceConsoleLogs,AppServiceHTTPLogs,AppServiceIPSecAuditLogs,AppServicePlatformLogs,ScanLogs",
    "storageAccountRequired": false,
    "virtualNetworkSubnetId": null,
    "keyVaultReferenceIdentity": "SystemAssigned",
    "privateLinkIdentifiers": null
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/web?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 8ddc8f4e-0d65-45f9-b3cd-9ce5ef5901e0
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-correlation-request-id   : 9c732995-73f0-416e-944c-3dc68df0162c
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:9c732995-73f0-416e-944c-3dc68df0162c
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/web",
  "name": "",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php",
      "hostingstart.html"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "TOMCAT|9.0-java11",
    "windowsFxVersion": null,
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "remoteDebuggingVersion": null,
    "httpLoggingEnabled": false,
    "azureMonitorLogCategories": null,
    "acrUseManagedIdentityCreds": false,
    "acrUserManagedIdentityID": null,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "publishingUsername": "",
    "publishingPassword": null,
    "appSettings": null,
    "metadata": null,
    "connectionStrings": null,
    "machineKey": null,
    "handlerMappings": null,
    "documentRoot": null,
    "scmType": "None",
    "use32BitWorkerProcess": true,
    "webSocketsEnabled": false,
    "alwaysOn": true,
    "javaVersion": null,
    "javaContainer": null,
    "javaContainerVersion": null,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": true,
        "virtualDirectories": null
      }
    ],
    "winAuthAdminState": 0,
    "winAuthTenantState": 0,
    "customAppPoolIdentityAdminState": false,
    "customAppPoolIdentityTenantState": false,
    "runtimeADUser": null,
    "runtimeADUserPassword": null,
    "loadBalancing": "LeastRequests",
    "routingRules": [],
    "experiments": {
      "rampUpRules": []
    },
    "limits": null,
    "autoHealEnabled": false,
    "autoHealRules": null,
    "tracingOptions": null,
    "vnetName": "",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "publicNetworkAccess": null,
    "siteAuthEnabled": false,
    "siteAuthSettings": {
      "enabled": null,
      "unauthenticatedClientAction": null,
      "tokenStoreEnabled": null,
      "allowedExternalRedirectUrls": null,
      "defaultProvider": null,
      "clientId": null,
      "clientSecret": null,
      "clientSecretSettingName": null,
      "clientSecretCertificateThumbprint": null,
      "issuer": null,
      "allowedAudiences": null,
      "additionalLoginParams": null,
      "isAadAutoProvisioned": false,
      "aadClaimsAuthorization": null,
      "googleClientId": null,
      "googleClientSecret": null,
      "googleClientSecretSettingName": null,
      "googleOAuthScopes": null,
      "facebookAppId": null,
      "facebookAppSecret": null,
      "facebookAppSecretSettingName": null,
      "facebookOAuthScopes": null,
      "gitHubClientId": null,
      "gitHubClientSecret": null,
      "gitHubClientSecretSettingName": null,
      "gitHubOAuthScopes": null,
      "twitterConsumerKey": null,
      "twitterConsumerSecret": null,
      "twitterConsumerSecretSettingName": null,
      "microsoftAccountClientId": null,
      "microsoftAccountClientSecret": null,
      "microsoftAccountClientSecretSettingName": null,
      "microsoftAccountOAuthScopes": null,
      "configVersion": null
    },
    "cors": null,
    "push": null,
    "apiDefinition": null,
    "apiManagementConfig": null,
    "autoSwapSlotName": null,
    "localMySqlEnabled": false,
    "managedServiceIdentityId": null,
    "xManagedServiceIdentityId": null,
    "keyVaultReferenceIdentity": null,
    "ipSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "ipSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictionsUseMain": false,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "minTlsCipherSuite": null,
    "supportedTlsCipherSuites": null,
    "scmMinTlsVersion": "1.2",
    "ftpsState": "FtpsOnly",
    "preWarmedInstanceCount": 0,
    "functionAppScaleLimit": null,
    "elasticWebAppScaleLimit": 0,
    "healthCheckPath": null,
    "fileChangeAuditEnabled": false,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "websiteTimeZone": null,
    "minimumElasticInstanceCount": 0,
    "azureStorageAccounts": {},
    "http20ProxyFlag": 0,
    "sitePort": null,
    "antivirusScanEnabled": false,
    "storageType": "StorageVolume"
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : caecfdf7-a9ad-4f87-a622-c19db46edd54
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11998
x-ms-correlation-request-id   : b3f52e9b-2f89-4ce8-b4b1-f5b3a80df290
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:b3f52e9b-2f89-4ce8-b4b1-f5b3a80df290
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings",
  "name": "appsettings",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups/providers/Microsoft.Web/sites//config/connectionstrings/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 6e083fa2-afaf-46d9-92a3-d51dc2eae382
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11997
x-ms-correlation-request-id   : e88e11e1-2f9d-4f88-9f47-79aa99d84b5e
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:e88e11e1-2f9d-4f88-9f47-79aa99d84b5e
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:09 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites/config/connectionstrings",
  "name": "connectionstrings",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/azurestorageaccounts/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 2e770266-39c7-4142-bc8f-b77d0e8bf079
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11996
x-ms-correlation-request-id   : 10361985-9076-4750-ac11-d18555aba7b6
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120710Z:10361985-9076-4750-ac11-d18555aba7b6
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:09 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings",
  "name": "azurestorageaccounts",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}



Name                           State    ResourceGroup                  EnabledHostNames                                   Location
----                           -----    -------------                  ----------------                                   --------
                              Running               
DEBUG: 12:07:10 PM - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: AzureQoSEvent: Module: Az.Websites:2.11.4; CommandName: Publish-AzWebApp; PSVersion: 7.2.6; IsSuccess: True; Duration: 00:00:16.4945678
DEBUG: Finish sending metric.
DEBUG: 12:07:10 PM - PublishAzureWebAppCmdlet end processing.

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Linux 5.4.0-1091-azure #96~18.04.1-Ubuntu SMP Tue Aug 30 19:15:32 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.10.0                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     4.31.0                Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk…}
Script     4.20.1                Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-A…
Script     6.2.0                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script     4.9.0                 Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountN…
Script     2.11.4                Az.Websites                         {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Ent…
Script     0.0.0.10              AzureAD.Standard.Preview            {Add-AzureADApplicationOwner, Add-AzureADDeviceRegisteredOwner, Add-AzureADDeviceRegisteredUser, Add-…
Script     0.9.3                 AzurePSDrive

Error output

No response

@v-yuanren v-yuanren added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 12, 2022
@ghost ghost added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 12, 2022
@dingmeng-xue dingmeng-xue added App Services aka WebSites CXP Attention [Deprecated] The Azure CXP Support Team is responsible for this issue. labels Oct 13, 2022
@ghost
Copy link

ghost commented Oct 13, 2022

Thank you for your feedback. This has been routed to the support team for assistance.

@Kotasudhakarreddy Kotasudhakarreddy self-assigned this Oct 18, 2022
@RakeshMohanMSFT RakeshMohanMSFT added Service Attention This issue is responsible by Azure service team. and removed CXP Attention [Deprecated] The Azure CXP Support Team is responsible for this issue. labels Oct 19, 2022
@ghost
Copy link

ghost commented Oct 19, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @antcp, @AzureAppServiceCLI.

Issue Details

Description

By using Publish-AzWebApp with war deployment. Azure unpacks incorrectly if there are jsp files in war. Other files (e.g. css, png, folders etc) will not be copied to local tomcat correctly in kudu.

Reproduce

  1. Get a java project with some jsp files
  2. Generate war file
  3. Deploy to a web app with tomcat server by using Publish-AzWebapp -ResourceGroupName -Name -ArchivePath
  4. Under /home/site/wwwroot/webapps/ROOT, all the files are unpacked successfully
  5. Check /usr/local/tomcat/webapps/ROOT, only jsp files and WEB-INF copied to this local tomcat.
  6. Browse the website, the missing css, png files will return 404
    image

Other findings

  1. If you remove all jsp files, all other files will be copied to local tomcat successfully
  2. If you use Azure CLI to deploy war file, all jsp files and other files will be unpacked to local tomcat successfully
    image

Reported this issue to PG and got response:
Unpacking WAR files in /site/wwwroot/webapps is a legacy behavior that we no longer recommend. This is the deploy behavior of Publish-AzWebApp. We recommend using the az webapp deploy command to deploy WAR files to /home/site/wwwroot without unpacking.

My questions

  1. Is it possible to fix the issue? For example, deploy with unpacked war file or copied to local tomcat correctly? https://github.com/Azure/azure-powershell/blob/main/src/Websites/Websites/Cmdlets/WebApps/PublishAzureWebApp.cs#L64
  2. The Publish-AzWebApp method still exists in document https://learn.microsoft.com/en-us/azure/app-service/deploy-zip?tabs=powershell#deploy-warjarear-packages. If you are not planning to fix the issue, can you please update documents with warning when using this deploment? Or can you remove the Publish-AzWebApp if it is not recommended to deploy war file?

Issue script & Debug output

DEBUG: [Common.Authentication]: Authenticating using Account: '', environment: 'AzureCloud', tenant: ''
DEBUG: 12:06:51 PM - [ManagedServiceIdentityAuthenticator] Calling ManagedIdentityCredential.GetTokenAsync - TenantId:'', Scopes:'https://management.core.windows.net/', UserId:''
DEBUG: ManagedIdentityCredential.GetToken invoked. Scopes: [ https://management.core.windows.net/ ] ParentRequestId: 
DEBUG: Request [8a1ce38c-50a1-42ac-821d-8a4786841d89] POST http://localhost:50342/oauth2/token
Metadata:REDACTED
x-ms-client-request-id:8a1ce38c-50a1-42ac-821d-8a4786841d89
x-ms-return-client-request-id:true
User-Agent:azsdk-net-Identity/1.6.0,(.NET 6.0.8; Linux 5.4.0-1091-azure #96~18.04.1-Ubuntu SMP Tue Aug 30 19:15:32 UTC 2022)
Content-Type:application/x-www-form-urlencoded
client assembly: Azure.Identity
DEBUG: Response [8a1ce38c-50a1-42ac-821d-8a4786841d89] 200 OK (00.0s)
X-Powered-By:REDACTED
ETag:W/"30c4-4BbItpZha/3pJ9qHxTSQvOqaGf0"
Date:Wed, 12 Oct 2022 12:06:51 GMT
Connection:keep-alive
Keep-Alive:REDACTED
Content-Type:application/json; charset=utf-8
Content-Length:12484

DEBUG: ManagedIdentityCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net/ ] ParentRequestId:  ExpiresOn: 2022-10-12T13:10:26.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '', UserId: ''
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/publishingcredentials/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : af059c34-59fe-4f50-b4c6-0a51fa91cd6d
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11999
x-ms-correlation-request-id   : abd78425-267e-4c40-9f45-5ffadc6ae00e
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120651Z:abd78425-267e-4c40-9f45-5ffadc6ae00e
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:06:51 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//Microsoft.Web/sites//publishingcredentials/",
  "name": "",
  "type": "Microsoft.Web/sites/publishingcredentials",
  "location": "Southeast Asia",
  "properties": {
    "name": null,
    "publishingUserName": "",
    "publishingPassword": "",
    "publishingPasswordHash": null,
    "publishingPasswordHashSalt": null,
    "metadata": null,
    "isDeleted": false,
    "scmUri": ""
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites/?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
ETag                          : "1D8D9694E332DC0"
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : d49cb30a-ab00-4dbe-b3ca-ee070474bd1d
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11996
x-ms-correlation-request-id   : 8c9c6ec2-ae95-461a-a6a9-af2b253f4681
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:8c9c6ec2-ae95-461a-a6a9-af2b253f4681
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites/",
  "name": "",
  "type": "Microsoft.Web/sites",
  "kind": "app,linux",
  "location": "Southeast Asia",
  "properties": {
    "name": "",
    "state": "Running",
    "hostNames": [
      ".azurewebsites.net"
    ],
    "webSpace": "",
    "selfLink": "https://waws-prod-sg1-019.api.azurewebsites.windows.net:454/subscriptions//webspaces//sites/",
    "repositorySiteName": "",
    "owner": null,
    "usageState": "Normal",
    "enabled": true,
    "adminEnabled": true,
    "enabledHostNames": [
      ".azurewebsites.net",
      ".scm.azurewebsites.net"
    ],
    "siteProperties": {
      "metadata": null,
      "properties": [
        {
          "name": "LinuxFxVersion",
          "value": "TOMCAT|9.0-java11"
        },
        {
          "name": "WindowsFxVersion",
          "value": null
        }
      ],
      "appSettings": null
    },
    "availabilityState": "Normal",
    "sslCertificates": null,
    "csrs": [],
    "cers": null,
    "siteMode": null,
    "hostNameSslStates": [
      {
        "name": ".azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "thumbprint": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Standard"
      },
      {
        "name": ".scm.azurewebsites.net",
        "sslState": "Disabled",
        "ipBasedSslResult": null,
        "virtualIP": null,
        "thumbprint": null,
        "toUpdate": null,
        "toUpdateIpBasedSsl": null,
        "ipBasedSslState": "NotConfigured",
        "hostType": "Repository"
      }
    ],
    "computeMode": null,
    "serverFarm": null,
    "serverFarmId": "/subscriptions//resourceGroups//providers/Microsoft.Web/serverfarms/",
    "reserved": true,
    "isXenon": false,
    "hyperV": false,
    "lastModifiedTimeUtc": "2022-10-06T09:52:11.42",
    "storageRecoveryDefaultState": "Running",
    "contentAvailabilityState": "Normal",
    "runtimeAvailabilityState": "Normal",
    "vnetRouteAllEnabled": false,
    "containerAllocationSubnet": null,
    "useContainerLocalhostBindings": null,
    "vnetImagePullEnabled": false,
    "vnetContentShareEnabled": false,
    "siteConfig": {
      "numberOfWorkers": 1,
      "defaultDocuments": null,
      "netFrameworkVersion": null,
      "phpVersion": null,
      "pythonVersion": null,
      "nodeVersion": null,
      "powerShellVersion": null,
      "linuxFxVersion": "TOMCAT|9.0-java11",
      "windowsFxVersion": null,
      "requestTracingEnabled": null,
      "remoteDebuggingEnabled": null,
      "remoteDebuggingVersion": null,
      "httpLoggingEnabled": null,
      "azureMonitorLogCategories": null,
      "acrUseManagedIdentityCreds": false,
      "acrUserManagedIdentityID": null,
      "logsDirectorySizeLimit": null,
      "detailedErrorLoggingEnabled": null,
      "publishingUsername": null,
      "publishingPassword": null,
      "appSettings": null,
      "metadata": null,
      "connectionStrings": null,
      "machineKey": null,
      "handlerMappings": null,
      "documentRoot": null,
      "scmType": null,
      "use32BitWorkerProcess": null,
      "webSocketsEnabled": null,
      "alwaysOn": true,
      "javaVersion": null,
      "javaContainer": null,
      "javaContainerVersion": null,
      "appCommandLine": null,
      "managedPipelineMode": null,
      "virtualApplications": null,
      "winAuthAdminState": null,
      "winAuthTenantState": null,
      "customAppPoolIdentityAdminState": null,
      "customAppPoolIdentityTenantState": null,
      "runtimeADUser": null,
      "runtimeADUserPassword": null,
      "loadBalancing": null,
      "routingRules": null,
      "experiments": null,
      "limits": null,
      "autoHealEnabled": null,
      "autoHealRules": null,
      "tracingOptions": null,
      "vnetName": null,
      "vnetRouteAllEnabled": null,
      "vnetPrivatePortsCount": null,
      "publicNetworkAccess": null,
      "cors": null,
      "push": null,
      "apiDefinition": null,
      "apiManagementConfig": null,
      "autoSwapSlotName": null,
      "localMySqlEnabled": null,
      "managedServiceIdentityId": null,
      "xManagedServiceIdentityId": null,
      "keyVaultReferenceIdentity": null,
      "ipSecurityRestrictions": null,
      "ipSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictions": null,
      "scmIpSecurityRestrictionsDefaultAction": null,
      "scmIpSecurityRestrictionsUseMain": null,
      "http20Enabled": false,
      "minTlsVersion": null,
      "minTlsCipherSuite": null,
      "supportedTlsCipherSuites": null,
      "scmMinTlsVersion": null,
      "ftpsState": null,
      "preWarmedInstanceCount": null,
      "functionAppScaleLimit": 0,
      "elasticWebAppScaleLimit": null,
      "healthCheckPath": null,
      "fileChangeAuditEnabled": null,
      "functionsRuntimeScaleMonitoringEnabled": null,
      "websiteTimeZone": null,
      "minimumElasticInstanceCount": 0,
      "azureStorageAccounts": null,
      "http20ProxyFlag": null,
      "sitePort": null,
      "antivirusScanEnabled": null,
      "storageType": null
    },
    "deploymentId": "",
    "slotName": null,
    "trafficManagerHostNames": null,
    "sku": "Basic",
    "scmSiteAlsoStopped": false,
    "targetSwapSlot": null,
    "hostingEnvironment": null,
    "hostingEnvironmentProfile": null,
    "clientAffinityEnabled": false,
    "clientCertEnabled": false,
    "clientCertMode": "Required",
    "clientCertExclusionPaths": null,
    "hostNamesDisabled": false,
    "domainVerificationIdentifiers": null,
    "customDomainVerificationId": "",
    "kind": "app,linux",
    "inboundIpAddress": "52.187.36.104",
    "possibleInboundIpAddresses": "52.187.36.104",
    "ftpUsername": "",
    "ftpsHostName": "f",
    "outboundIpAddresses": "52.187.36.104,52.187.129.179,52.187.23.154,52.163.123.89,52.230.18.200",
    "possibleOutboundIpAddresses": "52.187.36.104,52.187.129.179,52.187.23.154,52.163.123.89,52.230.18.200,20.184.9.149,20.191.136.243",
    "containerSize": 0,
    "dailyMemoryTimeQuota": 0,
    "suspendedTill": null,
    "siteDisabledReason": 0,
    "functionExecutionUnitsCache": null,
    "maxNumberOfWorkers": null,
    "homeStamp": "waws-prod-sg1-019",
    "cloningInfo": null,
    "hostingEnvironmentId": null,
    "tags": null,
    "resourceGroup": "",
    "defaultHostName": ".azurewebsites.net",
    "slotSwapStatus": null,
    "httpsOnly": true,
    "redundancyMode": "None",
    "inProgressOperationId": null,
    "geoDistributions": null,
    "privateEndpointConnections": [],
    "publicNetworkAccess": null,
    "buildVersion": null,
    "targetBuildVersion": null,
    "migrationState": null,
    "eligibleLogCategories": "AppServiceAppLogs,AppServiceAuditLogs,AppServiceConsoleLogs,AppServiceHTTPLogs,AppServiceIPSecAuditLogs,AppServicePlatformLogs,ScanLogs",
    "storageAccountRequired": false,
    "virtualNetworkSubnetId": null,
    "keyVaultReferenceIdentity": "SystemAssigned",
    "privateLinkIdentifiers": null
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/web?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 8ddc8f4e-0d65-45f9-b3cd-9ce5ef5901e0
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11995
x-ms-correlation-request-id   : 9c732995-73f0-416e-944c-3dc68df0162c
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:9c732995-73f0-416e-944c-3dc68df0162c
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/web",
  "name": "",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {
    "numberOfWorkers": 1,
    "defaultDocuments": [
      "Default.htm",
      "Default.html",
      "Default.asp",
      "index.htm",
      "index.html",
      "iisstart.htm",
      "default.aspx",
      "index.php",
      "hostingstart.html"
    ],
    "netFrameworkVersion": "v4.0",
    "phpVersion": "",
    "pythonVersion": "",
    "nodeVersion": "",
    "powerShellVersion": "",
    "linuxFxVersion": "TOMCAT|9.0-java11",
    "windowsFxVersion": null,
    "requestTracingEnabled": false,
    "remoteDebuggingEnabled": false,
    "remoteDebuggingVersion": null,
    "httpLoggingEnabled": false,
    "azureMonitorLogCategories": null,
    "acrUseManagedIdentityCreds": false,
    "acrUserManagedIdentityID": null,
    "logsDirectorySizeLimit": 35,
    "detailedErrorLoggingEnabled": false,
    "publishingUsername": "",
    "publishingPassword": null,
    "appSettings": null,
    "metadata": null,
    "connectionStrings": null,
    "machineKey": null,
    "handlerMappings": null,
    "documentRoot": null,
    "scmType": "None",
    "use32BitWorkerProcess": true,
    "webSocketsEnabled": false,
    "alwaysOn": true,
    "javaVersion": null,
    "javaContainer": null,
    "javaContainerVersion": null,
    "appCommandLine": "",
    "managedPipelineMode": "Integrated",
    "virtualApplications": [
      {
        "virtualPath": "/",
        "physicalPath": "site\\wwwroot",
        "preloadEnabled": true,
        "virtualDirectories": null
      }
    ],
    "winAuthAdminState": 0,
    "winAuthTenantState": 0,
    "customAppPoolIdentityAdminState": false,
    "customAppPoolIdentityTenantState": false,
    "runtimeADUser": null,
    "runtimeADUserPassword": null,
    "loadBalancing": "LeastRequests",
    "routingRules": [],
    "experiments": {
      "rampUpRules": []
    },
    "limits": null,
    "autoHealEnabled": false,
    "autoHealRules": null,
    "tracingOptions": null,
    "vnetName": "",
    "vnetRouteAllEnabled": false,
    "vnetPrivatePortsCount": 0,
    "publicNetworkAccess": null,
    "siteAuthEnabled": false,
    "siteAuthSettings": {
      "enabled": null,
      "unauthenticatedClientAction": null,
      "tokenStoreEnabled": null,
      "allowedExternalRedirectUrls": null,
      "defaultProvider": null,
      "clientId": null,
      "clientSecret": null,
      "clientSecretSettingName": null,
      "clientSecretCertificateThumbprint": null,
      "issuer": null,
      "allowedAudiences": null,
      "additionalLoginParams": null,
      "isAadAutoProvisioned": false,
      "aadClaimsAuthorization": null,
      "googleClientId": null,
      "googleClientSecret": null,
      "googleClientSecretSettingName": null,
      "googleOAuthScopes": null,
      "facebookAppId": null,
      "facebookAppSecret": null,
      "facebookAppSecretSettingName": null,
      "facebookOAuthScopes": null,
      "gitHubClientId": null,
      "gitHubClientSecret": null,
      "gitHubClientSecretSettingName": null,
      "gitHubOAuthScopes": null,
      "twitterConsumerKey": null,
      "twitterConsumerSecret": null,
      "twitterConsumerSecretSettingName": null,
      "microsoftAccountClientId": null,
      "microsoftAccountClientSecret": null,
      "microsoftAccountClientSecretSettingName": null,
      "microsoftAccountOAuthScopes": null,
      "configVersion": null
    },
    "cors": null,
    "push": null,
    "apiDefinition": null,
    "apiManagementConfig": null,
    "autoSwapSlotName": null,
    "localMySqlEnabled": false,
    "managedServiceIdentityId": null,
    "xManagedServiceIdentityId": null,
    "keyVaultReferenceIdentity": null,
    "ipSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "ipSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictions": [
      {
        "ipAddress": "Any",
        "action": "Allow",
        "priority": 2147483647,
        "name": "Allow all",
        "description": "Allow all access"
      }
    ],
    "scmIpSecurityRestrictionsDefaultAction": null,
    "scmIpSecurityRestrictionsUseMain": false,
    "http20Enabled": false,
    "minTlsVersion": "1.2",
    "minTlsCipherSuite": null,
    "supportedTlsCipherSuites": null,
    "scmMinTlsVersion": "1.2",
    "ftpsState": "FtpsOnly",
    "preWarmedInstanceCount": 0,
    "functionAppScaleLimit": null,
    "elasticWebAppScaleLimit": 0,
    "healthCheckPath": null,
    "fileChangeAuditEnabled": false,
    "functionsRuntimeScaleMonitoringEnabled": false,
    "websiteTimeZone": null,
    "minimumElasticInstanceCount": 0,
    "azureStorageAccounts": {},
    "http20ProxyFlag": 0,
    "sitePort": null,
    "antivirusScanEnabled": false,
    "storageType": "StorageVolume"
  }
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : caecfdf7-a9ad-4f87-a622-c19db46edd54
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11998
x-ms-correlation-request-id   : b3f52e9b-2f89-4ce8-b4b1-f5b3a80df290
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:b3f52e9b-2f89-4ce8-b4b1-f5b3a80df290
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:08 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings",
  "name": "appsettings",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups/providers/Microsoft.Web/sites//config/connectionstrings/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 6e083fa2-afaf-46d9-92a3-d51dc2eae382
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11997
x-ms-correlation-request-id   : e88e11e1-2f9d-4f88-9f47-79aa99d84b5e
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120709Z:e88e11e1-2f9d-4f88-9f47-79aa99d84b5e
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:09 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites/config/connectionstrings",
  "name": "connectionstrings",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}


DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/azurestorageaccounts/list?api-version=2021-01-15

Headers:
x-ms-client-request-id        : ad019f14-72f4-4247-a4f7-b8ac771ecc53
Accept-Language               : en-US

Body:



DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 2e770266-39c7-4142-bc8f-b77d0e8bf079
Server                        : Microsoft-IIS/10.0
X-AspNet-Version              : 4.0.30319
X-Powered-By                  : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 11996
x-ms-correlation-request-id   : 10361985-9076-4750-ac11-d18555aba7b6
x-ms-routing-request-id       : SOUTHEASTASIA:20221012T120710Z:10361985-9076-4750-ac11-d18555aba7b6
X-Content-Type-Options        : nosniff
Date                          : Wed, 12 Oct 2022 12:07:09 GMT

Body:
{
  "id": "/subscriptions//resourceGroups//providers/Microsoft.Web/sites//config/appsettings",
  "name": "azurestorageaccounts",
  "type": "Microsoft.Web/sites/config",
  "location": "Southeast Asia",
  "properties": {}
}



Name                           State    ResourceGroup                  EnabledHostNames                                   Location
----                           -----    -------------                  ----------------                                   --------
                              Running               
DEBUG: 12:07:10 PM - [ConfigManager] Got [True] from [EnableDataCollection], Module = [], Cmdlet = [].
DEBUG: AzureQoSEvent: Module: Az.Websites:2.11.4; CommandName: Publish-AzWebApp; PSVersion: 7.2.6; IsSuccess: True; Duration: 00:00:16.4945678
DEBUG: Finish sending metric.
DEBUG: 12:07:10 PM - PublishAzureWebAppCmdlet end processing.

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.6
PSEdition                      Core
GitCommitId                    7.2.6
OS                             Linux 5.4.0-1091-azure #96~18.04.1-Ubuntu SMP Tue Aug 30 19:15:32 UTC 2022
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.10.0                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     4.31.0                Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk…}
Script     4.20.1                Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Add-AzApplicationGatewayBackendAddressPool, Add-A…
Script     6.2.0                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}
Script     4.9.0                 Az.Storage                          {Add-AzRmStorageContainerLegalHold, Add-AzStorageAccountManagementPolicyAction, Add-AzStorageAccountN…
Script     2.11.4                Az.Websites                         {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Ent…
Script     0.0.0.10              AzureAD.Standard.Preview            {Add-AzureADApplicationOwner, Add-AzureADDeviceRegisteredOwner, Add-AzureADDeviceRegisteredUser, Add-…
Script     0.9.3                 AzurePSDrive

Error output

No response

Author: v-yuanren
Assignees: Kotasudhakarreddy
Labels:

App Services, Service Attention, bug, customer-reported

Milestone: -

@rachelxj-ms rachelxj-ms self-assigned this Oct 24, 2022
VeryEarly added a commit that referenced this issue Oct 24, 2022
… package [##19791] (#19917)

* Fixed `Publish-AzWebApp` to use latest publish API when deploying war package [##19791]

* Revert "Fixed `Publish-AzWebApp` to use latest publish API when deploying war package [##19791]"

This reverts commit e405d9b.

* Fixed `Publish-AzWebApp` to use latest publish API when deploying war package [##19791]

* Update ChangeLog.md

Co-authored-by: Xuejun Li <[email protected]>
Co-authored-by: Yabo Hu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App Services aka WebSites bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants