The Azure App Service actions let you manage your web apps directly from your workflows.
Restart an App Service
This action restarts an Azure App Service using the Web Apps - Restart - REST API.
Input field | Optionality | Type | Description |
|---|---|---|---|
| Required | String | An Azure Service Principal |
| Required | String | An Azure Service Principal |
| Required | String | The Azure tenant identifier. Can be passed as a secret. |
| Required | String | The Azure subscription identifier. For example, |
| Required | String | The name of the resource group that contains the app service. For example, |
| Required | String | The name of the app. For example, |
| Optional | Boolean | If |
| Optional | Boolean | If |
| Optional | List | A list of selectors used to extract specific values from the response. For example, |
Output field | Type | Description |
|---|---|---|
| Boolean | Indicates whether the action succeeded. Returns |
| String | Contains the failure reason as a message. |
| Object | The Azure API body response. For more information, see the Web Apps. |
| String | Optional for long running operation. The URL to poll for status. |
| String | Optional for long running operation. The URL that returns the final result once the operation completes. |
| Integer | Optional for long running operation. The number of seconds to wait before polling the async URL. |
| String | Optional. Used for concurrency control when updating a resource to avoid overwriting someone else's changes. |
name: restartAzureWebServicedescription: 'This workflow restarts an Azure App Service'steps: - name: azure_appService_restart_1 type: action action: azure.appService.restart version: 1 inputs: clientId: ${{ :secrets:azure-client-id }} clientSecret: ${{ :secrets:azure-client-secret }} tenantId: ${{ :secrets:azure-client-tenant }} subscriptionId: "12345678-1234-1234-1234-123456789abc" resourceGroupName: "my-resource-group" appServiceName: "my-web-app" softRestart: true synchronous: true next: end