Web Apps - Deploy Workflow Artifacts
为网站或部署槽创建项目的说明。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployWorkflowArtifacts?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
网站名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
api-version
|
query | True |
string |
API 版本 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| appSettings |
工作流的应用程序设置。 |
|
| files |
object |
应用程序的文件。 |
| filesToDelete |
string[] |
要删除的应用程序的文件。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
已部署的项目。 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
示例
| Delete workflow artifacts |
| Deploys workflow artifacts |
Delete workflow artifacts
示例请求
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/deployWorkflowArtifacts?api-version=2025-03-01
{
"filesToDelete": [
"test/workflow.json",
"test/"
]
}
示例响应
Deploys workflow artifacts
示例请求
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/sites/testsite2/deployWorkflowArtifacts?api-version=2025-03-01
{
"files": {
"test1/workflow.json": {
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {},
"contentVersion": "1.0.0.0",
"outputs": {},
"triggers": {
"When_events_are_available_in_Event_hub": {
"inputs": {
"parameters": {
"eventHubName": "test123"
},
"serviceProviderConfiguration": {
"connectionName": "eventHub",
"operationId": "receiveEvents",
"serviceProviderId": "/serviceProviders/eventHub"
}
},
"splitOn": "@triggerOutputs()?['body']",
"type": "ServiceProvider"
}
}
},
"kind": "Stateful"
},
"connections.json": {
"serviceProviderConnections": {
"eventHub": {
"parameterValues": {
"connectionString": "@appsetting('eventHub_connectionString')"
},
"serviceProvider": {
"id": "/serviceProviders/eventHub"
},
"displayName": "example1"
}
},
"managedApiConnections": {}
}
},
"appSettings": {
"eventHub_connectionString": "Endpoint=sb://example.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=EXAMPLE1a2b3c4d5e6fEXAMPLE="
}
}
示例响应
定义
| 名称 | 说明 |
|---|---|
|
Default |
应用服务错误响应。 |
| Details | |
| Error |
错误模型。 |
| Object | |
|
Workflow |
工作流筛选器。 |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
Details
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Error
错误模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| details |
Details[] |
详细错误。 |
| innererror |
string |
调试错误的更多信息。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Object
WorkflowArtifacts
工作流筛选器。
| 名称 | 类型 | 说明 |
|---|---|---|
| appSettings |
工作流的应用程序设置。 |
|
| files |
object |
应用程序的文件。 |
| filesToDelete |
string[] |
要删除的应用程序的文件。 |