Azure/azure-sdk-tools — pull request #3051 by yitao-zhang (2014-11-05 18:46:57+00:00)
Title: [ADF] Promoted ProvisioningState as top level property for display

We want customers can easily see the ProvisioningState of the resources/nested resources they create.

We will also throw in PowerShell if the provisioningState is not Succeeded for all New-* cmdlets. This will prevent customer creating a downstream resource consuming it which will raise runtime error and is hard to troubleshoot. If an upstream resource like LinkedService failed to be provisioned, we want customer to stop and troubleshoot from there immediately, not to wait until a pipeline is scheduled to run a couple of hours later and then raise a runtime error.

We are not changing RP contract and 200/201 async pattern implementation as any Polling request should still get 200 OK response with detailed error message consistently with CSM requirement.

I've only added Unit test coverage but it should be good enough for this.