|  | 
|  | 1 | +{ | 
|  | 2 | +  "parameters": { | 
|  | 3 | +    "subscriptionId": "00000000-0000-0000-0000-000000000000", | 
|  | 4 | +    "resourceGroupName": "resRg", | 
|  | 5 | +    "clusterName": "myCluster", | 
|  | 6 | +    "applicationName": "myApp", | 
|  | 7 | +    "api-version": "2022-01-01", | 
|  | 8 | +    "parameters": { | 
|  | 9 | +      "location": "eastus", | 
|  | 10 | +      "tags": { | 
|  | 11 | +        "a": "b" | 
|  | 12 | +      }, | 
|  | 13 | +      "properties": { | 
|  | 14 | +        "version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedclusters/myCluster/applicationTypes/myAppType/versions/1.0", | 
|  | 15 | +        "parameters": { | 
|  | 16 | +          "param1": "value1" | 
|  | 17 | +        }, | 
|  | 18 | +        "upgradePolicy": { | 
|  | 19 | +          "applicationHealthPolicy": { | 
|  | 20 | +            "considerWarningAsError": true, | 
|  | 21 | +            "maxPercentUnhealthyDeployedApplications": 0, | 
|  | 22 | +            "defaultServiceTypeHealthPolicy": { | 
|  | 23 | +              "maxPercentUnhealthyServices": 0, | 
|  | 24 | +              "maxPercentUnhealthyPartitionsPerService": 0, | 
|  | 25 | +              "maxPercentUnhealthyReplicasPerPartition": 0 | 
|  | 26 | +            }, | 
|  | 27 | +            "serviceTypeHealthPolicyMap": { | 
|  | 28 | +              "myService": { | 
|  | 29 | +                "maxPercentUnhealthyReplicasPerPartition": 30, | 
|  | 30 | +                "maxPercentUnhealthyPartitionsPerService": 30, | 
|  | 31 | +                "maxPercentUnhealthyServices": 30 | 
|  | 32 | +              } | 
|  | 33 | +            } | 
|  | 34 | +          }, | 
|  | 35 | +          "rollingUpgradeMonitoringPolicy": { | 
|  | 36 | +            "failureAction": "Rollback", | 
|  | 37 | +            "healthCheckRetryTimeout": "00:10:00", | 
|  | 38 | +            "healthCheckWaitDuration": "00:02:00", | 
|  | 39 | +            "healthCheckStableDuration": "00:05:00", | 
|  | 40 | +            "upgradeDomainTimeout": "00:15:00", | 
|  | 41 | +            "upgradeTimeout": "01:00:00" | 
|  | 42 | +          }, | 
|  | 43 | +          "upgradeReplicaSetCheckTimeout": 3600, | 
|  | 44 | +          "forceRestart": false, | 
|  | 45 | +          "instanceCloseDelayDuration": 600, | 
|  | 46 | +          "upgradeMode": "UnmonitoredAuto", | 
|  | 47 | +          "recreateApplication": false | 
|  | 48 | +        } | 
|  | 49 | +      } | 
|  | 50 | +    } | 
|  | 51 | +  }, | 
|  | 52 | +  "responses": { | 
|  | 53 | +    "200": { | 
|  | 54 | +      "headers": {}, | 
|  | 55 | +      "body": { | 
|  | 56 | +        "type": "Microsoft.ServiceFabric/managedClusters/applications", | 
|  | 57 | +        "location": "eastus", | 
|  | 58 | +        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedclusters/myCluster/applications/myApp", | 
|  | 59 | +        "name": "myApp", | 
|  | 60 | +        "tags": { | 
|  | 61 | +          "a": "b" | 
|  | 62 | +        }, | 
|  | 63 | +        "properties": { | 
|  | 64 | +          "provisioningState": "Creating", | 
|  | 65 | +          "version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedclusters/myCluster/applicationTypes/myAppType/versions/1.0", | 
|  | 66 | +          "parameters": { | 
|  | 67 | +            "param1": "value1" | 
|  | 68 | +          }, | 
|  | 69 | +          "upgradePolicy": { | 
|  | 70 | +            "applicationHealthPolicy": { | 
|  | 71 | +              "considerWarningAsError": true, | 
|  | 72 | +              "maxPercentUnhealthyDeployedApplications": 0, | 
|  | 73 | +              "defaultServiceTypeHealthPolicy": { | 
|  | 74 | +                "maxPercentUnhealthyServices": 0, | 
|  | 75 | +                "maxPercentUnhealthyPartitionsPerService": 0, | 
|  | 76 | +                "maxPercentUnhealthyReplicasPerPartition": 0 | 
|  | 77 | +              }, | 
|  | 78 | +              "serviceTypeHealthPolicyMap": { | 
|  | 79 | +                "service1": { | 
|  | 80 | +                  "maxPercentUnhealthyReplicasPerPartition": 30, | 
|  | 81 | +                  "maxPercentUnhealthyPartitionsPerService": 30, | 
|  | 82 | +                  "maxPercentUnhealthyServices": 30 | 
|  | 83 | +                } | 
|  | 84 | +              } | 
|  | 85 | +            }, | 
|  | 86 | +            "rollingUpgradeMonitoringPolicy": { | 
|  | 87 | +              "failureAction": "Rollback", | 
|  | 88 | +              "healthCheckRetryTimeout": "00:10:00", | 
|  | 89 | +              "healthCheckWaitDuration": "00:02:00", | 
|  | 90 | +              "healthCheckStableDuration": "00:05:00", | 
|  | 91 | +              "upgradeDomainTimeout": "00:15:00", | 
|  | 92 | +              "upgradeTimeout": "01:00:00" | 
|  | 93 | +            }, | 
|  | 94 | +            "upgradeReplicaSetCheckTimeout": 3600, | 
|  | 95 | +            "forceRestart": false, | 
|  | 96 | +            "instanceCloseDelayDuration": 600, | 
|  | 97 | +            "upgradeMode": "UnmonitoredAuto", | 
|  | 98 | +            "recreateApplication": false | 
|  | 99 | +          } | 
|  | 100 | +        } | 
|  | 101 | +      } | 
|  | 102 | +    }, | 
|  | 103 | +    "202": { | 
|  | 104 | +      "headers": { | 
|  | 105 | +        "Retry-After": "10", | 
|  | 106 | +        "Location": "http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/9c2ce367-47ea-43de-b69e-c5a423da4557?api-version=2022-01-01" | 
|  | 107 | +      }, | 
|  | 108 | +      "body": { | 
|  | 109 | +        "type": "Microsoft.ServiceFabric/managedClusters/applications", | 
|  | 110 | +        "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedclusters/myCluster/applications/myApp", | 
|  | 111 | +        "name": "myApp", | 
|  | 112 | +        "tags": { | 
|  | 113 | +          "a": "b" | 
|  | 114 | +        }, | 
|  | 115 | +        "properties": { | 
|  | 116 | +          "provisioningState": "Updating", | 
|  | 117 | +          "version": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/managedclusters/myCluster/applicationTypes/myAppType/versions/1.0", | 
|  | 118 | +          "parameters": { | 
|  | 119 | +            "param1": "value1" | 
|  | 120 | +          }, | 
|  | 121 | +          "upgradePolicy": { | 
|  | 122 | +            "applicationHealthPolicy": { | 
|  | 123 | +              "considerWarningAsError": true, | 
|  | 124 | +              "maxPercentUnhealthyDeployedApplications": 0, | 
|  | 125 | +              "defaultServiceTypeHealthPolicy": { | 
|  | 126 | +                "maxPercentUnhealthyServices": 0, | 
|  | 127 | +                "maxPercentUnhealthyPartitionsPerService": 0, | 
|  | 128 | +                "maxPercentUnhealthyReplicasPerPartition": 0 | 
|  | 129 | +              }, | 
|  | 130 | +              "serviceTypeHealthPolicyMap": { | 
|  | 131 | +                "service1": { | 
|  | 132 | +                  "maxPercentUnhealthyReplicasPerPartition": 30, | 
|  | 133 | +                  "maxPercentUnhealthyPartitionsPerService": 30, | 
|  | 134 | +                  "maxPercentUnhealthyServices": 30 | 
|  | 135 | +                } | 
|  | 136 | +              } | 
|  | 137 | +            }, | 
|  | 138 | +            "rollingUpgradeMonitoringPolicy": { | 
|  | 139 | +              "failureAction": "Rollback", | 
|  | 140 | +              "healthCheckRetryTimeout": "00:10:00", | 
|  | 141 | +              "healthCheckWaitDuration": "00:02:00", | 
|  | 142 | +              "healthCheckStableDuration": "00:05:00", | 
|  | 143 | +              "upgradeDomainTimeout": "00:15:00", | 
|  | 144 | +              "upgradeTimeout": "01:00:00" | 
|  | 145 | +            }, | 
|  | 146 | +            "upgradeReplicaSetCheckTimeout": 3600, | 
|  | 147 | +            "forceRestart": false, | 
|  | 148 | +            "instanceCloseDelayDuration": 600, | 
|  | 149 | +            "upgradeMode": "UnmonitoredAuto", | 
|  | 150 | +            "recreateApplication": false | 
|  | 151 | +          } | 
|  | 152 | +        } | 
|  | 153 | +      } | 
|  | 154 | +    } | 
|  | 155 | +  } | 
|  | 156 | +} | 
0 commit comments