I'm following the official docs on publishing an Azure Cloud Services (extended support) instance from Visual Studio. However, publishing fails, with the following output:
22:25:06 - Uploading 'E:\Projects\MyCloudService\bin\Release\app.publish\MyCloudService.cspkg' as 'MyCloudService-3b0df582.cspkg' to storage account...
22:25:44 - Uploading 'E:\Projects\MyCloudService\bin\Release\app.publish\ServiceConfiguration.Cloud.cscfg' as 'ServiceConfiguration.Cloud-3b0df582.cscfg' to storage account...
22:25:44 - Checking if all the certificates exist in key vault 'https://mykeyvault.vault.azure.net/'...
22:25:46 - Preparing deployment for MyCloudService_2023-07-16T222446 with Subscription ID '...' using Resource Management URL 'https://management.azure.com/'...
22:25:46 - Starting...
22:26:12 - Deployment Status: Failed.
22:26:12 - The deployment through Azure Resource Management failed.
Code: DeploymentFailed
Message: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.
Detail: Unable to process template language expressions for resource '<resource ID>' at line '1' and column '8784'. 'The language expression property 'slotType' doesn't exist, available properties are 'loadBalancerConfigurations, swappableCloudService'.'
The publish profile does contain <AzureSlot>Production</AzureSlot> though, what VS added during this publish attempt (it wasn't there previously), but removing it or changing to <AzureSlot>Staging</AzureSlot> doesn't help.
This looks like an issue with an ARM template. There's a deployment template generated under bin\Release folder of the project, and a parameter file, and these indeed have references to slotType. Trying to fix this from generated files that are overwritten before the next publish anyway seems futile though.
The same happens if I create a new publish profile.
This used to work without issues in the first days of April (I know I published once successfully then). Now if I try to publish that old code, I get the same error. So I suspect a VS update broke it.
Anybody with some hints?
Also posted this to the Microsoft Developer Community in case it's a VS bug.
This is a VS bug, see this thread in the Microsoft Developer Community. According to Devin Breshears from Microsoft: