{
  "Id": "ActionTemplates-65",
  "Name": "IIS Website AppFabric Application - Start",
  "Description": "Starts an AppFabric application in IIS.",
  "ActionType": "Octopus.Script",
  "Version": 11,
  "Properties": {
    "Octopus.Action.Script.ScriptBody": "Import-Module WebAdministration\n\n$webSiteName = $OctopusParameters['WebSiteName']\n$applicationName = $OctopusParameters['ApplicationName']\n\nif (!$webSiteName)\n{\n    Write-Error \"No Website name was specified. Please specify the name of the Website that contains the AppFabric application.\"\n    exit -2\n}\n\nif (!$applicationName)\n{\n    Write-Error \"No Application name was specified. Please specify the name of the AppFabric Application contained in the Website.\"\n    exit -2\n}\n\nWrite-Output \"Starting IIS AppFabric application $applicationName in website $webSiteName\"\nStart-AsApplication $webSiteName $applicationName\n"
  },
  "SensitiveProperties": {},
  "Parameters": [
    {
      "Name": "WebsiteName",
      "Label": "Website name",
      "HelpText": "The name of the site in IIS",
      "DefaultValue": null,
      "DisplaySettings": {
        "Octopus.ControlType": "SingleLineText"
      }
    },
    {
      "Name": "ApplicationName",
      "Label": "Application Name",
      "HelpText": "The name of the AppFabric application inside the Website in IIS",
      "DefaultValue": null,
      "DisplaySettings": {
        "Octopus.ControlType": "SingleLineText"
      }
    }
  ],
  "LastModifiedOn": "2014-09-20T21:03:29.922+00:00",
  "LastModifiedBy": "caioproiete",
  "$Meta": {
    "ExportedAt": "2014-09-20T21:16:03.171Z",
    "OctopusVersion": "2.5.8.447",
    "Type": "ActionTemplate"
  }
}
Add new step template `IIS Website AppFabric Application - Start`
Add new step template `IIS Website AppFabric Application - Start`
