Azure / Azure/azure-powershell

webapp: New-AzWebApp does not set LinuxFxVersion from ContainerImageName

Open
#10,645 20 comments 5 reactions 2 assignees Claimed by @NitashaV View on GitHub
act-observability-squad App Services customer-reported Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

## Description
[New-AzWebApp](https://docs.microsoft.com/en-us/powershell/module/az.websites/new-azwebapp?view=azps-3.1.0) (as well as Set-AzWebApp) should allow directly provisioning linux app services from private or public docker images.

Looking at the ARM HTTP requests it looks like the `LinuxFxVersion` is not sent and no container image is configured.

Looking at [the source](https://github.com/Azure/azure-powershell/blob/master/src/Websites/Websites/Cmdlets/WebApps/NewAzureWebApp.cs#L312) there seems to be handling for windows container in `New-AzWebApp` but nothing in terms of a Linux-else-case. [The source](https://github.com/Azure/azure-powershell/blob/master/src/Websites/Websites/Cmdlets/WebApps/SetAzureWebApp.cs#L195) of `Set-AzWebApp` seems to have code for this case and setting `ContainerImageName` afterwards works.

## Steps to reproduce

```powershell
$RGName = "containertest"
$Location = "West Europe"
$ServicePlanName = "containertest"
$WebAppName = "containertest39864096"
$containerImageName = "nginx"

New-AzResource -ResourceGroupName $RGName -Location $Location -ResourceType microsoft.web/serverfarms -ResourceName $ServicePlanName -kind linux -Properties @{reserved = "true" } -Sku @{name = "S1"; tier = "Standard"; size = "S1"; family = "S"; capacity = "1" } -Force
New-AzWebApp -Name $WebAppName -ResourceGroupName $RGName -Location $Location -AppServicePlan $ServicePlanName -ContainerImageName $containerImageName -Verbose -Debug
```

## Environment data

```
Name Value
---- -----
PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Linux 4.15.0-1063-azure #68-Ubuntu SMP Fri Nov 8 09:30:20 UTC 2019
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```

## Module versions

```powershell
Directory: /usr/local/share/powershell/Modules

ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Script 3.1.0 Az Core,Desk
Script 1.6.4 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave…}
Script 1.1.0 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration…}
Script 1.0.2 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential…}
Script 1.1.1 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer…}
Script 1.3.2 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup…}
Script 1.0.2 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Set-AzApplicationInsightsPricingPlan…}
Script 1.3.4 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration…}
Script 2.0.1 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount…}
Script 1.0.1 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget…}
Script 1.4.0 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile…}
Script 1.2.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType…}
Script 3.1.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet…}
Script 1.0.1 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script 1.1.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry…}
Script 1.0.0 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice…}
Script 1.5.0 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2…}
Script 1.0.1 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential…}
Script 1.2.5 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider…}
Script 1.0.1 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource…}
Script 1.0.0 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy…}
Script 1.1.1 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet…}
Script 1.2.2 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey…}
Script 1.4.1 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace…}
Script 1.2.0 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor…}
Script 0.10.6 Az.GuestConfiguration Core,Desk {Get-AzVMGuestPolicyStatus, Get-AzVMGuestPolicyStatusHistory}
Script 3.0.0 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition…}
Script 1.0.0 Az.HealthcareApis Core,Desk {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}
Script 2.0.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob…}
Script 1.3.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation…}
Script 1.3.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl…}
Script 1.1.1 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan…}
Script 1.0.1 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition…}
Script 1.0.1 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script 1.1.0 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability…}
Script 1.4.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile…}
Script 2.1.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzAppl…
Script 1.1.0 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential…}
Script 1.3.3 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOp…
Script 1.1.3 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation…}
Script 1.1.0 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace…}
Script 1.0.1 Az.PrivateDns Core,Desk {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone…}
Script 2.1.0 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault…}
Script 1.2.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule…}
Script 1.0.2 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace…}
Script 1.8.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment…}
Script 1.4.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace…}
Script 2.0.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType…}
Script 1.1.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey…}
Script 2.1.0 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHi…
Script 1.0.0 Az.SqlVirtualMachine Core,Desk {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM…}
Script 1.9.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey…}
Script 1.2.1 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-AzStorageSyncService…}
Script 1.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction…}
Script 1.0.2 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomH…
Script 1.5.0 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan…}
Script 0.0.0.10 AzureAD.Standard.Preview Desk {Add-AzureADDeviceRegisteredUser, Get-AzureADServicePrincipal, Get-AzureADMSIdentityProvider, New-AzureADApplicationKeyCredential…}
Script 0.9.3 AzurePSDrive Desk
Script 17.0.2985… EXOPSSessionConnector Desk Connect-EXOPSSession
Manifest 1.0.802 MicrosoftPowerBIMgmt Desk
Binary 1.0.802 MicrosoftPowerBIMgmt.Admin Desk {Add-PowerBIEncryptionKey, Get-PowerBIEncryptionKey, Get-PowerBIWorkspaceEncryptionStatus, Switch-PowerBIEncryptionKey…}
Binary 1.0.802 MicrosoftPowerBIMgmt.Capacities Desk Get-PowerBICapacity
Binary 1.0.802 MicrosoftPowerBIMgmt.Data Desk {Add-PowerBIDataset, Set-PowerBITable, New-PowerBIDataset, New-PowerBITable…}
Binary 1.0.802 MicrosoftPowerBIMgmt.Profile Desk {Connect-PowerBIServiceAccount, Disconnect-PowerBIServiceAccount, Invoke-PowerBIRestMethod, Get-PowerBIAccessToken…}
Binary 1.0.802 MicrosoftPowerBIMgmt.Reports Desk {Get-PowerBIReport, New-PowerBIReport, Export-PowerBIReport, Get-PowerBIDashboard…}
Binary 1.0.802 MicrosoftPowerBIMgmt.Workspaces Desk {Get-PowerBIWorkspace, Get-PowerBIWorkspaceMigrationStatus, Add-PowerBIWorkspaceUser, Remove-PowerBIWorkspaceUser…}
Binary 1.0.3 MicrosoftTeams Desk {Get-CsBatchPolicyAssignmentOperation, Invoke-CsBatchPolicyAssignment}
Script 0.9.3 PSCloudShellUtility Desk {Enter-AzVM, Get-AzCommand, Invoke-AzVMCommand, Enable-AzVMPSRemoting…}
Binary 0.8.1 SHiPS Desk
Script 21.1.18209 SqlServer Desk {Add-RoleMember, Add-SqlAvailabilityDatabase, Add-SqlAvailabilityGroupListenerStaticIp, Add-SqlAzureAuthenticationContext…}

Directory: /opt/microsoft/powershell/6/Modules

ModuleType Version Name PSEdition ExportedCommands
---------- ------- ---- --------- ----------------
Manifest 1.2.3.0 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
Manifest 6.1.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}
Manifest 6.1.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path…}
Manifest 6.1.0.0 Microsoft.PowerShell.Security Core {Get-Credential, Get-ExecutionPolicy, Set-ExecutionPolicy, ConvertFrom-SecureString…}
Manifest 6.1.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, New-Alias…}
Script 1.3.2 PackageManagement Desk {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script 2.1.3 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 0.0 PSDesiredStateConfiguration Desk {Set-NodeResourceSource, CheckResourceFound, Set-NodeManager, Update-ModuleVersion…}
Script 2.0.0 PSReadLine Desk {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption…}
Binary 1.1.2 ThreadJob Desk Start-ThreadJob
```

## Debug output

(I removed some IDs/credentials.)

```
DEBUG: 2:21:44 PM - NewAzureWebAppCmdlet begin processing with ParameterSet 'SimpleParameterSet'.
DEBUG: 2:21:44 PM - using account id 'MSI@50342'...

Confirm
Are you sure you want to perform this action?
Performing the operation "Create" on target "WebApp 'containertest39864096'".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): a
VERBOSE: ResourceGroupName = "containertest"
VERBOSE: Location = "West Europe"
VERBOSE: ContainerImageName = "nginx"
VERBOSE: GitRepositoryPath = $null

Name State ResourceGroup EnabledHostNames Location
---- ----- ------------- ---------------- --------
containertest39864096 Running containertest {containertest39864096.azurewebsites.net, contain… West Europe
DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2018-02-01

Headers:
x-ms-client-request-id : 2baf5321-d4eb-4c01-9aa7-7d24cc2331c0
Accept-Language : en-US

Body:
{
"name": "containertest39864096",
"type": "Site"
}

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 : bfe64fd0-344e-4afc-add3-56d6d4b8b602
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : 0a63eb42-8a0e-4376-bbaf-877191ad1026
x-ms-routing-request-id : WESTEUROPE:20191202T142144Z:0a63eb42-8a0e-4376-bbaf-877191ad1026
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:44 GMT

Body:
{
"nameAvailable": true,
"reason": "",
"message": ""
}

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

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest?api-version=2018-02-01

Headers:
x-ms-client-request-id : ce78f428-078b-47f6-bcf3-6350d5aaf2e4
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 : 03fbcc88-8abf-4760-a03a-bb5a2b5a0989
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11997
x-ms-correlation-request-id : 04bf366f-1ea5-46db-90d8-74ede84bf6c3
x-ms-routing-request-id : WESTEUROPE:20191202T142149Z:04bf366f-1ea5-46db-90d8-74ede84bf6c3
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:48 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest",
"name": "containertest",
"type": "Microsoft.Web/serverfarms",
"kind": "linux",
"location": "West Europe",
"properties": {
"serverFarmId": 548,
"name": "containertest",
"workerSize": "Default",
"workerSizeId": 0,
"workerTierName": null,
"numberOfWorkers": 1,
"currentWorkerSize": "Default",
"currentWorkerSizeId": 0,
"currentNumberOfWorkers": 1,
"status": "Ready",
"webSpace": "containertest-WestEuropewebspace",
"subscription": "17a4f447-0000-0000-0000-000000000000",
"adminSiteName": null,
"hostingEnvironment": null,
"hostingEnvironmentProfile": null,
"maximumNumberOfWorkers": 10,
"planName": "VirtualDedicatedPlan",
"adminRuntimeSiteName": null,
"computeMode": "Dedicated",
"siteMode": null,
"geoRegion": "West Europe",
"perSiteScaling": false,
"maximumElasticWorkerCount": 1,
"numberOfSites": 0,
"hostingEnvironmentId": null,
"isSpot": false,
"spotExpirationTime": null,
"freeOfferExpirationTime": null,
"tags": null,
"kind": "linux",
"resourceGroup": "containertest",
"reserved": true,
"isXenon": false,
"hyperV": false,
"mdmId": "waws-prod-am2-295_548",
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded",
"webSiteId": null,
"existingServerFarmIds": null
},
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"family": "S",
"capacity": 1
}
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096?api-version=2018-11-01

Headers:
x-ms-client-request-id : b1f46c32-2444-406e-9d4e-e5a040003eb3
Accept-Language : en-US

Body:

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

Status Code:
NotFound

Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-failure-cause : gateway
x-ms-request-id : cccea4f1-0e75-46fd-b082-4d8d2f68148a
x-ms-correlation-request-id : cccea4f1-0e75-46fd-b082-4d8d2f68148a
x-ms-routing-request-id : WESTEUROPE:20191202T142149Z:cccea4f1-0e75-46fd-b082-4d8d2f68148a
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:49 GMT

Body:
{
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Web/sites/containertest39864096' under resource group 'containertest' was not found."
}
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourcegroups/containertest?api-version=2016-09-01

Headers:
x-ms-client-request-id : 72ea2ff0-a1c8-432f-acbc-c80e22cff07e
Accept-Language : en-US

Body:

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest?api-version=2018-02-01

Headers:
x-ms-client-request-id : ceca2013-1c85-415f-97a3-eb8c9814196c
Accept-Language : en-US

Body:

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

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
x-ms-ratelimit-remaining-subscription-reads: 11997
x-ms-request-id : 54499e41-e8ae-441e-bd6e-55a103119f8d
x-ms-correlation-request-id : 54499e41-e8ae-441e-bd6e-55a103119f8d
x-ms-routing-request-id : WESTEUROPE:20191202T142149Z:54499e41-e8ae-441e-bd6e-55a103119f8d
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:49 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest",
"name": "containertest",
"location": "westeurope",
"tags": {},
"properties": {
"provisioningState": "Succeeded"
}
}

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 : c4cc122c-ff29-4b17-8aa7-50dfbb294df9
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : a33eab7f-1823-43df-bb06-7ca956d27184
x-ms-routing-request-id : WESTEUROPE:20191202T142150Z:a33eab7f-1823-43df-bb06-7ca956d27184
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:50 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest",
"name": "containertest",
"type": "Microsoft.Web/serverfarms",
"kind": "linux",
"location": "West Europe",
"properties": {
"serverFarmId": 548,
"name": "containertest",
"workerSize": "Default",
"workerSizeId": 0,
"workerTierName": null,
"numberOfWorkers": 1,
"currentWorkerSize": "Default",
"currentWorkerSizeId": 0,
"currentNumberOfWorkers": 1,
"status": "Ready",
"webSpace": "containertest-WestEuropewebspace",
"subscription": "17a4f447-0000-0000-0000-000000000000",
"adminSiteName": null,
"hostingEnvironment": null,
"hostingEnvironmentProfile": null,
"maximumNumberOfWorkers": 10,
"planName": "VirtualDedicatedPlan",
"adminRuntimeSiteName": null,
"computeMode": "Dedicated",
"siteMode": null,
"geoRegion": "West Europe",
"perSiteScaling": false,
"maximumElasticWorkerCount": 1,
"numberOfSites": 0,
"hostingEnvironmentId": null,
"isSpot": false,
"spotExpirationTime": null,
"freeOfferExpirationTime": null,
"tags": null,
"kind": "linux",
"resourceGroup": "containertest",
"reserved": true,
"isXenon": false,
"hyperV": false,
"mdmId": "waws-prod-am2-295_548",
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded",
"webSiteId": null,
"existingServerFarmIds": null
},
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"family": "S",
"capacity": 1
}
}

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

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest?api-version=2018-02-01

Headers:
x-ms-client-request-id : bbb4a9e6-4d5f-47cb-b72e-b5975d2bc760
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 : f4f5cddd-c13f-4b0a-b079-8d75e75792e9
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 : df4f535a-ebde-4633-b1f7-f51d20241cec
x-ms-routing-request-id : WESTEUROPE:20191202T142152Z:df4f535a-ebde-4633-b1f7-f51d20241cec
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:21:52 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest",
"name": "containertest",
"type": "Microsoft.Web/serverfarms",
"kind": "linux",
"location": "West Europe",
"properties": {
"serverFarmId": 548,
"name": "containertest",
"workerSize": "Default",
"workerSizeId": 0,
"workerTierName": null,
"numberOfWorkers": 1,
"currentWorkerSize": "Default",
"currentWorkerSizeId": 0,
"currentNumberOfWorkers": 1,
"status": "Ready",
"webSpace": "containertest-WestEuropewebspace",
"subscription": "17a4f447-0000-0000-0000-000000000000",
"adminSiteName": null,
"hostingEnvironment": null,
"hostingEnvironmentProfile": null,
"maximumNumberOfWorkers": 10,
"planName": "VirtualDedicatedPlan",
"adminRuntimeSiteName": null,
"computeMode": "Dedicated",
"siteMode": null,
"geoRegion": "West Europe",
"perSiteScaling": false,
"maximumElasticWorkerCount": 1,
"numberOfSites": 0,
"hostingEnvironmentId": null,
"isSpot": false,
"spotExpirationTime": null,
"freeOfferExpirationTime": null,
"tags": null,
"kind": "linux",
"resourceGroup": "containertest",
"reserved": true,
"isXenon": false,
"hyperV": false,
"mdmId": "waws-prod-am2-295_548",
"targetWorkerCount": 0,
"targetWorkerSizeId": 0,
"provisioningState": "Succeeded",
"webSiteId": null,
"existingServerFarmIds": null
},
"sku": {
"name": "S1",
"tier": "Standard",
"size": "S1",
"family": "S",
"capacity": 1
}
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096?api-version=2018-11-01

Headers:
x-ms-client-request-id : 102de063-bd5d-4860-967e-1a49a41554e4
Accept-Language : en-US

Body:
{
"properties": {
"serverFarmId": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverFarms/containertest"
},
"location": "West Europe"
}

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

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : "1D5A91BD92B4380"
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : 70e312e8-8a6b-4dab-8d8b-dbe64d2747fe
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-resource-requests: 499
x-ms-correlation-request-id : ea4642c4-98fa-4cfa-8342-4ca54f410795
x-ms-routing-request-id : WESTEUROPE:20191202T142212Z:ea4642c4-98fa-4cfa-8342-4ca54f410795
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:22:11 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096",
"name": "containertest39864096",
"type": "Microsoft.Web/sites",
"kind": "app,linux",
"location": "West Europe",
"properties": {
"name": "containertest39864096",
"state": "Running",
"hostNames": [
"containertest39864096.azurewebsites.net"
],
"webSpace": "containertest-WestEuropewebspace",
"selfLink": "https://waws-prod-am2-295.api.azurewebsites.windows.net:454/subscriptions/17a4f447-0000-0000-0000-000000000000/webspaces/containertest-WestEuropewebspace/sites/containertest39864096",
"repositorySiteName": "containertest39864096",
"owner": null,
"usageState": "Normal",
"enabled": true,
"adminEnabled": true,
"enabledHostNames": [
"containertest39864096.azurewebsites.net",
"containertest39864096.scm.azurewebsites.net"
],
"siteProperties": {
"metadata": null,
"properties": [
{
"name": "LinuxFxVersion",
"value": ""
},
{
"name": "WindowsFxVersion",
"value": null
}
],
"appSettings": null
},
"availabilityState": "Normal",
"sslCertificates": null,
"csrs": [],
"cers": null,
"siteMode": null,
"hostNameSslStates": [
{
"name": "containertest39864096.azurewebsites.net",
"sslState": "Disabled",
"ipBasedSslResult": null,
"virtualIP": null,
"thumbprint": null,
"toUpdate": null,
"toUpdateIpBasedSsl": null,
"ipBasedSslState": "NotConfigured",
"hostType": "Standard"
},
{
"name": "containertest39864096.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/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/serverfarms/containertest",
"reserved": true,
"isXenon": false,
"hyperV": false,
"lastModifiedTimeUtc": "2019-12-02T14:21:54.9233333",
"storageRecoveryDefaultState": "Running",
"contentAvailabilityState": "Normal",
"runtimeAvailabilityState": "Normal",
"siteConfig": null,
"deploymentId": "containertest39864096",
"trafficManagerHostNames": null,
"sku": "Standard",
"scmSiteAlsoStopped": false,
"targetSwapSlot": null,
"hostingEnvironment": null,
"hostingEnvironmentProfile": null,
"clientAffinityEnabled": true,
"clientCertEnabled": false,
"clientCertExclusionPaths": null,
"hostNamesDisabled": false,
"domainVerificationIdentifiers": null,
"customDomainVerificationId": "28B9CD9A599D72D5EA990D4D9B8367616A2C6B66A4D7B4146F776A16D8C35AE6",
"kind": "app,linux",
"inboundIpAddress": "13.69.68.21",
"possibleInboundIpAddresses": "13.69.68.21",
"outboundIpAddresses": "13.69.68.21,13.80.253.213,40.114.206.102,13.80.139.234,13.80.249.180",
"possibleOutboundIpAddresses": "13.69.68.21,13.80.253.213,40.114.206.102,13.80.139.234,13.80.249.180,13.80.249.135,40.68.80.231,13.80.249.221,40.114.199.82,40.114.204.68",
"containerSize": 0,
"dailyMemoryTimeQuota": 0,
"suspendedTill": null,
"siteDisabledReason": 0,
"functionExecutionUnitsCache": null,
"maxNumberOfWorkers": null,
"homeStamp": "waws-prod-am2-295",
"cloningInfo": null,
"hostingEnvironmentId": null,
"tags": null,
"resourceGroup": "containertest",
"defaultHostName": "containertest39864096.azurewebsites.net",
"slotSwapStatus": null,
"httpsOnly": false,
"redundancyMode": "None",
"inProgressOperationId": null,
"geoDistributions": null,
"privateEndpointConnections": null,
"buildVersion": null,
"targetBuildVersion": null
}
}

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

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web?api-version=2018-11-01

Headers:
x-ms-client-request-id : b1ddeeae-83e4-4ab3-8369-025cde639cab
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 : c2d578da-e79e-494e-857b-f6e76cccf72f
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 : 08077ad1-e328-4b67-9e96-020ded263c36
x-ms-routing-request-id : WESTEUROPE:20191202T142213Z:08077ad1-e328-4b67-9e96-020ded263c36
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:22:12 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web",
"name": "containertest39864096",
"type": "Microsoft.Web/sites/config",
"location": "West Europe",
"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": "",
"linuxFxVersion": "",
"windowsFxVersion": null,
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": null,
"httpLoggingEnabled": false,
"azureMonitorLogCategories": null,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$containertest39864096",
"publishingPassword": null,
"appSettings": null,
"metadata": null,
"connectionStrings": null,
"machineKey": null,
"handlerMappings": null,
"documentRoot": null,
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"javaVersion": null,
"javaContainer": null,
"javaContainerVersion": null,
"appCommandLine": "",
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"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": "",
"siteAuthEnabled": false,
"siteAuthSettings": {
"enabled": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": null,
"clientSecret": null,
"clientSecretCertificateThumbprint": null,
"issuer": null,
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
},
"cors": null,
"push": null,
"apiDefinition": null,
"apiManagementConfig": null,
"autoSwapSlotName": null,
"localMySqlEnabled": false,
"managedServiceIdentityId": null,
"xManagedServiceIdentityId": null,
"ipSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 1,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictions": [
{
"ipAddress": "Any",
"action": "Allow",
"priority": 1,
"name": "Allow all",
"description": "Allow all access"
}
],
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": false,
"minTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"reservedInstanceCount": 0,
"preWarmedInstanceCount": null,
"healthCheckPath": null,
"fileChangeAuditEnabled": false,
"functionsRuntimeScaleMonitoringEnabled": false,
"websiteTimeZone": null
}
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/appsettings/list?api-version=2018-11-01

Headers:
x-ms-client-request-id : c7cf9708-94d2-48cd-9678-925bba265a18
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 : c4e58f59-f149-4594-a34a-dc9af79c23db
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 : 3f0917d0-8a97-40ea-b257-e01da26877ec
x-ms-routing-request-id : WESTEUROPE:20191202T142214Z:3f0917d0-8a97-40ea-b257-e01da26877ec
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:22:13 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/appsettings",
"name": "appsettings",
"type": "Microsoft.Web/sites/config",
"location": "West Europe",
"properties": {}
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/connectionstrings/list?api-version=2018-11-01

Headers:
x-ms-client-request-id : 5fe47b69-fe80-4735-902c-20273a76410f
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 : af8f1601-f9dc-43e0-bc1f-69c1a986dcf0
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 : e4b1f41a-5937-4c0c-b885-c03630d4c34f
x-ms-routing-request-id : WESTEUROPE:20191202T142214Z:e4b1f41a-5937-4c0c-b885-c03630d4c34f
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:22:13 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/connectionstrings",
"name": "connectionstrings",
"type": "Microsoft.Web/sites/config",
"location": "West Europe",
"properties": {}
}

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

HTTP Method:
POST

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/publishxml?api-version=2018-11-01

Headers:
x-ms-client-request-id : 82b4029e-3f42-4e58-b8f8-4d25f2c8f7ff
Accept-Language : en-US

Body:
{
"format": "WebDeploy"
}

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

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
Strict-Transport-Security : max-age=31536000; includeSubDomains
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-request-id : 6232b83c-0bf2-419e-99c0-cf20a514db3d
x-ms-correlation-request-id : 6232b83c-0bf2-419e-99c0-cf20a514db3d
x-ms-routing-request-id : WESTEUROPE:20191202T142215Z:6232b83c-0bf2-419e-99c0-cf20a514db3d
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 14:22:14 GMT

Body:









DEBUG: AzureQoSEvent: CommandName - New-AzWebApp; IsSuccess - True; Duration - 00:00:32.9343938; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 2:22:45 PM - NewAzureWebAppCmdlet end processing.
DEBUG: 2:22:46 PM - NewAzureWebAppCmdlet end processing.
```

## Error output

There is no visible error. The resulting app service is just lacking the container provisioning and is just an default/empty app.

## Workaround to reach the expected result
Executing the following after my initial sample updates the configuration to the expected result:

```powershell
$config = Get-AzResource -ResourceGroupName $RGName -ResourceType Microsoft.Web/sites/config -ResourceName $WebAppName -ApiVersion 2018-02-01
$config.Properties.linuxFxVersion = "DOCKER|$($containerImageName):latest"
$config | Set-AzResource -ApiVersion 2018-02-01 -Debug -Force
```
### Output

```powershell
DEBUG: 9:11:29 PM - SetAzureResourceCmdlet begin processing with ParameterSet 'ByInputObject'.
DEBUG: 9:11:29 PM - using account id 'MSI@50342'...

Confirm
Are you sure you want to perform this action?
Performing the operation "Updating the resource..." on target "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): a
DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web?api-version=2018-02-01

Headers:
User-Agent : ps-cloud-shell/0.1.0,AzurePowershell/v1.0.0,PSVersion/v6.2.3
ParameterSetName : ByInputObject
CommandName : Set-AzResource

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 : 9691a328-e8ce-4b24-aea8-216b1c8e75a5
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-reads: 11998
x-ms-correlation-request-id : b0d0109d-5c06-42ec-8124-e8a1086b7999
x-ms-routing-request-id : WESTEUROPE:20191202T211133Z:b0d0109d-5c06-42ec-8124-e8a1086b7999
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 21:11:32 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web",
"name": "containertest39864096",
"type": "Microsoft.Web/sites/config",
"location": "West Europe",
"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": "",
"linuxFxVersion": "",
"windowsFxVersion": null,
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": null,
"httpLoggingEnabled": false,
"azureMonitorLogCategories": null,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$containertest39864096",
"publishingPassword": null,
"appSettings": null,
"metadata": null,
"connectionStrings": null,
"machineKey": null,
"handlerMappings": null,
"documentRoot": null,
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"javaVersion": null,
"javaContainer": null,
"javaContainerVersion": null,
"appCommandLine": "",
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"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": "",
"siteAuthEnabled": false,
"siteAuthSettings": {
"enabled": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": null,
"clientSecret": null,
"clientSecretCertificateThumbprint": null,
"issuer": null,
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
},
"cors": null,
"push": null,
"apiDefinition": null,
"apiManagementConfig": null,
"autoSwapSlotName": null,
"localMySqlEnabled": false,
"managedServiceIdentityId": null,
"xManagedServiceIdentityId": null,
"ipSecurityRestrictions": null,
"scmIpSecurityRestrictions": null,
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": false,
"minTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"reservedInstanceCount": 0,
"preWarmedInstanceCount": null,
"healthCheckPath": null,
"fileChangeAuditEnabled": false,
"functionsRuntimeScaleMonitoringEnabled": false,
"websiteTimeZone": null
}
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'
DEBUG: Checking Cache request http://localhost:50342/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01
DEBUG: Cache Hit
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
PUT

Absolute Uri:
https://management.azure.com/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096/config/web?api-version=2018-02-01

Headers:
User-Agent : ps-cloud-shell/0.1.0,AzurePowershell/v1.0.0,PSVersion/v6.2.3
ParameterSetName : ByInputObject
CommandName : Set-AzResource

Body:
{
"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": "",
"linuxFxVersion": "DOCKER|nginx:latest",
"windowsFxVersion": null,
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": null,
"httpLoggingEnabled": false,
"azureMonitorLogCategories": null,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$containertest39864096",
"publishingPassword": null,
"appSettings": null,
"metadata": null,
"connectionStrings": null,
"machineKey": null,
"handlerMappings": null,
"documentRoot": null,
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"javaVersion": null,
"javaContainer": null,
"javaContainerVersion": null,
"appCommandLine": "",
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"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": "",
"siteAuthEnabled": false,
"siteAuthSettings": {
"enabled": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": null,
"clientSecret": null,
"clientSecretCertificateThumbprint": null,
"issuer": null,
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
},
"cors": null,
"push": null,
"apiDefinition": null,
"apiManagementConfig": null,
"autoSwapSlotName": null,
"localMySqlEnabled": false,
"managedServiceIdentityId": null,
"xManagedServiceIdentityId": null,
"ipSecurityRestrictions": null,
"scmIpSecurityRestrictions": null,
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": false,
"minTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"reservedInstanceCount": 0,
"preWarmedInstanceCount": null,
"healthCheckPath": null,
"fileChangeAuditEnabled": false,
"functionsRuntimeScaleMonitoringEnabled": false,
"websiteTimeZone": null
},
"location": "West Europe"
}

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

Status Code:
OK

Headers:
Cache-Control : no-cache
Pragma : no-cache
ETag : "1D5A91BD92B4380"
Strict-Transport-Security : max-age=31536000; includeSubDomains
x-ms-request-id : d2fd71e0-0647-48ae-81e0-812141ab35dc
Server : Microsoft-IIS/10.0
X-AspNet-Version : 4.0.30319
X-Powered-By : ASP.NET
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 58293390-79a3-479c-9456-d9bce94cc0e3
x-ms-routing-request-id : WESTEUROPE:20191202T211136Z:58293390-79a3-479c-9456-d9bce94cc0e3
X-Content-Type-Options : nosniff
Date : Mon, 02 Dec 2019 21:11:36 GMT

Body:
{
"id": "/subscriptions/17a4f447-0000-0000-0000-000000000000/resourceGroups/containertest/providers/Microsoft.Web/sites/containertest39864096",
"name": "containertest39864096",
"type": "Microsoft.Web/sites",
"location": "West Europe",
"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": "",
"linuxFxVersion": "DOCKER|nginx:latest",
"windowsFxVersion": null,
"requestTracingEnabled": false,
"remoteDebuggingEnabled": false,
"remoteDebuggingVersion": "VS2019",
"httpLoggingEnabled": false,
"azureMonitorLogCategories": null,
"logsDirectorySizeLimit": 35,
"detailedErrorLoggingEnabled": false,
"publishingUsername": "$containertest39864096",
"publishingPassword": null,
"appSettings": null,
"metadata": null,
"connectionStrings": null,
"machineKey": null,
"handlerMappings": null,
"documentRoot": null,
"scmType": "None",
"use32BitWorkerProcess": true,
"webSocketsEnabled": false,
"alwaysOn": false,
"javaVersion": null,
"javaContainer": null,
"javaContainerVersion": null,
"appCommandLine": "",
"managedPipelineMode": "Integrated",
"virtualApplications": [
{
"virtualPath": "/",
"physicalPath": "site\\wwwroot",
"preloadEnabled": false,
"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": "",
"siteAuthEnabled": false,
"siteAuthSettings": {
"enabled": null,
"unauthenticatedClientAction": null,
"tokenStoreEnabled": null,
"allowedExternalRedirectUrls": null,
"defaultProvider": null,
"clientId": null,
"clientSecret": null,
"clientSecretCertificateThumbprint": null,
"issuer": null,
"allowedAudiences": null,
"additionalLoginParams": null,
"isAadAutoProvisioned": false,
"googleClientId": null,
"googleClientSecret": null,
"googleOAuthScopes": null,
"facebookAppId": null,
"facebookAppSecret": null,
"facebookOAuthScopes": null,
"twitterConsumerKey": null,
"twitterConsumerSecret": null,
"microsoftAccountClientId": null,
"microsoftAccountClientSecret": null,
"microsoftAccountOAuthScopes": null
},
"cors": null,
"push": null,
"apiDefinition": null,
"apiManagementConfig": null,
"autoSwapSlotName": null,
"localMySqlEnabled": false,
"managedServiceIdentityId": null,
"xManagedServiceIdentityId": null,
"ipSecurityRestrictions": null,
"scmIpSecurityRestrictions": null,
"scmIpSecurityRestrictionsUseMain": false,
"http20Enabled": false,
"minTlsVersion": "1.2",
"ftpsState": "AllAllowed",
"reservedInstanceCount": 0,
"preWarmedInstanceCount": null,
"healthCheckPath": null,
"fileChangeAuditEnabled": false,
"functionsRuntimeScaleMonitoringEnabled": false,
"websiteTimeZone": null
}
}

DEBUG: [Common.Authentication]: Authenticating using Account: 'MSI@50342', environment: 'AzureCloud', tenant: '12f162f2-0000-0000-0000-000000000000'
DEBUG: [HttpClientOperations]: Adding Header 'Metadata'

SiteName Location State OutboundIpAddresses EnabledHostInfo WebSpace
-------- -------- ----- ------------------- --------------- --------
containertest39864096 West
Europe
DEBUG: AzureQoSEvent: CommandName - Set-AzResource; IsSuccess - True; Duration - 00:00:04.5552322; Exception - ;
DEBUG: Finish sending metric.
DEBUG: 9:11:37 PM - SetAzureResourceCmdlet end processing.
DEBUG: 9:11:37 PM - SetAzureResourceCmdlet end processing.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.