Open mwasplund opened 3 years ago
Looking through the SF event logs everything looks normal and I get a final ApplicationUpgradeCompleted event.
Here is the details of the error coming in through Azure Resource Manager:
{
"content": {
"id": "/subscriptions/REMOVED/providers/Microsoft.ServiceFabric/locations/westus2/operations/REMOVED",
"name": "REMOVED",
"status": "Failed",
"startTime": "2021-01-27T19:11:20.9061225Z",
"endTime": "2021-01-27T19:23:39.4327597Z",
"percentComplete": 0,
"error": {
"code": "ClusterChildResourceOperationFailed",
"message": "Resource operation failed. Operation: CreateOrUpdate. Error details: {\r\n \"Details\": {\r\n \"ClassName\": \"System.ArgumentException\",\r\n \"Message\": \"Invalid flags: 0\",\r\n \"Data\": null,\r\n \"InnerException\": {\r\n \"ClassName\": \"System.ArgumentException\",\r\n \"Message\": \"Value does not fall within the expected range.\",\r\n \"Data\": null,\r\n \"InnerException\": null,\r\n \"HelpURL\": null,\r\n \"StackTraceString\": \" at System.Fabric.Interop.NativeClient.IFabricApplicationManagementClient10.EndUpdateApplicationUpgrade(IFabricAsyncOperationContext context)\r\n at System.Fabric.Interop.Utility.<>c__DisplayClass22_0.
Template: { "apiVersion": "2020-03-01", "type": "Microsoft.ServiceFabric/clusters/applications", "name": "[concat(variables('clusterName'), '/', parameters('applicationName'))]", "location": "[parameters('computeLocation')]", "dependsOn": [ "[concat('Microsoft.ServiceFabric/clusters/', variables('clusterName'), '/applicationTypes/', parameters('applicationTypeName'), '/versions/', variables('applicationTypeVersion'))]" ], "properties": { "typeName": "[parameters('applicationTypeName')]", "typeVersion": "[variables('applicationTypeVersion')]", "parameters": "[parameters('applicationParameters')]" } }
FYI the issue here was that the upgradePolicy property was not set (even though it says it is optional). When I updated my ARM template to set the default upgradePolicy object values it now works... Can we update the docs to indicate that this property is required.
Service Fabric Runtime Version: 7.2.432.9590
Environment: Azure
Description: When I use the ARM Template for creating an Application (https://docs.microsoft.com/en-us/azure/templates/microsoft.servicefabric/clusters/applications) the first deploy works as expected. However when I deploy an updated version of my code using the same flow the service fabric application is upgraded, but the Azure Deployment thinks the step failed with a 'Conflict'
Expected: I would expect the Deployment to return success
OS Windows
Assignees: /cc @microsoft/service-fabric-triage