Service Fabric Create Application Type Version

Creates or updates a Service Fabric application type version resource.

Create or update a Service Fabric application type version resource with the specified name.

Request

Method Request URI
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/clusters/{clusterName}/applicationTypes/{applicationTypeName}/versions/{version}?api-version=2017-07-01-preview

Parameters

Name Type Required Location
subscriptionId string Yes Path
resourceGroupName string Yes Path
clusterName string Yes Path
applicationTypeName string Yes Path
version string Yes Path
api-version string Yes Query
parameters ApplicationTypeVersionResource Yes Body

subscriptionId

Type: string
Required: Yes

The customer subscription identifier.


resourceGroupName

Type: string
Required: Yes

The name of the resource group.


clusterName

Type: string
Required: Yes

The name of the cluster resource.


applicationTypeName

Type: string
Required: Yes

The name of the application type name resource.


version

Type: string
Required: Yes

The application type version.


api-version

Type: string
Required: Yes
Default: 2017-07-01-preview

The version of the Service Fabric resource provider API. This is a required parameter and it's value must be "2017-07-01-preview" for this specification.


parameters

Type: ApplicationTypeVersionResource
Required: Yes

The application type version resource.

Responses

HTTP Status Code Description Response Schema
202 (Accepted) The request was accepted and the operation will complete asynchronously.
ApplicationTypeVersionResource
All other status codes The detailed error response.
ErrorModel

Examples

Put an application type version

Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0?api-version=2017-07-01-preview
Body
{
  "type": "versions",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0",
  "name": "myCluster",
  "tags": {},
  "properties": {
    "appPackageUrl": "http://fakelink.test.com/MyAppType"
  }
}

202 Response

Headers
Retry-After: 10
Location: http://10.91.140.224/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceFabric/locations/eastus/operationResults/e2413c7e-d51b-40ac-8155-bc85bf8ae856?api-version=2017-07-01-preview
Body
{
  "type": "versions",
  "location": "eastus",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.ServiceFabric/clusters/myCluster/applicationTypes/myAppType/versions/1.0",
  "name": "myCluster",
  "tags": {},
  "etag": "W/\"636462502176040417\"",
  "properties": {
    "provisioningState": "Updating",
    "appPackageUrl": "http://fakelink.test.com/MyAppType",
    "defaultParameterList": {}
  }
}