---
title: "Provisions or registers a Service Fabric application type with the cluster using the '.sfpkg' package in the external store or using the application package in the image store."
method: POST
path: "/ApplicationTypes/$/Provision"
tags: ["ApplicationType"]
---

# Provisions or registers a Service Fabric application type with the cluster using the '.sfpkg' package in the external store or using the application package in the image store.

`POST /ApplicationTypes/$/Provision`

Provisions a Service Fabric application type with the cluster. The provision is required before any new applications can be instantiated.
The provision operation can be performed either on the application package specified by the relativePathInImageStore, or by using the URI of the external '.sfpkg'.

## Query parameters

- `api-version` '6.2', required
- `timeout` integer

## Request body

- ProvisionApplicationTypeDescriptionBase — Represents the type of registration or provision requested, and if the operation needs to be asynchronous or not. Supported types of provision operations are from either image store or external store.
  - `Kind` 'Invalid' | 'ImageStorePath' | 'ExternalStore', required — The kind of application type registration or provision requested. The application package can be registered or provisioned either from the image store or from an external store. Following are the kinds of the application type provision.
  - `Async` boolean, required — Indicates whether or not provisioning should occur asynchronously. When set to true, the provision operation returns when the request is accepted by the system, and the provision operation continues without any timeout limit. The default value is false. For large application packages, we recommend setting the value to true.

## Response `200`

A successful provision will return 200 status code.

## Other responses

- `202` — A 202 status code indicates the operation was accepted and the provision operation has been initiated.
- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
