I have configured a CI build for a Service Fabric application, in Visual Studio Team Services, according to this documentation: https://azure.microsoft.com/en-us/documentati
Try to use "PowerShell" task instead of "Azure PowerShell" task.