Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2043,6 +2043,10 @@
"$ref": "#/definitions/AppResourceProperties",
"description": "Properties of the App resource",
"x-ms-client-flatten": false
},
"location": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location [](start = 9, length = 8)

Please mark as read-only if it's inherited from parent resource.

Copy link
Author

@xgugeng xgugeng Mar 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

location is needed in user request (PUT/PATCH). I just found making it read-only removes this property from http request in the SDK generated. It might not be a read-only case in this scenario?

Copy link
Author

@xgugeng xgugeng Apr 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If user puts a location different from parent resource deliberately, a 404 error will be returned due to the uniqueness of parent resource cross all regions

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your create and update examples don't have location in request body. If it's required then it should be marked required in the swagger and in those examples.

The experience around this is kind of weird. We know what the only valid location is and we're going to make the user put it in the request anyway, but if they get it wrong we will reject the request. Why do we make them specify the location at all?


In reply to: 401348345 [](ancestors = 401348345)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the create and update examples. Actually the location is required only when enabling/disabling MSI via PUT/PATCH, so ARM can figure out which regional MSI RP it should call. Otherwise, it's optional.

"description": "The GEO location of the application, always the same with its parent resource",
"type": "string"
}
}
},
Expand Down Expand Up @@ -2322,6 +2326,10 @@
"type": "string",
"readOnly": true
},
"deploymentSettings": {
"$ref": "#/definitions/DeploymentSettings",
"description": "Deployment settings of the Deployment"
},
"provisioningState": {
"description": "Provisioning state of the Deployment",
"enum": [
Expand All @@ -2337,10 +2345,6 @@
"modelAsString": true
}
},
"deploymentSettings": {
"$ref": "#/definitions/DeploymentSettings",
"description": "Deployment settings of the Deployment"
},
"status": {
"description": "Status of the Deployment",
"enum": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"sizeInGB": 2,
"mountPath": "mypersistentdisk"
}
}
},
"location": "eastus"
},
"api-version": "2019-05-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
Expand All @@ -39,6 +40,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand All @@ -61,6 +63,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"sizeInGB": 2,
"mountPath": "mypersistentdisk"
}
}
},
"location": "eastus"
},
"api-version": "2019-05-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
Expand All @@ -39,6 +40,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand All @@ -61,6 +63,7 @@
}
},
"type": "Microsoft.AppPlatform/Spring/apps",
"location": "eastus",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp",
"name": "myapp"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Updating",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -50,6 +49,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Updating",
"status": "Compiling",
"active": false,
"instances": [
Expand All @@ -75,7 +75,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Succeeded",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -86,6 +85,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Succeeded",
"status": "Running",
"active": false,
"instances": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Succeeded",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -29,6 +28,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Succeeded",
"status": "Running",
"active": false,
"instances": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Succeeded",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -30,6 +29,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Succeeded",
"status": "Running",
"active": false,
"instances": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Succeeded",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -30,6 +29,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Succeeded",
"status": "Running",
"active": false,
"instances": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Succeeded",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -40,6 +39,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Succeeded",
"status": "Running",
"active": false,
"instances": [
Expand All @@ -65,7 +65,6 @@
"artifactSelector": "sub-module-1"
},
"appName": "myapp",
"provisioningState": "Updating",
"deploymentSettings": {
"cpu": 1,
"memoryInGB": 3,
Expand All @@ -76,6 +75,7 @@
},
"runtimeVersion": "Java_8"
},
"provisioningState": "Updating",
"status": "Running",
"active": false,
"instances": [
Expand Down