diff --git a/AzurePowershell.Test.targets b/AzurePowershell.Test.targets
index f31479edbba2..efe88235c84e 100644
--- a/AzurePowershell.Test.targets
+++ b/AzurePowershell.Test.targets
@@ -14,6 +14,7 @@
.\src\ServiceManagement\Services\Commands.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Test.dll
.\src\ResourceManager\Resources\Commands.Resources.Test\bin\Debug\Microsoft.Azure.Commands.Resources.Test.dll
.\src\ResourceManager\DataFactories\Commands.DataFactories.Test\bin\Debug\Microsoft.Azure.Commands.DataFactories.Test.dll
+ .\src\ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\bin\Debug\Microsoft.Azure.Commands.StreamAnalytics.Test.dll
.\src\ResourceManager\Batch\Commands.Batch.Test\bin\Debug\Microsoft.Azure.Commands.Batch.Test.dll
.\src\ServiceManagement\Compute\Commands.ServiceManagement.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Test.dll
.\src\ServiceManagement\Compute\Commands.ServiceManagement.Extensions.Test\bin\Debug\Microsoft.WindowsAzure.Commands.ServiceManagement.Extensions.Test.dll
@@ -69,6 +70,11 @@
ExcludeTraits="$(XUnitExcludedTrait)" MaxParallelThreads="0" ParallelizeAssemblies="false" ParallelizeTestCollections="false" />
+
+
+
+
-
+
diff --git a/setup/azurecmdfiles.wxi b/setup/azurecmdfiles.wxi
index a32a2abc0bf9..e69f18ac6a9b 100644
--- a/setup/azurecmdfiles.wxi
+++ b/setup/azurecmdfiles.wxi
@@ -398,6 +398,83 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1114,9 +1191,15 @@
+
+
+
+
+
+
@@ -2108,6 +2191,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -2341,7 +2449,9 @@
+
+
diff --git a/src/AzurePowershell.sln b/src/AzurePowershell.sln
index d06e75409380..d69164d019de 100644
--- a/src/AzurePowershell.sln
+++ b/src/AzurePowershell.sln
@@ -147,6 +147,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RecoveryServices",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RecoveryServices.Test", "ServiceManagement\RecoveryServices\Commands.RecoveryServices.Test\Commands.RecoveryServices.Test.csproj", "{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics", "ResourceManager\StreamAnalytics\Commands.StreamAnalytics\Commands.StreamAnalytics.csproj", "{F49A314A-A235-47D3-A654-1EC19ACA366C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics.Test", "ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\Commands.StreamAnalytics.Test.csproj", "{7E6683BE-ECFF-4709-89EB-1325E9E70512}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -349,6 +353,14 @@ Global
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -378,5 +390,6 @@ Global
{F4ABAD68-64A5-4B23-B09C-42559A7524DE} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{FDB897BD-FCB4-44A1-8D66-AC99F22EC737} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{A415F75B-EB6A-49A6-934E-5BA71B83D6EB} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
EndGlobalSection
EndGlobal
diff --git a/src/ResourceManager.sln b/src/ResourceManager.sln
index 2d9218889c15..aca639123545 100644
--- a/src/ResourceManager.sln
+++ b/src/ResourceManager.sln
@@ -37,6 +37,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache", "Reso
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.RedisCache.Test", "ResourceManager\RedisCache\Commands.RedisCache.Test\Commands.RedisCache.Test.csproj", "{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics", "ResourceManager\StreamAnalytics\Commands.StreamAnalytics\Commands.StreamAnalytics.csproj", "{F49A314A-A235-47D3-A654-1EC19ACA366C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.StreamAnalytics.Test", "ResourceManager\StreamAnalytics\Commands.StreamAnalytics.Test\Commands.StreamAnalytics.Test.csproj", "{7E6683BE-ECFF-4709-89EB-1325E9E70512}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -95,6 +99,14 @@ Global
{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4AE5705F-62CF-461D-B72E-DD9DCD9B3609}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -105,5 +117,6 @@ Global
{C1BDA476-A5CC-4394-914D-48B0EC31A710} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{D4EDAD6F-6A1D-4295-9A88-CD3F69EAD42B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
{4AE5705F-62CF-461D-B72E-DD9DCD9B3609} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
EndGlobalSection
EndGlobal
diff --git a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1 b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1
index 76601dfd3418..b20cbdd8a995 100644
--- a/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1
+++ b/src/ResourceManager/Resources/Commands.Resources/AzureResourceManager.psd1
@@ -63,7 +63,8 @@ FormatsToProcess = @(
'.\Resources\Microsoft.WindowsAzure.Commands.Profile.format.ps1xml',
'.\DataFactories\Microsoft.Azure.Commands.DataFactories.format.ps1xml',
'.\RedisCache\Microsoft.Azure.Commands.RedisCache.format.ps1xml',
- '.\Batch\Microsoft.Azure.Commands.Batch.format.ps1xml'
+ '.\Batch\Microsoft.Azure.Commands.Batch.format.ps1xml',
+ '.\StreamAnalytics\Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml'
)
# Modules to import as nested modules of the module specified in ModuleToProcess
@@ -74,7 +75,8 @@ NestedModules = @(
'.\Sql\Microsoft.Azure.Commands.Sql.dll',
'.\DataFactories\Microsoft.Azure.Commands.DataFactories.dll',
'.\RedisCache\Microsoft.Azure.Commands.RedisCache.dll',
- '.\Batch\Microsoft.Azure.Commands.Batch.dll'
+ '.\Batch\Microsoft.Azure.Commands.Batch.dll',
+ '.\StreamAnalytics\Microsoft.Azure.Commands.StreamAnalytics.dll'
)
# Functions to export from this module
diff --git a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
index eebaf66df062..836fc4356341 100644
--- a/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
+++ b/src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj
@@ -234,6 +234,10 @@
{2493a8f7-1949-4f29-8d53-9d459046c3b8}
Commands.Tags
+
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}
+ Commands.StreamAnalytics
+
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj
new file mode 100644
index 000000000000..8040e1151acc
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Commands.StreamAnalytics.Test.csproj
@@ -0,0 +1,213 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {7E6683BE-ECFF-4709-89EB-1325E9E70512}
+ {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ Library
+ Properties
+ Microsoft.Azure.Commands.StreamAnalytics.Test
+ Microsoft.Azure.Commands.StreamAnalytics.Test
+ v4.5
+ 512
+ ..\..\..\
+ true
+ 7f789c0b
+
+
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ true
+ MSSharedLibKey.snk
+ true
+ true
+ false
+ bin\Release\
+ TRACE;SIGN
+ true
+ pdbonly
+ AnyCPU
+ prompt
+ false
+
+
+
+ ..\..\..\packages\Microsoft.Azure.Gallery.2.2.0-preview\lib\net40\Microsoft.Azure.Gallery.dll
+ True
+
+
+ ..\..\..\packages\Microsoft.Azure.Management.Authorization.0.11.0-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll
+
+
+ ..\..\..\packages\Microsoft.Azure.Management.StreamAnalytics.0.12.1-preview\lib\net40\Microsoft.Azure.Management.StreamAnalytics.dll
+
+
+ ..\..\..\packages\Microsoft.Azure.Monitoring.2.2.0-preview\lib\net40\Microsoft.Azure.Monitoring.dll
+ True
+
+
+ ..\..\..\packages\Microsoft.Azure.Management.Resources.2.7.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll
+ True
+
+
+ False
+ ..\..\..\packages\Hydra.HttpRecorder.1.0.5417.13285-prerelease\lib\net45\Microsoft.Azure.Utilities.HttpRecorder.dll
+
+
+ ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.11.10918.1222\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.11.10918.1222\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.dll
+
+
+ ..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll
+ True
+
+
+ False
+ ..\..\..\packages\Microsoft.WindowsAzure.Management.Storage.3.1.0\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll
+
+
+ False
+ ..\..\..\packages\WindowsAzure.Storage.4.0.0\lib\net40\Microsoft.WindowsAzure.Storage.dll
+
+
+ False
+ ..\..\..\packages\Hydra.SpecTestSupport.1.0.5417.13285-prerelease\lib\net45\Microsoft.WindowsAzure.Testing.dll
+
+
+ False
+ ..\..\..\packages\Moq.4.2.1402.2112\lib\net40\Moq.dll
+
+
+ ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
+ True
+
+
+
+
+
+
+
+ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Extensions.dll
+
+
+ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Primitives.dll
+
+
+
+
+
+
+
+
+ False
+ ..\..\..\packages\xunit.1.9.2\lib\net20\xunit.dll
+
+
+ ..\..\..\packages\xunit.extensions.1.9.2\lib\net20\xunit.extensions.dll
+
+
+
+
+ {c1bda476-a5cc-4394-914d-48b0ec31a710}
+ Commands.ScenarioTests.Common
+
+
+ {65c3a86a-716d-4e7d-ab67-1db00b3bf72d}
+ Commands.Common.Storage
+
+
+ {3b48a77b-5956-4a62-9081-92ba04b02b27}
+ Commands.Common.Test
+
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+
+
+ {bc420543-c04e-4bf3-96e1-cd81b823bdd7}
+ Commands.Test.Utilities
+
+
+ {9577252e-0a6b-4d61-86e8-95f7f309a987}
+ Commands.StreamAnalytics
+
+
+
+
+
+
+
+
+
+
+ Designer
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+ PreserveNewest
+
+
+
+
+
+
+
+
+ xcopy "$(SolutionDir)Package\$(ConfigurationName)\*.*" $(TargetDir) /Y /E
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/MSSharedLibKey.snk b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/MSSharedLibKey.snk
new file mode 100644
index 000000000000..695f1b38774e
Binary files /dev/null and b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/MSSharedLibKey.snk differ
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..6ad2d553c38d
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Microsoft.Azure.Commands.StreamAnalytics.Test")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("Microsoft.Azure.Commands.StreamAnalytics.Test")]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("2b11c8f1-4b25-4809-b496-ea94e96d5c78")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)]
+[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)]
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Input.json b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Input.json
new file mode 100644
index 000000000000..db5ff0ba72ba
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Input.json
@@ -0,0 +1,31 @@
+{
+ "name": "Input",
+ "properties": {
+ "type": "stream",
+ "serialization": {
+ "type": "CSV",
+ "properties": {
+ "fieldDelimiter": ",",
+ "encoding": "UTF8"
+ }
+ },
+ "datasource": {
+ "type": "Microsoft.Storage/Blob",
+ "properties": {
+ "storageAccounts" : [
+ {
+ "accountName": "azurenrtdogfood",
+ "accountKey": "$EncryptedStringForTesting"
+ }
+ ],
+ "container": "samples",
+ "blobName": "sample-blob",
+ "PathPattern": "LongRunning/{date}/{time}",
+ "DateFormat": "yyyy-MM-dd",
+ "TimeFormat": "HH:mm",
+ "SourcePartitionCount": null,
+ "blobSerializationBoundary": "BlobBoundary"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Job.json b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Job.json
new file mode 100644
index 000000000000..8045b6bbc5d0
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Job.json
@@ -0,0 +1,63 @@
+{
+ "location": "West US",
+ "tags": { "key": "value" },
+
+ "properties": {
+ "sku": {
+ "name": "standard"
+ },
+ "outputStartMode": "CustomTime",
+ "outputStartTime": "2012-12-12T12:12:12Z",
+ "inputs": [
+ {
+ "name": "Input",
+ "properties": {
+ "type": "stream",
+ "serialization": {
+ "type": "CSV",
+ "properties": {
+ "fieldDelimiter": ",",
+ "encoding": "UTF8"
+ }
+ },
+ "datasource": {
+ "type": "Microsoft.Storage/Blob",
+ "properties": {
+ "storageAccounts" : [
+ {
+ "accountName": "azurenrtdogfood",
+ "accountKey": "$EncryptedStringForTesting"
+ }
+ ],
+ "container": "samples"
+ }
+ }
+ }
+ }
+ ],
+ "transformation": {
+ "name": "transform1",
+ "properties": {
+ "streamingUnits": 1,
+ "query": "select Id, Name from Input"
+ }
+ },
+ "outputs": [
+ {
+ "name": "Output",
+ "properties": {
+ "datasource": {
+ "type": "Microsoft.Sql/Server/Database",
+ "properties": {
+ "server": "$EncryptedStringForTesting.database.windows.net",
+ "database": "azurenrtsql",
+ "user": "azurenrt@$EncryptedStringForTesting",
+ "password": "$EncryptedStringForTesting",
+ "table": "Samples"
+ }
+ }
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Output.json b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Output.json
new file mode 100644
index 000000000000..0d7ecc86cb2e
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Output.json
@@ -0,0 +1,16 @@
+{
+
+ "name": "Output",
+ "properties": {
+ "datasource": {
+ "type": "Microsoft.Sql/Server/Database",
+ "properties": {
+ "server": "$EncryptedStringForTesting.database.windows.net",
+ "database": "azurenrtsql",
+ "user": "azurenrt@$EncryptedStringForTesting",
+ "password": "$EncryptedStringForTesting",
+ "table": "Samples"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Transformation.json b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Transformation.json
new file mode 100644
index 000000000000..3678a8aba7b3
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/Resources/Transformation.json
@@ -0,0 +1,7 @@
+{
+ "name": "transform1",
+ "properties": {
+ "streamingUnits": 1,
+ "query": "select Id, Name from Input TIMESTAMP BY TimeCreated"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.cs
new file mode 100644
index 000000000000..72537f820e75
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Xunit;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Test
+{
+ public class EndToEndTests : StreamAnalyticsScenarioTestsBase
+ {
+ [Fact]
+ [Trait(Category.AcceptanceType, Category.CheckIn)]
+ public void TestStreamingAnalyticsE2E()
+ {
+ RunPowerShellTest("Test-TestStreamingAnalyticsE2E");
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.ps1 b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.ps1
new file mode 100644
index 000000000000..bc902f3c46a4
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/EndToEndTests.ps1
@@ -0,0 +1,100 @@
+# ----------------------------------------------------------------------------------
+#
+# Copyright Microsoft Corporation
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ----------------------------------------------------------------------------------
+
+<#
+.SYNOPSIS
+Nagative test. Get resources from an non-existing empty group.
+#>
+function Test-TestStreamingAnalyticsE2E
+{
+ $resourceGroup = "StreamAnalytics-Default-West-US"
+ $jobName = "TestJobPS"
+ $inputName = "Input"
+ $outputName = "Output"
+ $transformationName = "transform1"
+
+ # Create Job
+ $actual = New-AzureStreamAnalyticsJob -File .\Resources\job.json -ResourceGroupName $resourceGroup -Name $jobName -Force
+ $expected = Get-AzureStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup
+ Assert-AreEqual $expected.Name $actual.Name
+
+ # Get Job Input
+ $actual = Get-AzureStreamAnalyticsInput -JobName $jobName -ResourceGroupName $resourceGroup
+ Assert-AreEqual $inputName $actual.Name
+
+ # Get Job Output
+ $actual = Get-AzureStreamAnalyticsOutput -JobName $jobName -ResourceGroupName $resourceGroup
+ Assert-AreEqual $outputName $actual.Name
+
+ # Get Job transformation
+ $actual = Get-AzureStreamAnalyticsTransformation -JobName $jobName -Name $transformationName -ResourceGroupName $resourceGroup
+ Assert-AreEqual $transformationName $actual.Name
+
+ # New Input (Patch)
+ $actual = New-AzureStreamAnalyticsInput -File .\Resources\Input.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
+ Assert-AreEqual $inputName $actual.Name
+
+ # Test Input
+ $actual = Test-AzureStreamAnalyticsInput -JobName $jobName -Name Input -ResourceGroupName $resourceGroup
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # New Output (Patch)
+ $actual = New-AzureStreamAnalyticsOutput -File .\Resources\Output.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
+ Assert-AreEqual $outputName $actual.Name
+
+ # Test Output
+ $actual = Test-AzureStreamAnalyticsOutput -JobName $jobName -Name $outputName -ResourceGroupName $resourceGroup
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # Create transformation (Patch)
+ $actual = New-AzureStreamAnalyticsTransformation -File .\Resources\Transformation.json -JobName $jobName -ResourceGroupName $resourceGroup -Force
+ Assert-AreEqual $transformationName $actual.Name
+
+ # Get Quota
+ $actual = Get-AzureStreamAnalyticsQuota -Location "West US"
+ $expected = 0
+ Assert-AreEqual $expected $actual.CurrentCount
+
+ # Start Job
+ $actual = Start-AzureStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # Get Quota
+ $actual = Get-AzureStreamAnalyticsQuota -Location "West US"
+ $expected = 1
+ Assert-AreEqual $expected $actual.CurrentCount
+
+ # Stop Job
+ $actual = Stop-AzureStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # Remove Output
+ $actual = Remove-AzureStreamAnalyticsOutput -JobName $jobName -Name Output -ResourceGroupName $resourceGroup -Force
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # Remove Input
+ $actual = Remove-AzureStreamAnalyticsInput -JobName $jobName -Name Input -ResourceGroupName $resourceGroup -Force
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+
+ # Remove Job
+ $actual = Remove-AzureStreamAnalyticsJob -Name $jobName -ResourceGroupName $resourceGroup -Force
+ $expected = "True"
+ Assert-AreEqual $expected $actual
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/StreamAnalyticsScenarioTestsBase.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/StreamAnalyticsScenarioTestsBase.cs
new file mode 100644
index 000000000000..3d9a04411b02
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/ScenarioTests/StreamAnalyticsScenarioTestsBase.cs
@@ -0,0 +1,104 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Gallery;
+using Microsoft.Azure.Management.Authorization;
+using Microsoft.Azure.Management.Resources;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.Azure.Subscriptions;
+using Microsoft.WindowsAzure.Commands.ScenarioTest;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Microsoft.WindowsAzure.Management.Monitoring.Events;
+using Microsoft.WindowsAzure.Management.Storage;
+using Microsoft.WindowsAzure.Testing;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Test
+{
+ public abstract class StreamAnalyticsScenarioTestsBase
+ {
+ private EnvironmentSetupHelper helper;
+
+ protected StreamAnalyticsScenarioTestsBase()
+ {
+ helper = new EnvironmentSetupHelper();
+ }
+
+ protected void SetupManagementClients()
+ {
+ var dataPipelineManagementClient = GetStreamAnalyticsManagementClient();
+ var resourceManagementClient = GetResourceManagementClient();
+ var subscriptionsClient = GetSubscriptionClient();
+ var galleryClient = GetGalleryClient();
+ var eventsClient = GetEventsClient();
+ var authorizationManagementClient = GetAuthorizationManagementClient();
+
+ helper.SetupManagementClients(dataPipelineManagementClient,
+ resourceManagementClient,
+ subscriptionsClient,
+ galleryClient,
+ eventsClient,
+ authorizationManagementClient);
+ }
+
+ protected void RunPowerShellTest(params string[] scripts)
+ {
+ using (UndoContext context = UndoContext.Current)
+ {
+ context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
+
+ SetupManagementClients();
+
+ helper.SetupEnvironment(AzureModule.AzureResourceManager);
+ helper.SetupModules(AzureModule.AzureResourceManager, "ScenarioTests\\" + this.GetType().Name + ".ps1");
+
+ helper.RunPowerShellTest(scripts);
+ }
+ }
+
+ protected StreamAnalyticsManagementClient GetStreamAnalyticsManagementClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+
+ protected ResourceManagementClient GetResourceManagementClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+
+ protected SubscriptionClient GetSubscriptionClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+
+ protected StorageManagementClient GetStorageManagementClient()
+ {
+ return TestBase.GetServiceClient(new RDFETestEnvironmentFactory());
+ }
+
+ protected GalleryClient GetGalleryClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+
+ protected EventsClient GetEventsClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+
+ protected AuthorizationManagementClient GetAuthorizationManagementClient()
+ {
+ return TestBase.GetServiceClient(new CSMTestEnvironmentFactory());
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.StreamAnalytics.Test.EndToEndTests/TestStreamingAnalyticsE2E.json b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.StreamAnalytics.Test.EndToEndTests/TestStreamingAnalyticsE2E.json
new file mode 100644
index 000000000000..e5cfc06c8c54
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/SessionRecords/Microsoft.Azure.Commands.StreamAnalytics.Test.EndToEndTests/TestStreamingAnalyticsE2E.json
@@ -0,0 +1,2051 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFM/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"standard\"\r\n },\r\n \"outputStartMode\": \"CustomTime\",\r\n \"outputStartTime\": \"2012-12-12T12:12:12Z\",\r\n \"inputs\": [\r\n {\r\n \"name\": \"Input\",\r\n \"properties\": {\r\n \"type\": \"stream\",\r\n \"serialization\": {\r\n \"type\": \"CSV\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n },\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\",\r\n \"accountKey\": \"$EncryptedStringForTesting\"\r\n }\r\n ],\r\n \"container\": \"samples\"\r\n }\r\n }\r\n }\r\n }\r\n ],\r\n \"transformation\": {\r\n \"name\": \"transform1\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input\"\r\n }\r\n },\r\n \"outputs\": [\r\n {\r\n \"name\": \"Output\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\",\r\n \"password\": \"$EncryptedStringForTesting\",\r\n \"table\": \"Samples\"\r\n }\r\n }\r\n }\r\n }\r\n ]\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "1598"
+ ],
+ "x-ms-client-request-id": [
+ "cec73d53-3221-4ccd-b7d1-786e33048da7"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS\",\r\n \"name\": \"TestJobPS\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs\",\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n },\r\n \"jobId\": \"6892d484-85d5-44ef-98e4-c9f5f521fd64\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"jobState\": \"NotStarted\",\r\n \"outputStartTime\": \"2012-12-12T12:12:12\",\r\n \"outputStartMode\": \"CustomTime\",\r\n \"createdDate\": \"2014-11-27T01:21:47.1\",\r\n \"inputs\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input\",\r\n \"name\": \"Input\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/inputs\",\r\n \"properties\": {\r\n \"type\": \"Stream\",\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\"\r\n }\r\n ],\r\n \"container\": \"samples\"\r\n }\r\n },\r\n \"serialization\": {\r\n \"type\": \"Csv\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n },\r\n \"etag\": \"98764d05-4e54-4d7a-9042-bbb628d9e3aa\"\r\n }\r\n }\r\n ],\r\n \"transformation\": {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1\",\r\n \"name\": \"transform1\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/transformations\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input\",\r\n \"etag\": \"f8742373-15cf-41de-bd21-b6527c9e0e22\"\r\n }\r\n },\r\n \"functions\": [],\r\n \"outputs\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output\",\r\n \"name\": \"Output\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/outputs\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"table\": \"Samples\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\"\r\n }\r\n },\r\n \"etag\": \"e953928a-b72c-4721-be53-e095118ab7ea\"\r\n }\r\n }\r\n ]\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2037"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "cec73d53-3221-4ccd-b7d1-786e33048da7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11999"
+ ],
+ "x-ms-correlation-request-id": [
+ "4ff68dda-d3be-462f-8b63-f21211c4177f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012147Z:4ff68dda-d3be-462f-8b63-f21211c4177f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:47 GMT"
+ ],
+ "ETag": [
+ "c4396292-f56e-43bf-85e9-829ad80f8f0f"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS?$expand=inputs%2Ctransformation%2Coutputs&api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFM/JGV4cGFuZD1pbnB1dHMlMkN0cmFuc2Zvcm1hdGlvbiUyQ291dHB1dHMmYXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "20b69396-f249-4d14-805a-79eb2ebb9ad9"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS\",\r\n \"name\": \"TestJobPS\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs\",\r\n \"location\": \"West US\",\r\n \"tags\": {\r\n \"key\": \"value\"\r\n },\r\n \"properties\": {\r\n \"sku\": {\r\n \"name\": \"Standard\"\r\n },\r\n \"jobId\": \"6892d484-85d5-44ef-98e4-c9f5f521fd64\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"jobState\": \"NotStarted\",\r\n \"outputStartTime\": \"2012-12-12T12:12:12\",\r\n \"outputStartMode\": \"CustomTime\",\r\n \"createdDate\": \"2014-11-27T01:21:47.1\",\r\n \"inputs\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input\",\r\n \"name\": \"Input\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/inputs\",\r\n \"properties\": {\r\n \"type\": \"Stream\",\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\"\r\n }\r\n ],\r\n \"container\": \"samples\"\r\n }\r\n },\r\n \"serialization\": {\r\n \"type\": \"Csv\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n },\r\n \"etag\": \"98764d05-4e54-4d7a-9042-bbb628d9e3aa\"\r\n }\r\n }\r\n ],\r\n \"transformation\": {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1\",\r\n \"name\": \"transform1\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/transformations\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input\",\r\n \"etag\": \"f8742373-15cf-41de-bd21-b6527c9e0e22\"\r\n }\r\n },\r\n \"outputs\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output\",\r\n \"name\": \"Output\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/outputs\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"table\": \"Samples\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\"\r\n }\r\n },\r\n \"etag\": \"e953928a-b72c-4721-be53-e095118ab7ea\"\r\n }\r\n }\r\n ]\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "2022"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "20b69396-f249-4d14-805a-79eb2ebb9ad9"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799999"
+ ],
+ "x-ms-correlation-request-id": [
+ "d3cf145d-9683-455f-a999-6497c18ddb87"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012148Z:d3cf145d-9683-455f-a999-6497c18ddb87"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:47 GMT"
+ ],
+ "ETag": [
+ "c4396292-f56e-43bf-85e9-829ad80f8f0f"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzP2FwaS12ZXJzaW9uPTIwMTQtMTItMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "90ab5117-b984-428b-b811-05bd86bf04b7"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input\",\r\n \"name\": \"Input\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/inputs\",\r\n \"properties\": {\r\n \"type\": \"Stream\",\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\"\r\n }\r\n ],\r\n \"container\": \"samples\"\r\n }\r\n },\r\n \"serialization\": {\r\n \"type\": \"Csv\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n },\r\n \"etag\": \"98764d05-4e54-4d7a-9042-bbb628d9e3aa\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "577"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "90ab5117-b984-428b-b811-05bd86bf04b7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799998"
+ ],
+ "x-ms-correlation-request-id": [
+ "51f7342d-1b06-4a95-a6cf-d9dd230a15e1"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012148Z:51f7342d-1b06-4a95-a6cf-d9dd230a15e1"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cz9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "d29bf6fe-9872-4b31-817e-301635f7cc18"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output\",\r\n \"name\": \"Output\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/outputs\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"table\": \"Samples\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\"\r\n }\r\n },\r\n \"etag\": \"e953928a-b72c-4721-be53-e095118ab7ea\"\r\n }\r\n }\r\n ],\r\n \"nextLink\": \"\"\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "526"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "d29bf6fe-9872-4b31-817e-301635f7cc18"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799997"
+ ],
+ "x-ms-correlation-request-id": [
+ "e3e01f5b-d6df-471c-8780-80bc4724fd46"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012149Z:e3e01f5b-d6df-471c-8780-80bc4724fd46"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:48 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvdHJhbnNmb3JtYXRpb25zL3RyYW5zZm9ybTE/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4a6a701d-b2f3-459e-ac51-721c62a19add"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1\",\r\n \"name\": \"transform1\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/transformations\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "350"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "4a6a701d-b2f3-459e-ac51-721c62a19add"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799996"
+ ],
+ "x-ms-correlation-request-id": [
+ "aae031fb-98a6-42ed-a203-ed416d2bfe63"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012149Z:aae031fb-98a6-42ed-a203-ed416d2bfe63"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:48 GMT"
+ ],
+ "ETag": [
+ "f8742373-15cf-41de-bd21-b6527c9e0e22"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzL0lucHV0P2FwaS12ZXJzaW9uPTIwMTQtMTItMDEtcHJldmlldw==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"Input\",\r\n \"properties\": {\r\n \"type\": \"stream\",\r\n \"serialization\": {\r\n \"type\": \"CSV\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n },\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\",\r\n \"accountKey\": \"$EncryptedStringForTesting\"\r\n }\r\n ],\r\n \"container\": \"samples\",\r\n \"blobName\": \"sample-blob\",\r\n \"PathPattern\": \"LongRunning/{date}/{time}\",\r\n \"DateFormat\": \"yyyy-MM-dd\",\r\n \"TimeFormat\": \"HH:mm\",\r\n \"SourcePartitionCount\": null,\r\n \"blobSerializationBoundary\": \"BlobBoundary\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "1003"
+ ],
+ "x-ms-client-request-id": [
+ "ae06db90-b4ed-4806-bf98-1fc617e7bc9b"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input\",\r\n \"name\": \"Input\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/inputs\",\r\n \"properties\": {\r\n \"type\": \"Stream\",\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Storage/Blob\",\r\n \"properties\": {\r\n \"pathPattern\": \"LongRunning/{date}/{time}\",\r\n \"dateFormat\": \"yyyy-MM-dd\",\r\n \"timeFormat\": \"HH:mm\",\r\n \"blobName\": \"sample-blob\",\r\n \"blobSerializationBoundary\": \"BlobBoundary\",\r\n \"storageAccounts\": [\r\n {\r\n \"accountName\": \"azurenrtdogfood\"\r\n }\r\n ],\r\n \"container\": \"samples\"\r\n }\r\n },\r\n \"serialization\": {\r\n \"type\": \"Csv\",\r\n \"properties\": {\r\n \"fieldDelimiter\": \",\",\r\n \"encoding\": \"UTF8\"\r\n }\r\n }\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "662"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "4896f807-a446-478d-9048-48f05ed89fb6"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11998"
+ ],
+ "x-ms-correlation-request-id": [
+ "922b50c1-7bc2-4571-a1b9-822b35e31583"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012149Z:922b50c1-7bc2-4571-a1b9-822b35e31583"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:48 GMT"
+ ],
+ "ETag": [
+ "0106369f-c4a3-4a14-b964-18cac2455534"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input/test?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzL0lucHV0L3Rlc3Q/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6266a8b0-c402-475a-bc03-b6791ab9f724"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "7"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "6266a8b0-c402-475a-bc03-b6791ab9f724"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11997"
+ ],
+ "x-ms-correlation-request-id": [
+ "2366fbae-8c90-4db5-a9e3-281dec75cfac"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012150Z:2366fbae-8c90-4db5-a9e3-281dec75cfac"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:49 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input/test/OperationResults/2717fac6-8c0b-43fd-8ae6-03d77bc0a15e?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input/test/OperationResults/2717fac6-8c0b-43fd-8ae6-03d77bc0a15e?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzL0lucHV0L3Rlc3QvT3BlcmF0aW9uUmVzdWx0cy8yNzE3ZmFjNi04YzBiLTQzZmQtOGFlNi0wM2Q3N2JjMGExNWU/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "7"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "76d859f2-da8b-46b4-a856-316a5b0eb577"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799995"
+ ],
+ "x-ms-correlation-request-id": [
+ "187b71bc-2858-4c89-bdda-04b528c9876f"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012151Z:187b71bc-2858-4c89-bdda-04b528c9876f"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:21:51 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input/test/OperationResults/2717fac6-8c0b-43fd-8ae6-03d77bc0a15e?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input/test/OperationResults/2717fac6-8c0b-43fd-8ae6-03d77bc0a15e?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzL0lucHV0L3Rlc3QvT3BlcmF0aW9uUmVzdWx0cy8yNzE3ZmFjNi04YzBiLTQzZmQtOGFlNi0wM2Q3N2JjMGExNWU/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "7"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"TestSucceeded\",\r\n \"error\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "39"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "29dd40cb-a988-4923-bd78-c75c294b94e5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799994"
+ ],
+ "x-ms-correlation-request-id": [
+ "37879be2-e4a5-451f-8fce-d4d550d787ec"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012201Z:37879be2-e4a5-451f-8fce-d4d550d787ec"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:00 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cy9PdXRwdXQ/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"Output\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\",\r\n \"password\": \"$EncryptedStringForTesting\",\r\n \"table\": \"Samples\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "410"
+ ],
+ "x-ms-client-request-id": [
+ "f9a40048-1cc6-43d1-9236-25e1095cb5c1"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output\",\r\n \"name\": \"Output\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/outputs\",\r\n \"properties\": {\r\n \"datasource\": {\r\n \"type\": \"Microsoft.Sql/Server/Database\",\r\n \"properties\": {\r\n \"server\": \"$EncryptedStringForTesting.database.windows.net\",\r\n \"database\": \"azurenrtsql\",\r\n \"table\": \"Samples\",\r\n \"user\": \"azurenrt@$EncryptedStringForTesting\"\r\n }\r\n }\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "454"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "d9446fb7-f67b-4bab-a1eb-7f8693254be2"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11996"
+ ],
+ "x-ms-correlation-request-id": [
+ "bd64f4ef-e6f7-47c9-81c6-3605266a2d5e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012201Z:bd64f4ef-e6f7-47c9-81c6-3605266a2d5e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:01 GMT"
+ ],
+ "ETag": [
+ "dd4fcb9c-3b7a-49de-a9b5-ec41ba8f3b21"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output/test?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cy9PdXRwdXQvdGVzdD9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "7aff5a2d-7987-4c9e-b5c8-68634b6e95d2"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "12"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "7aff5a2d-7987-4c9e-b5c8-68634b6e95d2"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11995"
+ ],
+ "x-ms-correlation-request-id": [
+ "b38b7bb6-2fd5-49af-8538-a2356abce6c3"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012202Z:b38b7bb6-2fd5-49af-8538-a2356abce6c3"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:01 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output/test/OperationResults/376752f2-eb93-42af-a858-bd73e3c1d70f?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output/test/OperationResults/376752f2-eb93-42af-a858-bd73e3c1d70f?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cy9PdXRwdXQvdGVzdC9PcGVyYXRpb25SZXN1bHRzLzM3Njc1MmYyLWViOTMtNDJhZi1hODU4LWJkNzNlM2MxZDcwZj9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "12"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "25c7d27f-d80f-4daf-a0d7-14b0eac88a8e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799993"
+ ],
+ "x-ms-correlation-request-id": [
+ "5086f091-2e3b-4828-ac20-2407a44cc785"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012202Z:5086f091-2e3b-4828-ac20-2407a44cc785"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:01 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output/test/OperationResults/376752f2-eb93-42af-a858-bd73e3c1d70f?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output/test/OperationResults/376752f2-eb93-42af-a858-bd73e3c1d70f?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cy9PdXRwdXQvdGVzdC9PcGVyYXRpb25SZXN1bHRzLzM3Njc1MmYyLWViOTMtNDJhZi1hODU4LWJkNzNlM2MxZDcwZj9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "12"
+ ]
+ },
+ "ResponseBody": "{\r\n \"status\": \"TestSucceeded\",\r\n \"error\": null\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "39"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "f2357f92-2f27-432b-ad6e-e4cc995d70e1"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799992"
+ ],
+ "x-ms-correlation-request-id": [
+ "f2b17630-8f23-4656-8463-76f8185d0eeb"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012212Z:f2b17630-8f23-4656-8463-76f8185d0eeb"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:11 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvdHJhbnNmb3JtYXRpb25zL3RyYW5zZm9ybTE/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"name\": \"transform1\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input TIMESTAMP BY TimeCreated\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "Content-Type": [
+ "application/json"
+ ],
+ "Content-Length": [
+ "165"
+ ],
+ "x-ms-client-request-id": [
+ "948b3d16-8f11-4285-ba9d-3d739e7f1b90"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourceGroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/transformations/transform1\",\r\n \"name\": \"transform1\",\r\n \"type\": \"Microsoft.StreamAnalytics/streamingjobs/transformations\",\r\n \"properties\": {\r\n \"streamingUnits\": 1,\r\n \"query\": \"select Id, Name from Input TIMESTAMP BY TimeCreated\"\r\n }\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "375"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "7c9aca74-721e-4e29-a65b-49e7f7eb50e5"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11994"
+ ],
+ "x-ms-correlation-request-id": [
+ "1f2076f6-85f0-4840-8572-3ee2c1acc768"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012213Z:1f2076f6-85f0-4840-8572-3ee2c1acc768"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:13 GMT"
+ ],
+ "ETag": [
+ "6c219c2a-739b-4cce-a2d8-4ef166546a32"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/providers/Microsoft.StreamAnalytics/locations/West%20US/quotas?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RyZWFtQW5hbHl0aWNzL2xvY2F0aW9ucy9XZXN0JTIwVVMvcXVvdGFzP2FwaS12ZXJzaW9uPTIwMTQtMTItMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "6c377a34-fa63-4cb4-9227-45f96201aa2e"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/providers/Microsoft.StreamAnalytics/locations/West US/quotas/StreamingUnits\",\r\n \"name\": \"StreamingUnits\",\r\n \"type\": \"Microsoft.StreamAnalytics/quotas\",\r\n \"properties\": {\r\n \"maxCount\": 12,\r\n \"currentCount\": 0\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "260"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "6c377a34-fa63-4cb4-9227-45f96201aa2e"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799991"
+ ],
+ "x-ms-correlation-request-id": [
+ "ac9a47ca-257a-4660-8d77-198a65153e75"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012214Z:ac9a47ca-257a-4660-8d77-198a65153e75"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:14 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/providers/Microsoft.StreamAnalytics/locations/West%20US/quotas?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RyZWFtQW5hbHl0aWNzL2xvY2F0aW9ucy9XZXN0JTIwVVMvcXVvdGFzP2FwaS12ZXJzaW9uPTIwMTQtMTItMDEtcHJldmlldw==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "2a163f6d-5131-4c2a-a42a-feb6e7bd73f7"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/providers/Microsoft.StreamAnalytics/locations/West US/quotas/StreamingUnits\",\r\n \"name\": \"StreamingUnits\",\r\n \"type\": \"Microsoft.StreamAnalytics/quotas\",\r\n \"properties\": {\r\n \"maxCount\": 12,\r\n \"currentCount\": 1\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "260"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "2a163f6d-5131-4c2a-a42a-feb6e7bd73f7"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799982"
+ ],
+ "x-ms-correlation-request-id": [
+ "ac7ac787-3371-40ef-bf8f-7ee4adb68fd9"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012327Z:ac7ac787-3371-40ef-bf8f-7ee4adb68fd9"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQ/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "4cecee61-57f0-4e72-ae42-53fc0d8769ef"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "4cecee61-57f0-4e72-ae42-53fc0d8769ef"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11993"
+ ],
+ "x-ms-correlation-request-id": [
+ "cdc3f01e-bb12-4a2e-89d6-6c1fbfa72049"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012214Z:cdc3f01e-bb12-4a2e-89d6-6c1fbfa72049"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:14 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "85357a02-904f-47a0-b00b-b4093066cfdc"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799990"
+ ],
+ "x-ms-correlation-request-id": [
+ "3b0aac7d-1871-4b15-90de-ff2524a75ba7"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012214Z:3b0aac7d-1871-4b15-90de-ff2524a75ba7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:14 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "9ce77646-4b24-4328-b29c-e2083bfee711"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799989"
+ ],
+ "x-ms-correlation-request-id": [
+ "2ef7c279-870a-44e1-bc12-f1cf8c40fcce"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012224Z:2ef7c279-870a-44e1-bc12-f1cf8c40fcce"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:24 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "08603e3f-1822-4a5c-8801-58a2ca2decac"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799988"
+ ],
+ "x-ms-correlation-request-id": [
+ "9c346530-9ae4-4306-aafc-88bfc219a97b"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012235Z:9c346530-9ae4-4306-aafc-88bfc219a97b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:34 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "7484195b-6b37-4b95-86b9-1f9eab3f1aaf"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799987"
+ ],
+ "x-ms-correlation-request-id": [
+ "236f5831-fa85-461e-b199-fa385883959d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012245Z:236f5831-fa85-461e-b199-fa385883959d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:45 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "2b799cad-831e-4553-baf7-a2ec334a9c0d"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799986"
+ ],
+ "x-ms-correlation-request-id": [
+ "ee6a62c0-b891-4f2d-81fe-ece769340942"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012255Z:ee6a62c0-b891-4f2d-81fe-ece769340942"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:22:55 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "f1e95f75-badf-45c1-85fc-8949c8dbc856"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799985"
+ ],
+ "x-ms-correlation-request-id": [
+ "f3de64f1-31e4-4287-9dbd-4c8271caa2de"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012306Z:f3de64f1-31e4-4287-9dbd-4c8271caa2de"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:05 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "9614cc03-83d2-43f1-b84d-e52741f49ac8"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799984"
+ ],
+ "x-ms-correlation-request-id": [
+ "297e046f-5316-44fd-b242-94e0c6425a54"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012316Z:297e046f-5316-44fd-b242-94e0c6425a54"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:15 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/start/OperationResults/feabe924-3d71-433b-a9a7-9b180d114ae9?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RhcnQvT3BlcmF0aW9uUmVzdWx0cy9mZWFiZTkyNC0zZDcxLTQzM2ItYTlhNy05YjE4MGQxMTRhZTk/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "18"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "d4ff734c-18e1-41ae-8992-328553d294c4"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799983"
+ ],
+ "x-ms-correlation-request-id": [
+ "003ff38b-cdb3-40c5-92e9-0a849cadb731"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012326Z:003ff38b-cdb3-40c5-92e9-0a849cadb731"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:26 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/stop?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RvcD9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "POST",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1e47ad54-520b-435a-b094-6da6715b87a6"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "29"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "1e47ad54-520b-435a-b094-6da6715b87a6"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11992"
+ ],
+ "x-ms-correlation-request-id": [
+ "9c556777-4817-4f38-b2f1-1ddd8435023d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012327Z:9c556777-4817-4f38-b2f1-1ddd8435023d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:27 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/stop/OperationResults/f448eb1f-541b-4f32-84cf-0d03d06aa54d?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/stop/OperationResults/f448eb1f-541b-4f32-84cf-0d03d06aa54d?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RvcC9PcGVyYXRpb25SZXN1bHRzL2Y0NDhlYjFmLTU0MWItNGYzMi04NGNmLTBkMDNkMDZhYTU0ZD9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "29"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "64321ee9-806e-4f6a-bfe8-e13e8c975fae"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799981"
+ ],
+ "x-ms-correlation-request-id": [
+ "86398ebb-2561-41fb-9210-64fa64ff39e7"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012327Z:86398ebb-2561-41fb-9210-64fa64ff39e7"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:27 GMT"
+ ],
+ "Location": [
+ "https://api-current.resources.windows-int.net/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/stop/OperationResults/f448eb1f-541b-4f32-84cf-0d03d06aa54d?api-version=2014-12-01-preview"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/stop/OperationResults/f448eb1f-541b-4f32-84cf-0d03d06aa54d?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvc3RvcC9PcGVyYXRpb25SZXN1bHRzL2Y0NDhlYjFmLTU0MWItNGYzMi04NGNmLTBkMDNkMDZhYTU0ZD9hcGktdmVyc2lvbj0yMDE0LTEyLTAxLXByZXZpZXc=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-version": [
+ "2014-12-01-preview"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "29"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "225858e0-9608-4efb-8a2d-6c87917c9aee"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "799980"
+ ],
+ "x-ms-correlation-request-id": [
+ "20536384-76e6-4371-b771-903ba679e60e"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012337Z:20536384-76e6-4371-b771-903ba679e60e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/outputs/Output?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvb3V0cHV0cy9PdXRwdXQ/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "8c4010a3-ab7a-4b12-8c36-3cc05efe3a51"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "8c4010a3-ab7a-4b12-8c36-3cc05efe3a51"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11991"
+ ],
+ "x-ms-correlation-request-id": [
+ "274f7f73-b078-46e0-a750-18a4ac84530d"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012338Z:274f7f73-b078-46e0-a750-18a4ac84530d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:37 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS/inputs/Input?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFMvaW5wdXRzL0lucHV0P2FwaS12ZXJzaW9uPTIwMTQtMTItMDEtcHJldmlldw==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "45f43b18-56b5-4cfb-8068-c723b644740a"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "45f43b18-56b5-4cfb-8068-c723b644740a"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11990"
+ ],
+ "x-ms-correlation-request-id": [
+ "fe846ed5-c6d4-4ad8-a2c1-5d9a20c0556c"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012338Z:fe846ed5-c6d4-4ad8-a2c1-5d9a20c0556c"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fab1606e-7972-4dc7-badb-6b780365a8d7/resourcegroups/StreamAnalytics-Default-West-US/providers/Microsoft.StreamAnalytics/streamingjobs/TestJobPS?api-version=2014-12-01-preview",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmFiMTYwNmUtNzk3Mi00ZGM3LWJhZGItNmI3ODAzNjVhOGQ3L3Jlc291cmNlZ3JvdXBzL1N0cmVhbUFuYWx5dGljcy1EZWZhdWx0LVdlc3QtVVMvcHJvdmlkZXJzL01pY3Jvc29mdC5TdHJlYW1BbmFseXRpY3Mvc3RyZWFtaW5nam9icy9UZXN0Sm9iUFM/YXBpLXZlcnNpb249MjAxNC0xMi0wMS1wcmV2aWV3",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1253c1d0-6ee7-4c89-b147-650351072e13"
+ ],
+ "User-Agent": [
+ "Microsoft.Azure.Management.StreamAnalytics.StreamAnalyticsManagementClient/0.9.0.0"
+ ],
+ "client-tracking-id": [
+ "35"
+ ]
+ },
+ "ResponseBody": "",
+ "ResponseHeaders": {
+ "Content-Length": [
+ "0"
+ ],
+ "Content-Type": [
+ "application/json"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-AspNetMvc-Version": [
+ "5.0"
+ ],
+ "x-ms-request-id": [
+ "1253c1d0-6ee7-4c89-b147-650351072e13"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "11989"
+ ],
+ "x-ms-correlation-request-id": [
+ "f1fff467-dbe3-4a39-8808-ad1e87ebbdd0"
+ ],
+ "x-ms-routing-request-id": [
+ "CENTRALUS:20141127T012339Z:f1fff467-dbe3-4a39-8808-ad1e87ebbdd0"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Cache-Control": [
+ "no-store, no-cache"
+ ],
+ "Date": [
+ "Thu, 27 Nov 2014 01:23:38 GMT"
+ ],
+ "Server": [
+ "Microsoft-IIS/8.5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ]
+ },
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "fab1606e-7972-4dc7-badb-6b780365a8d7"
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config
new file mode 100644
index 000000000000..b3a8aa2b7ed6
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics.Test/packages.config
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/CloudExceptionExtensions.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/CloudExceptionExtensions.cs
new file mode 100644
index 000000000000..d34a67ae7da5
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/CloudExceptionExtensions.cs
@@ -0,0 +1,52 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ internal static class CloudExceptionExtensions
+ {
+ public static CloudException CreateFormattedException(this CloudException cloudException)
+ {
+ return new CloudException(
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.FormattedCloudExceptionMessageTemplate,
+ cloudException.Response.StatusCode,
+ cloudException.ErrorCode,
+ cloudException.ErrorMessage,
+ cloudException.GetRequestId(),
+ DateTime.UtcNow));
+ }
+
+ public static string GetRequestId(this CloudException exception)
+ {
+ IEnumerable strings;
+
+ if (exception.Response != null
+ && exception.Response.Headers != null
+ && exception.Response.Headers.TryGetValue("x-ms-request-id", out strings))
+ {
+ return string.Join(";", strings);
+ }
+
+ return string.Empty;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj
new file mode 100644
index 000000000000..1a8ea15f6751
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Commands.StreamAnalytics.csproj
@@ -0,0 +1,182 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {F49A314A-A235-47D3-A654-1EC19ACA366C}
+ Library
+ Properties
+ Microsoft.Azure.Commands.StreamAnalytics
+ Microsoft.Azure.Commands.StreamAnalytics
+ v4.5
+ 512
+
+ ..\..\..\
+ true
+ /assemblyCompareMode:StrongNameIgnoringVersion
+
+
+ true
+ full
+ false
+ ..\..\..\Package\Debug\ResourceManager\AzureResourceManager\StreamAnalytics
+ DEBUG;TRACE
+ prompt
+ 4
+ true
+ true
+ false
+
+
+ ..\..\..\Package\Release\ResourceManager\AzureResourceManager\StreamAnalytics
+ TRACE;SIGN
+ true
+ pdbonly
+ AnyCPU
+ bin\Release\Microsoft.Azure.Commands.Resources.dll.CodeAnalysisLog.xml
+ true
+ GlobalSuppressions.cs
+ prompt
+ MinimumRecommendedRules.ruleset
+ ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\Rule Sets
+ ;$(ProgramFiles)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\Rules
+ true
+ true
+ MSSharedLibKey.snk
+ true
+ false
+
+
+
+ False
+ ..\..\..\packages\Microsoft.Azure.Management.StreamAnalytics.0.12.1-preview\lib\net40\Microsoft.Azure.Management.StreamAnalytics.dll
+
+
+
+
+
+
+ False
+ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Extensions.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.Net.Http.2.2.28\lib\net45\System.Net.Http.Primitives.dll
+
+
+
+
+
+
+
+
+
+ False
+ ..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.0\lib\net45\Microsoft.WindowsAzure.Common.dll
+
+
+ False
+ ..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.0\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll
+
+
+ False
+ ..\..\..\packages\WindowsAzure.Storage.4.0.0\lib\net40\Microsoft.WindowsAzure.Storage.dll
+
+
+ False
+ ..\..\..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll
+
+
+
+
+ {65c3a86a-716d-4e7d-ab67-1db00b3bf72d}
+ Commands.Common.Storage
+
+
+ {5ee72c53-1720-4309-b54b-5fb79703195f}
+ Commands.Common
+
+
+ {c60342b1-47d3-4a0e-8081-9b97ce60b7af}
+ Commands.Profile
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+ True
+ Resources.resx
+
+
+
+
+
+
+
+
+
+
+ Always
+
+
+
+
+
+
+ Always
+
+
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+ Designer
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Constants.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Constants.cs
new file mode 100644
index 000000000000..2e36f7d0f2e1
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Constants.cs
@@ -0,0 +1,31 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ internal static class Constants
+ {
+ public const string StreamAnalyticsJob = "AzureStreamAnalyticsJob";
+
+ public const string StreamAnalyticsInput = "AzureStreamAnalyticsInput";
+
+ public const string StreamAnalyticsOutput = "AzureStreamAnalyticsOutput";
+
+ public const string StreamAnalyticsTransformation = "AzureStreamAnalyticsTransformation";
+
+ public const string StreamAnalyticsQuota = "AzureStreamAnalyticsQuota";
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/GetAzureStreamAnalyticsInputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/GetAzureStreamAnalyticsInputCommand.cs
new file mode 100644
index 000000000000..5e9e2ea7dff0
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/GetAzureStreamAnalyticsInputCommand.cs
@@ -0,0 +1,61 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Get, Constants.StreamAnalyticsInput), OutputType(typeof(List), typeof(PSInput))]
+ public class GetAzureStreamAnalyticsInputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics input name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name == null || string.IsNullOrWhiteSpace(Name))
+ {
+ Name = string.Empty;
+ }
+
+ InputFilterOptions filterOptions = new InputFilterOptions()
+ {
+ Name = Name,
+ JobName = JobName,
+ ResourceGroupName = ResourceGroupName
+ };
+
+ WriteObject(StreamAnalyticsClient.FilterPSInputs(filterOptions), true);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/NewAzureStreamAnalyticsInputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/NewAzureStreamAnalyticsInputCommand.cs
new file mode 100644
index 000000000000..5cbb2591021a
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/NewAzureStreamAnalyticsInputCommand.cs
@@ -0,0 +1,82 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.New, Constants.StreamAnalyticsInput), OutputType(typeof(PSInput))]
+ public class NewAzureStreamAnalyticsInputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics input name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 3, Mandatory = true, HelpMessage = "The stream analytics input JSON file path.")]
+ [ValidateNotNullOrEmpty]
+ public string File { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (File != null && string.IsNullOrWhiteSpace(File))
+ {
+ throw new PSArgumentNullException("File");
+ }
+
+ string rawJsonContent = StreamAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(File));
+
+ Name = ResolveResourceName(rawJsonContent, Name, "Input");
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new ArgumentException(Resources.InputNameCannotBeEmpty);
+ }
+
+ CreatePSInputParameter parameter = new CreatePSInputParameter
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = JobName,
+ InputName = Name,
+ RawJsonContent = rawJsonContent,
+ Force = Force.IsPresent,
+ ConfirmAction = ConfirmAction
+ };
+
+ WriteObject(StreamAnalyticsClient.CreatePSInput(parameter));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/RemoveAzureStreamAnalyticsInputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/RemoveAzureStreamAnalyticsInputCommand.cs
new file mode 100644
index 000000000000..c9c6db5f6919
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/RemoveAzureStreamAnalyticsInputCommand.cs
@@ -0,0 +1,86 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Remove, Constants.StreamAnalyticsInput)]
+ public class RemoveAzureStreamAnalyticsInputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics input name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new PSArgumentNullException("Name");
+ }
+
+ this.ConfirmAction(
+ this.Force.IsPresent,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.InputRemovalConfirmationMessage,
+ this.Name,
+ this.JobName,
+ this.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.InputRemoving,
+ this.Name,
+ this.JobName,
+ this.ResourceGroupName),
+ this.Name,
+ this.ExecuteDelete);
+ }
+
+ private void ExecuteDelete()
+ {
+ HttpStatusCode statusCode = StreamAnalyticsClient.RemovePSInput(ResourceGroupName, JobName, Name);
+ if (statusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.InputNotFound, Name, JobName, ResourceGroupName));
+ }
+ else
+ {
+ WriteObject(true);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/TestAzureStreamAnalyticsInputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/TestAzureStreamAnalyticsInputCommand.cs
new file mode 100644
index 000000000000..e9983374ebae
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Input/TestAzureStreamAnalyticsInputCommand.cs
@@ -0,0 +1,90 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsDiagnostic.Test, Constants.StreamAnalyticsInput)]
+ public class TestAzureStreamAnalyticsInputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics input name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new PSArgumentNullException("Name");
+ }
+
+ try
+ {
+ DataSourceTestConnectionResponse response = StreamAnalyticsClient.TestPSInput(ResourceGroupName, JobName, Name);
+ if (response.StatusCode == HttpStatusCode.OK && response.DataSourceTestStatus == DataSourceTestStatus.TestSucceeded)
+ {
+ WriteObject(true);
+ }
+ else if (response.StatusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.InputNotFound, Name, JobName, ResourceGroupName));
+ }
+ else
+ {
+ string errorId = null;
+ string errorMessage = null;
+ string innerErrorMessage = null;
+ if (response.Error != null)
+ {
+ errorId = response.Error.Code;
+ errorMessage = response.Error.Message;
+ if (response.Error.Details != null)
+ {
+ innerErrorMessage = response.Error.Details.Message;
+ }
+ }
+
+ Exception ex = new Exception(errorMessage, new Exception(innerErrorMessage));
+ WriteError(new ErrorRecord(ex, errorId, ErrorCategory.ConnectionError, null));
+ }
+ }
+ catch
+ {
+ WriteObject(false);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/GetAzureStreamAnalyticsJobCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/GetAzureStreamAnalyticsJobCommand.cs
new file mode 100644
index 000000000000..4421edf2da72
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/GetAzureStreamAnalyticsJobCommand.cs
@@ -0,0 +1,68 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Get, Constants.StreamAnalyticsJob), OutputType(typeof(List), typeof(PSJob))]
+ public class GetAzureStreamAnalyticsJobCommand : StreamAnalyticsBaseCmdlet
+ {
+ [Parameter(ParameterSetName = StreamAnalyticsObjectsInResourceGroup, Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The resource group name.")]
+ [ValidateNotNullOrEmpty]
+ public string ResourceGroupName { get; set; }
+
+ [Parameter(ParameterSetName = StreamAnalyticsObjectsInResourceGroup, Position = 1, Mandatory = false, ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(ParameterSetName = StreamAnalyticsObjectsInResourceGroup, Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The switch to specify whether the job entity should be expanded.")]
+ [Parameter(ParameterSetName = StreamAnalyticsObjectsInSubscription, Position = 1, Mandatory = false, ValueFromPipelineByPropertyName = true,
+ HelpMessage = "The switch to specify whether the job entity should be expanded.")]
+ public SwitchParameter NoExpand { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ParameterSetName == StreamAnalyticsObjectsInResourceGroup)
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+ }
+
+ string propertiesToExpand = "inputs,transformation,outputs";
+ if (NoExpand.IsPresent)
+ {
+ propertiesToExpand = string.Empty;
+ }
+
+ JobFilterOptions filterOptions = new JobFilterOptions
+ {
+ JobName = Name,
+ ResourceGroupName = ResourceGroupName,
+ PropertiesToExpand = propertiesToExpand
+ };
+
+ WriteObject(StreamAnalyticsClient.FilterPSJobs(filterOptions), true);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/NewAzureStreamAnalyticsJobCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/NewAzureStreamAnalyticsJobCommand.cs
new file mode 100644
index 000000000000..11e2ae076ab6
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/NewAzureStreamAnalyticsJobCommand.cs
@@ -0,0 +1,62 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.New, Constants.StreamAnalyticsJob), OutputType(typeof(PSJob))]
+ public class NewAzureStreamAnalyticsJobCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, HelpMessage = "The stream analytics job JSON file path.")]
+ [ValidateNotNullOrEmpty]
+ public string File { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ string rawJsonContent = StreamAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(File));
+
+ Name = ResolveResourceName(rawJsonContent, Name, "Job");
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new ArgumentException(Resources.JobNameCannotBeEmpty);
+ }
+
+ CreatePSJobParameter parameter = new CreatePSJobParameter
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = Name,
+ RawJsonContent = rawJsonContent,
+ Force = Force.IsPresent,
+ ConfirmAction = ConfirmAction
+ };
+
+ WriteObject(StreamAnalyticsClient.CreatePSJob(parameter));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/RemoveAzureStreamAnalyticsJobCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/RemoveAzureStreamAnalyticsJobCommand.cs
new file mode 100644
index 000000000000..35b81972effe
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/RemoveAzureStreamAnalyticsJobCommand.cs
@@ -0,0 +1,89 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Remove, Constants.StreamAnalyticsJob)]
+ public class RemoveAzureStreamAnalyticsJobCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ this.ConfirmAction(
+ this.Force.IsPresent,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.JobRemovalConfirmationMessage,
+ this.Name,
+ this.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.JobRemoving,
+ this.Name,
+ this.ResourceGroupName),
+ this.Name,
+ this.ExecuteDelete);
+ }
+
+ private void ExecuteDelete()
+ {
+ JobParametersBase parameter = new JobParametersBase()
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = Name
+ };
+
+ try
+ {
+ HttpStatusCode statusCode = StreamAnalyticsClient.RemovePSJob(parameter);
+ if (statusCode == HttpStatusCode.OK)
+ {
+ WriteObject(true);
+ }
+ else if (statusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.JobNotFound, Name, ResourceGroupName));
+ }
+ else
+ {
+ WriteObject(false);
+ }
+ }
+ catch
+ {
+ WriteObject(false);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StartAzureStreamAnalyticsJobCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StartAzureStreamAnalyticsJobCommand.cs
new file mode 100644
index 000000000000..1d41a5f22be1
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StartAzureStreamAnalyticsJobCommand.cs
@@ -0,0 +1,68 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsLifecycle.Start, Constants.StreamAnalyticsJob)]
+ public class StartAzureStreamAnalyticsJobCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ JobParametersBase parameter = new JobParametersBase()
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = Name
+ };
+
+ try
+ {
+ HttpStatusCode statusCode = StreamAnalyticsClient.StartPSJob(parameter);
+ if (statusCode == HttpStatusCode.OK)
+ {
+ WriteObject(true);
+ }
+ else if (statusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.JobNotFound, Name, ResourceGroupName));
+ }
+ else
+ {
+ WriteObject(false);
+ }
+ }
+ catch
+ {
+ WriteObject(false);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StopAzureStreamAnalyticsJobCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StopAzureStreamAnalyticsJobCommand.cs
new file mode 100644
index 000000000000..f40132045b81
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Job/StopAzureStreamAnalyticsJobCommand.cs
@@ -0,0 +1,68 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsLifecycle.Stop, Constants.StreamAnalyticsJob)]
+ public class StopAzureStreamAnalyticsJobCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ JobParametersBase parameter = new JobParametersBase()
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = Name
+ };
+
+ try
+ {
+ HttpStatusCode statusCode = StreamAnalyticsClient.StopPSJob(parameter);
+ if (statusCode == HttpStatusCode.OK)
+ {
+ WriteObject(true);
+ }
+ else if (statusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.JobNotFound, Name, ResourceGroupName));
+ }
+ else
+ {
+ WriteObject(false);
+ }
+ }
+ catch
+ {
+ WriteObject(false);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/MSSharedLibKey.snk b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/MSSharedLibKey.snk
new file mode 100644
index 000000000000..695f1b38774e
Binary files /dev/null and b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/MSSharedLibKey.snk differ
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.dll-Help.xml b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.dll-Help.xml
new file mode 100644
index 000000000000..ab498a9cf706
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.dll-Help.xml
@@ -0,0 +1,3589 @@
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsQuota
+
+
+
+ Gets information about the Streaming Unit quota of a specified region.
+
+
+
+
+
+ Get
+ AzureStreamAnalyticsQuota
+
+
+
+ The Get-AzureStreamAnalyticsQuota cmdlet gets information about the Streaming Unit quota of a specified region.
+
+
+
+
+ Get-AzureStreamAnalyticsQuota
+
+ Location
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Location
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Collections.Generic.List`1[[Microsoft.Azure.Commands.StreamAnalytics.Models.PSQuota, Microsoft.Azure.Commands.StreamAnalytics, Version=0.8.11.0, Culture=neutral, PublicKeyToken=null]]
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSQuota
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsQuota -Location "West US"
+
+
+ Description
+ -----------
+ This command returns information about Streaming Unit quota and usage in the West US region.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsTransformation
+
+
+ Gets information about a specific transformation defined on Stream Analytics job.
+
+
+
+
+ Get
+ AzureStreamAnalyticsTransformation
+
+
+
+ The Get-AzureStreamAnalyticsTransformation cmdlet gets information about a specific transformation defined on Stream Analytics job.
+
+
+
+
+ Get-AzureStreamAnalyticsTransformation
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Collections.Generic.List`1[[Microsoft.Azure.Commands.StreamAnalytics.Models.PSTransformation, Microsoft.Azure.Commands.StreamAnalytics, Version=0.8.11.0, Culture=neutral, PublicKeyToken=null]]
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSTransformation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsTransformation -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name StreamingJob
+
+
+ Description
+ -----------
+ This command returns information about the transformation called StreamingJob on the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsTransformation
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsOutput
+
+
+ Lists all of the outputs that are defined in a specified Stream Analytics job or gets information about a specific output.
+
+
+
+
+ Get
+ AzureStreamAnalyticsOutput
+
+
+
+ The Get-AzureStreamAnalyticsOutput cmdlet lists all of the outputs that are defined in a specified Stream Analytics job or gets information about a specific output.
+
+
+
+
+ Get-AzureStreamAnalyticsOutput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Collections.Generic.List`1[[Microsoft.Azure.Commands.StreamAnalytics.Models.PSOutput, Microsoft.Azure.Commands.StreamAnalytics, Version=0.8.11.0, Culture=neutral, PublicKeyToken=null]]
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSOutput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob
+
+
+ Description
+ -----------
+ This command returns information about the outputs defined on the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name Output
+
+
+ Description
+ -----------
+ This command returns information about the output named Output defined on the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsOutput
+
+
+
+ Remove-AzureStreamAnalyticsOutput
+
+
+
+ Test-AzureStreamAnalyticsOutput
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsInput
+
+
+ Lists all of the inputs that are defined in a specified Stream Analytics job or gets information about a specific input.
+
+
+
+
+ Get
+ AzureStreamAnalyticsInput
+
+
+
+ The Get-AzureStreamAnalyticsInput cmdlet lists all of the inputs that are defined in a specified Stream Analytics job or gets information about a specific input.
+
+
+
+
+ Get-AzureStreamAnalyticsInput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Collections.Generic.List`1[[Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput, Microsoft.Azure.Commands.StreamAnalytics, Version=0.8.11.0, Culture=neutral, PublicKeyToken=null]]
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob
+
+
+ Description
+ -----------
+ This command returns information about all the inputs defined on the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name EntryStream
+
+
+ Description
+ -----------
+ This command returns information about the input named EntryStream defined on the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsInput
+
+
+
+ Remove-AzureStreamAnalyticsInput
+
+
+
+ Test-AzureStreamAnalyticsInput
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+ Lists all Stream Analytics jobs defined in the Azure subscription or specified resource group or gets job information about a specific job within a resource group.
+
+
+
+
+ Get
+ AzureStreamAnalyticsJob
+
+
+
+ The Get-AzureStreamAnalyticsJob cmdlet lists all Stream Analytics jobs defined in the Azure subscription or specified resource group or gets job information about a specific job within a resource group.
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+ NoExpand
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ NoExpand
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Collections.Generic.List`1[[Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob, Microsoft.Azure.Commands.StreamAnalytics, Version=0.8.11.0, Culture=neutral, PublicKeyToken=null]]
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+ Description
+ -----------
+ This command returns information about all the Stream Analytics jobs in the Azure subscription.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US
+
+
+ Description
+ -----------
+ This command returns information about all the Stream Analytics jobs in the resource group StreamAnalytics-Default-West-US.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 3 --------------------------
+
+
+ C:\PS>
+
+
+ Get-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -Name StreamingJob
+
+
+ Description
+ -----------
+ This command returns information about the Stream Analytics job StreamingJob in the resource group StreamAnalytics-Default-West-US.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsJob
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsOutput
+
+
+
+ Creates a new output within a Stream Analytics job or updates an existing output.
+ The name of the output can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify an output that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing output.
+ If you specify -Force parameter and specify an existing output name, the output will be replaced without confirmation.
+
+
+
+
+
+ New
+ AzureStreamAnalyticsOutput
+
+
+
+
+ The New-AzureStreamAnalyticsOutput cmdlet creates a new output within a Stream Analytics job or updates an existing output.
+ The name of the output can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify an output that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing output.
+ If you specify -Force parameter and specify an existing output name, the output will be replaced without confirmation.
+
+
+
+
+
+ New-AzureStreamAnalyticsOutput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ File
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ File
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSOutput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Output.json" -JobName StreamingJob -Name output
+
+
+ Description
+ -----------
+ This command creates a new output called "output" in the job StreamingJob. If an existing output with this name is already defined, the cmdlet will ask whether or not to replace it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Output.json" -JobName StreamingJob -Name output -Force
+
+
+ Description
+ -----------
+ This command replaces the definition for "output" in the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsOutput
+
+
+
+ Remove-AzureStreamAnalyticsOutput
+
+
+
+ Test-AzureStreamAnalyticsOutput
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsTransformation
+
+
+
+ Creates a new transformation within a Stream Analytics job or updates the existing transformation.
+ The name of the transformation can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify a transformation that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing transformation.
+ If you specify -Force parameter and specify an existing transformation name, the transformation will be replaced without confirmation.
+
+
+
+
+
+ New
+ AzureStreamAnalyticsTransformation
+
+
+
+
+ The New-AzureStreamAnalyticsTransformation cmdlet creates a new transformation within a Stream Analytics job or updates the existing transformation.
+ The name of the transformation can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify a transformation that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing transformation.
+ If you specify -Force parameter and specify an existing transformation name, the transformation will be replaced without confirmation.
+
+
+
+
+
+ New-AzureStreamAnalyticsTransformation
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ File
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ File
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSTransformation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsTransformation -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Transformation.json" -JobName StreamingJob -Name StreamingJobTransform
+
+
+ Description
+ -----------
+ This command creates a new transformation called StreamingJobTransform in the job StreamingJob. If an existing transformation is already defined with this name, the cmdlet will ask whether or not to replace it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsTransformation -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\Transformation.json" -JobName StreamingJob -Name StreamingJobTransform -Force
+
+
+ Description
+ -----------
+ This command replaces the definition of StreamingJobTransform in the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsTransformation
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsInput
+
+
+
+ Creates a new input within a Stream Analytics job or updates an existing specified input.
+ The name of the input can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify an input that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing input.
+ If you specify -Force parameter and specify an existing input name, the input will be replaced without confirmation.
+
+
+
+
+
+ New
+ AzureStreamAnalyticsInput
+
+
+
+
+ The New-AzureStreamAnalyticsInput cmdlet creates a new input within a Stream Analytics job or updates an existing specified input.
+ The name of the input can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify an input that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing input.
+ If you specify -Force parameter and specify an existing input name, the input will be replaced without confirmation.
+
+
+
+
+
+ New-AzureStreamAnalyticsInput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ File
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ File
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json"
+
+
+ Description
+ -----------
+ This command creates a new input from the file Input.json. If an existing input with the name specified in the input definition file is already defined, the cmdlet will ask whether or not to replace it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json" -Name EntryStream
+
+
+ Description
+ -----------
+ This command creates a new input on the job called EntryStream. If an existing input with this name is already defined, the cmdlet will ask whether or not to replace it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 3 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -File "C:\Input.json" -Name EntryStream -Force
+
+
+ Description
+ -----------
+ This command replaces the definition of the existing input source called EntryStream with the definition from file.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsInput
+
+
+
+ Remove-AzureStreamAnalyticsInput
+
+
+
+ Test-AzureStreamAnalyticsInput
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsJob
+
+
+
+ Creates a new Stream Analytics job in Microsoft Azure or updates the definition of an existing specified job.
+ The name of the job can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify a job name that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing job.
+ If you specify -Force parameter and specify an existing job name, the job definition will be replaced without confirmation.
+
+
+
+
+
+ New
+ AzureStreamAnalyticsJob
+
+
+
+
+ The New-AzureStreamAnalyticsJob cmdlet creates a new Stream Analytics job in Microsoft Azure or updates the definition of an existing specified job.
+ The name of the job can be specified in the .JSON file or on the command line. If both are specified, the name on command line will be used instead of the name in the file.
+ If you specify a job name that already exists and do not specify -Force parameter, the cmdlet will ask whether or not to replace the existing job.
+ If you specify -Force parameter and specify an existing job name, the job definition will be replaced without confirmation.
+
+
+
+
+
+ New-AzureStreamAnalyticsJob
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ File
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ File
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\JobDefinition.json"
+
+
+ Description
+ -----------
+ This command creates a new job from the definition in JobDefinition.json. If an existing job with the name specified in the job definition file is already defined, the cmdlet will ask whether or not to replace it.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 2 --------------------------
+
+
+ C:\PS>
+
+
+ New-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -File "C:\JobDefinition.json" -Name StreamingJob -Force
+
+
+ Description
+ -----------
+ This command replaces the job definition for StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+
+
+
+
+
+
+ Remove-AzureStreamAnalyticsOutput
+
+
+
+ Asynchronously deletes a specific output from a Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the output will be deleted without confirmation.
+
+
+
+
+
+ Remove
+ AzureStreamAnalyticsOutput
+
+
+
+
+ The Remove-AzureStreamAnalyticsOutput cmdlet asynchronously deletes a specific output from a Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the output will be deleted without confirmation.
+
+
+
+
+
+ Remove-AzureStreamAnalyticsOutput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Remove-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name Output
+
+
+ Description
+ -----------
+ This command removes the output Output in the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsOutput
+
+
+
+ New-AzureStreamAnalyticsOutput
+
+
+
+ Test-AzureStreamAnalyticsOutput
+
+
+
+
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+
+
+ Asynchronously deletes a specific Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the job will be deleted without confirmation.
+
+
+
+
+
+ Remove
+ AzureStreamAnalyticsJob
+
+
+
+
+ The Remove-AzureStreamAnalyticsJob cmdlet asynchronously deletes a specific Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the job will be deleted without confirmation.
+
+
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Remove-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -Name StreamingJob
+
+
+ Description
+ -----------
+ This command removes the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+
+ New-AzureStreamAnalyticsJob
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+
+
+
+
+
+
+
+ Remove-AzureStreamAnalyticsInput
+
+
+
+ Asynchronously deletes a specific input from a Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the input will be deleted without confirmation.
+
+
+
+
+
+ Remove
+ AzureStreamAnalyticsInput
+
+
+
+
+ The Remove-AzureStreamAnalyticsInput cmdlet asynchronously deletes a specific input from a Stream Analytics job in Microsoft Azure.
+ If you specify -Force parameter the input will be deleted without confirmation.
+
+
+
+
+
+ Remove-AzureStreamAnalyticsInput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ Force
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Force
+
+
+
+
+ SwitchParameter
+
+ SwitchParameter
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Remove-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name EventStream
+
+
+ Description
+ -----------
+ This command removes the input EventStream from StreamingJob
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ New-AzureStreamAnalyticsInput
+
+
+
+ Get-AzureStreamAnalyticsInput
+
+
+
+ Test-AzureStreamAnalyticsInput
+
+
+
+
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+
+ Asynchronously deploys and starts a Stream Analytics job in Microsoft Azure.
+
+
+
+
+ Start
+ AzureStreamAnalyticsJob
+
+
+
+ The Start-AzureStreamAnalyticsJob cmdlet asynchronously deploys and starts a Stream Analytics job in Microsoft Azure.
+
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Start-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -Name StreamingJob
+
+
+ Description
+ -----------
+ This command starts the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+
+ New-AzureStreamAnalyticsJob
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+
+
+
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+
+ Asynchronously stops a Stream Analytics job from running in Microsoft Azure and de-allocates resources that were that were being used. The job definition and meta-data will remain available within your subscription through both the Azure Portal and Management APIs, such that the job can be edited and restarted. You will not be charged for a job in the Stopped state.
+
+
+
+
+ Stop
+ AzureStreamAnalyticsJob
+
+
+
+ The Stop-AzureStreamAnalyticsJob cmdlet asynchronously stops a Stream Analytics job from running in Microsoft Azure and de-allocates resources that were that were being used. The job definition and meta-data will remain available within your subscription through both the Azure Portal and Management APIs, such that the job can be edited and restarted. You will not be charged for a job in the Stopped state.
+
+
+
+
+ Stop-AzureStreamAnalyticsJob
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Stop-AzureStreamAnalyticsJob -ResourceGroupName StreamAnalytics-Default-West-US -Name StreamingJob
+
+
+ Description
+ -----------
+ This command stops the job StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsJob
+
+
+
+ New-AzureStreamAnalyticsJob
+
+
+
+ Remove-AzureStreamAnalyticsJob
+
+
+
+ Start-AzureStreamAnalyticsJob
+
+
+
+
+
+
+
+ Test-AzureStreamAnalyticsOutput
+
+
+ Tests the ability of Stream Analytics to connect to a specified output.
+
+
+
+
+ Test
+ AzureStreamAnalyticsOutput
+
+
+
+ The Test-AzureStreamAnalyticsOutput cmdlet tests the ability of Stream Analytics to connect to a specified output.
+
+
+
+
+ Test-AzureStreamAnalyticsOutput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Test-AzureStreamAnalyticsOutput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name Output
+
+
+ Description
+ -----------
+ This tests the connection status of the output Output in StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsOuput
+
+
+
+ New-AzureStreamAnalyticsOuput
+
+
+
+ Remove-AzureStreamAnalyticsOuput
+
+
+
+
+
+
+
+ Test-AzureStreamAnalyticsInput
+
+
+ Tests the ability of Stream Analytics to connect to a specified input.
+
+
+
+
+ Test
+ AzureStreamAnalyticsInput
+
+
+
+ The Test-AzureStreamAnalyticsInput cmdlet tests the ability of Stream Analytics to connect to a specified input.
+
+
+
+
+ Test-AzureStreamAnalyticsInput
+
+ ResourceGroupName
+
+
+
+ string
+
+
+ JobName
+
+
+
+ string
+
+
+ Name
+
+
+
+ string
+
+
+ PipelineVariable
+
+ Not Specified
+
+ string
+
+
+
+
+
+
+ JobName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ Name
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+ PipelineVariable
+
+ Not Specified
+
+
+ string
+
+ string
+
+
+
+
+
+ ResourceGroupName
+
+
+
+
+ string
+
+ string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ System.Object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -------------------------- EXAMPLE 1 --------------------------
+
+
+ C:\PS>
+
+
+ Test-AzureStreamAnalyticsInput -ResourceGroupName StreamAnalytics-Default-West-US -JobName StreamingJob -Name EntryStream
+
+
+ Description
+ -----------
+ This tests the connection status of the input EntryStream in StreamingJob.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Get-AzureStreamAnalyticsInput
+
+
+
+ New-AzureStreamAnalyticsInput
+
+
+
+ Remove-AzureStreamAnalyticsInput
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml
new file mode 100644
index 000000000000..c62f05a2f246
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Microsoft.Azure.Commands.StreamAnalytics.format.ps1xml
@@ -0,0 +1,175 @@
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSJob
+
+
+
+
+
+
+
+ JobName
+
+
+
+ ResourceGroupName
+
+
+
+ JobId
+
+
+
+ Location
+
+
+
+ CreatedDate
+
+
+
+ ProvisioningState
+
+
+
+ JobState
+
+
+
+ Tags
+
+
+
+ PropertiesInJson
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSInput
+
+
+
+
+
+
+
+ Name
+
+
+
+ JobName
+
+
+
+ ResourceGroupName
+
+
+
+ PropertiesInJson
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSOutput
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSOutput
+
+
+
+
+
+
+
+ Name
+
+
+
+ JobName
+
+
+
+ ResourceGroupName
+
+
+
+ PropertiesInJson
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSQuota
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSQuota
+
+
+
+
+
+
+
+ Name
+
+
+
+ Location
+
+
+
+ CurrentCount
+
+
+
+ MaxCount
+
+
+
+
+
+
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSTransformation
+
+ Microsoft.Azure.Commands.StreamAnalytics.Models.PSTransformation
+
+
+
+
+
+
+
+ Name
+
+
+
+ JobName
+
+
+
+ ResourceGroupName
+
+
+
+ PropertiesInJson
+
+
+
+
+
+
+
+
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSInputParameter.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSInputParameter.cs
new file mode 100644
index 000000000000..111c3841649f
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSInputParameter.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class CreatePSInputParameter : JobParametersBase
+ {
+ public string InputName { get; set; }
+
+ public string RawJsonContent { get; set; }
+
+ public bool Force { get; set; }
+
+ public Action ConfirmAction { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSJobParameter.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSJobParameter.cs
new file mode 100644
index 000000000000..258dc06b9718
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSJobParameter.cs
@@ -0,0 +1,27 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class CreatePSJobParameter : JobParametersBase
+ {
+ public string RawJsonContent { get; set; }
+
+ public bool Force { get; set; }
+
+ public Action ConfirmAction { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSOutputParameter.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSOutputParameter.cs
new file mode 100644
index 000000000000..55530987b647
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSOutputParameter.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class CreatePSOutputParameter : JobParametersBase
+ {
+ public string OutputName { get; set; }
+
+ public string RawJsonContent { get; set; }
+
+ public bool Force { get; set; }
+
+ public Action ConfirmAction { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSTransformationParameter.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSTransformationParameter.cs
new file mode 100644
index 000000000000..48d4b872b635
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/CreatePSTransformationParameter.cs
@@ -0,0 +1,29 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class CreatePSTransformationParameter : JobParametersBase
+ {
+ public string TransformationName { get; set; }
+
+ public string RawJsonContent { get; set; }
+
+ public bool Force { get; set; }
+
+ public Action ConfirmAction { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/InputFilterOptions.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/InputFilterOptions.cs
new file mode 100644
index 000000000000..c06ecb6e50d1
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/InputFilterOptions.cs
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class InputFilterOptions
+ {
+ public string Name { get; set; }
+
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobFilterOptions.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobFilterOptions.cs
new file mode 100644
index 000000000000..c097cd272c3a
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobFilterOptions.cs
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class JobFilterOptions
+ {
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+
+ public string PropertiesToExpand { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobParametersBase.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobParametersBase.cs
new file mode 100644
index 000000000000..18eb5530db21
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/JobParametersBase.cs
@@ -0,0 +1,24 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class JobParametersBase
+ {
+ public string ResourceGroupName { get; set; }
+
+ public string JobName { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/OutputFilterOptions.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/OutputFilterOptions.cs
new file mode 100644
index 000000000000..0ab55309dbe5
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/OutputFilterOptions.cs
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class OutputFilterOptions
+ {
+ public string Name { get; set; }
+
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSInput.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSInput.cs
new file mode 100644
index 000000000000..5841ffd65482
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSInput.cs
@@ -0,0 +1,72 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class PSInput
+ {
+ private Input input;
+
+ public PSInput()
+ {
+ input = new Input();
+ }
+
+ public PSInput(Input input)
+ {
+ if (input == null)
+ {
+ throw new ArgumentNullException("input");
+ }
+
+ this.input = input;
+ }
+
+ public string Name
+ {
+ get
+ {
+ return input.Name;
+ }
+ internal set
+ {
+ input.Name = value;
+ }
+ }
+
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+
+ public InputProperties Properties
+ {
+ get
+ {
+ return input.Properties;
+ }
+ internal set
+ {
+ input.Properties = value;
+ }
+ }
+
+ public string PropertiesInJson
+ {
+ get { return input.Properties.ToFormattedString(); }
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSJob.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSJob.cs
new file mode 100644
index 000000000000..dd2dccc52dab
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSJob.cs
@@ -0,0 +1,143 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class PSJob
+ {
+ private Job job;
+
+ public PSJob()
+ {
+ job = new Job();
+ }
+
+ public PSJob(Job job)
+ {
+ if (job == null)
+ {
+ throw new ArgumentNullException("job");
+ }
+
+ this.job = job;
+ }
+
+ public string JobName
+ {
+ get
+ {
+ return job.Name;
+ }
+ set
+ {
+ job.Name = value;
+ }
+ }
+
+ public string ResourceGroupName { get; set; }
+
+ public string JobId
+ {
+ get
+ {
+ return job.Properties.JobId;
+ }
+ internal set
+ {
+ job.Properties.JobId = value;
+ }
+ }
+
+ public string Location
+ {
+ get
+ {
+ return job.Location;
+ }
+ internal set
+ {
+ job.Location = value;
+ }
+ }
+
+ public DateTime? CreatedDate
+ {
+ get
+ {
+ return job.Properties.CreatedDate;
+ }
+ internal set
+ {
+ job.Properties.CreatedDate = value;
+ }
+ }
+
+ public string ProvisioningState
+ {
+ get
+ {
+ return job.Properties.ProvisioningState;
+ }
+ internal set
+ {
+ job.Properties.ProvisioningState = value;
+ }
+ }
+
+ public string JobState
+ {
+ get
+ {
+ return job.Properties.JobState;
+ }
+ internal set
+ {
+ job.Properties.JobState = value;
+ }
+ }
+
+ public IDictionary Tags
+ {
+ get
+ {
+ return job.Tags;
+ }
+ internal set
+ {
+ job.Tags = value;
+ }
+ }
+
+ public JobProperties Properties
+ {
+ get
+ {
+ return job.Properties;
+ }
+ internal set
+ {
+ job.Properties = value;
+ }
+ }
+
+ public string PropertiesInJson
+ {
+ get { return job.Properties.ToFormattedString(); }
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSOutput.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSOutput.cs
new file mode 100644
index 000000000000..4c66a9ebea8b
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSOutput.cs
@@ -0,0 +1,72 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class PSOutput
+ {
+ private Output output;
+
+ public PSOutput()
+ {
+ output = new Output();
+ }
+
+ public PSOutput(Output output)
+ {
+ if (output == null)
+ {
+ throw new ArgumentNullException("output");
+ }
+
+ this.output = output;
+ }
+
+ public string Name
+ {
+ get
+ {
+ return output.Name;
+ }
+ internal set
+ {
+ output.Name = value;
+ }
+ }
+
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+
+ public OutputProperties Properties
+ {
+ get
+ {
+ return output.Properties;
+ }
+ internal set
+ {
+ output.Properties = value;
+ }
+ }
+
+ public string PropertiesInJson
+ {
+ get { return output.Properties.ToFormattedString(); }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSQuota.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSQuota.cs
new file mode 100644
index 000000000000..c34936ae9904
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSQuota.cs
@@ -0,0 +1,89 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class PSQuota
+ {
+ private SubscriptionQuotas subscriptionQuotas;
+
+ public PSQuota()
+ {
+ subscriptionQuotas = new SubscriptionQuotas();
+ }
+
+ public PSQuota(SubscriptionQuotas subscriptionQuotas)
+ {
+ if (subscriptionQuotas == null)
+ {
+ throw new ArgumentNullException("subscriptionQuotas");
+ }
+
+ this.subscriptionQuotas = subscriptionQuotas;
+ }
+
+ public string Name
+ {
+ get
+ {
+ return subscriptionQuotas.Name;
+ }
+ internal set
+ {
+ subscriptionQuotas.Name = value;
+ }
+ }
+
+ public string Location { get; set; }
+
+ public int CurrentCount
+ {
+ get
+ {
+ return subscriptionQuotas.Properties.CurrentCount;
+ }
+ internal set
+ {
+ subscriptionQuotas.Properties.CurrentCount = value;
+ }
+ }
+
+ public int MaxCount
+ {
+ get
+ {
+ return subscriptionQuotas.Properties.MaxCount;
+ }
+ internal set
+ {
+ subscriptionQuotas.Properties.MaxCount = value;
+ }
+ }
+
+ public SubscriptionQuotasProperties Properties
+ {
+ get
+ {
+ return subscriptionQuotas.Properties;
+ }
+ internal set
+ {
+ subscriptionQuotas.Properties = value;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSTransformation.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSTransformation.cs
new file mode 100644
index 000000000000..9f5fd43c31c9
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/PSTransformation.cs
@@ -0,0 +1,72 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public class PSTransformation
+ {
+ private Transformation transformation;
+
+ public PSTransformation()
+ {
+ transformation = new Transformation();
+ }
+
+ public PSTransformation(Transformation transformation)
+ {
+ if (transformation == null)
+ {
+ throw new ArgumentNullException("transformation");
+ }
+
+ this.transformation = transformation;
+ }
+
+ public string Name
+ {
+ get
+ {
+ return transformation.Name;
+ }
+ internal set
+ {
+ transformation.Name = value;
+ }
+ }
+
+ public string JobName { get; set; }
+
+ public string ResourceGroupName { get; set; }
+
+ public TransformationProperties Properties
+ {
+ get
+ {
+ return transformation.Properties;
+ }
+ internal set
+ {
+ transformation.Properties = value;
+ }
+ }
+
+ public string PropertiesInJson
+ {
+ get { return transformation.Properties.ToFormattedString(); }
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Inputs.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Inputs.cs
new file mode 100644
index 000000000000..0796045e8575
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Inputs.cs
@@ -0,0 +1,193 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Net;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+using Microsoft.WindowsAzure;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public virtual PSInput GetInput(string resourceGroupName, string jobName, string name)
+ {
+ var response = StreamAnalyticsManagementClient.Inputs.Get(
+ resourceGroupName, jobName, name);
+
+ return new PSInput(response.Input)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ };
+ }
+
+ public virtual List ListInputs(string resourceGroupName, string jobName)
+ {
+ List inputs = new List();
+
+ var response = StreamAnalyticsManagementClient.Inputs.ListInputInJob(resourceGroupName, jobName);
+
+ if (response != null && response.Value != null)
+ {
+ foreach (var input in response.Value)
+ {
+ inputs.Add(new PSInput(input)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ });
+ }
+ }
+
+ return inputs;
+ }
+
+ public virtual List FilterPSInputs(InputFilterOptions filterOptions)
+ {
+ if (filterOptions == null)
+ {
+ throw new ArgumentNullException("filterOptions");
+ }
+
+ if (string.IsNullOrWhiteSpace(filterOptions.ResourceGroupName))
+ {
+ throw new ArgumentException(Resources.ResourceGroupNameCannotBeEmpty);
+ }
+
+ if (string.IsNullOrWhiteSpace(filterOptions.JobName))
+ {
+ throw new ArgumentException(Resources.JobNameCannotBeEmpty);
+ }
+
+ List inputs = new List();
+
+ if (!string.IsNullOrWhiteSpace(filterOptions.Name))
+ {
+ inputs.Add(GetInput(filterOptions.ResourceGroupName, filterOptions.JobName, filterOptions.Name));
+ }
+ else
+ {
+ inputs.AddRange(ListInputs(filterOptions.ResourceGroupName, filterOptions.JobName));
+ }
+
+ return inputs;
+ }
+
+ protected virtual Input CreateOrUpdatePSInput(string resourceGroupName, string jobName, string inputName, string rawJsonContent)
+ {
+ if (string.IsNullOrWhiteSpace(rawJsonContent))
+ {
+ throw new ArgumentNullException("rawJsonContent");
+ }
+
+ // If create failed, the current behavior is to throw
+ var response = StreamAnalyticsManagementClient.Inputs.CreateOrUpdateWithRawJsonContent(
+ resourceGroupName,
+ jobName,
+ inputName,
+ new InputCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
+
+ return response.Input;
+ }
+
+ public virtual PSInput CreatePSInput(CreatePSInputParameter parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ PSInput input = null;
+ Action createInput = () =>
+ {
+ input = new PSInput(
+ CreateOrUpdatePSInput(parameter.ResourceGroupName,
+ parameter.JobName,
+ parameter.InputName,
+ parameter.RawJsonContent))
+ {
+ ResourceGroupName = parameter.ResourceGroupName,
+ JobName = parameter.JobName
+ };
+ };
+
+ if (parameter.Force)
+ {
+ // If user decides to overwrite anyway, then there is no need to check if the linked service exists or not.
+ createInput();
+ }
+ else
+ {
+ bool inputExists = CheckInputExists(parameter.ResourceGroupName, parameter.JobName, parameter.InputName);
+
+ parameter.ConfirmAction(
+ !inputExists,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.InputExists,
+ parameter.InputName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.InputCreating,
+ parameter.InputName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ parameter.InputName,
+ createInput);
+ }
+
+ return input;
+ }
+
+ public virtual HttpStatusCode RemovePSInput(string resourceGroupName, string jobName, string inputName)
+ {
+ OperationResponse response = StreamAnalyticsManagementClient.Inputs.Delete(resourceGroupName, jobName, inputName);
+
+ return response.StatusCode;
+ }
+
+ public virtual DataSourceTestConnectionResponse TestPSInput(string resourceGroupName, string jobName, string inputName)
+ {
+ return StreamAnalyticsManagementClient.Inputs.TestConnection(resourceGroupName, jobName, inputName);
+ }
+
+ private bool CheckInputExists(string resourceGroupName, string jobName, string inputName)
+ {
+ try
+ {
+ PSInput input = GetInput(resourceGroupName, jobName, inputName);
+ return true;
+ }
+ catch (CloudException e)
+ {
+ //Get throws Exception message with NotFound Status
+ if (e.Response.StatusCode == HttpStatusCode.NotFound)
+ {
+ return false;
+ }
+ else
+ {
+ throw;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Jobs.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Jobs.cs
new file mode 100644
index 000000000000..28b59993a17e
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Jobs.cs
@@ -0,0 +1,245 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Net;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+using Microsoft.WindowsAzure;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public virtual PSJob GetJob(string resourceGroupName, string jobName, string propertiesToExpand)
+ {
+ JobGetParameters parameters = new JobGetParameters(propertiesToExpand);
+ var response = StreamAnalyticsManagementClient.StreamingJobs.Get(
+ resourceGroupName, jobName, parameters);
+
+ return new PSJob(response.Job)
+ {
+ ResourceGroupName = resourceGroupName
+ };
+ }
+
+ public virtual List ListJobs(string resourceGroupName, string propertiesToExpand)
+ {
+ List jobs = new List();
+ JobListParameters parameters = new JobListParameters(propertiesToExpand);
+ var response = StreamAnalyticsManagementClient.StreamingJobs.ListJobsInResourceGroup(resourceGroupName, parameters);
+
+ if (response != null && response.Value != null)
+ {
+ foreach (var job in response.Value)
+ {
+ jobs.Add(new PSJob(job)
+ {
+ ResourceGroupName = resourceGroupName
+ });
+ }
+ }
+
+ return jobs;
+ }
+
+ public virtual List ListJobs(string propertiesToExpand)
+ {
+ List jobs = new List();
+ JobListParameters parameters = new JobListParameters(propertiesToExpand);
+ var response = StreamAnalyticsManagementClient.StreamingJobs.ListJobsInSubscription(parameters);
+
+ if (response != null && response.Value != null)
+ {
+ foreach (var job in response.Value)
+ {
+ jobs.Add(new PSJob(job)
+ {
+ ResourceGroupName = StreamAnalyticsCommonUtilities.ExtractResourceGroupFromId(job.Id)
+ });
+ }
+ }
+
+ return jobs;
+ }
+
+ public virtual List FilterPSJobs(JobFilterOptions filterOptions)
+ {
+ if (filterOptions == null)
+ {
+ throw new ArgumentNullException("filterOptions");
+ }
+
+ List jobs = new List();
+
+ if (!string.IsNullOrWhiteSpace(filterOptions.JobName))
+ {
+ if (string.IsNullOrWhiteSpace(filterOptions.ResourceGroupName))
+ {
+ throw new ArgumentException(Resources.ResourceGroupNameCannotBeEmpty);
+ }
+
+ jobs.Add(GetJob(filterOptions.ResourceGroupName, filterOptions.JobName,
+ filterOptions.PropertiesToExpand));
+ }
+ else if (!string.IsNullOrWhiteSpace(filterOptions.ResourceGroupName))
+ {
+ jobs.AddRange(ListJobs(filterOptions.ResourceGroupName, filterOptions.PropertiesToExpand));
+ }
+ else
+ {
+ jobs.AddRange(ListJobs(filterOptions.PropertiesToExpand));
+ }
+
+ return jobs;
+ }
+
+ public virtual PSJob CreateOrUpdatePSJob(string resourceGroupName, string jobName, string rawJsonContent)
+ {
+ if (string.IsNullOrWhiteSpace(rawJsonContent))
+ {
+ throw new ArgumentNullException("rawJsonContent");
+ }
+
+ // If create failed, the current behavior is to throw
+ var response =
+ StreamAnalyticsManagementClient.StreamingJobs.CreateOrUpdateWithRawJsonContent(
+ resourceGroupName,
+ jobName,
+ new JobCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
+
+ return new PSJob(response.Job)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ };
+ }
+
+ public virtual PSJob CreatePSJob(CreatePSJobParameter parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ PSJob job = null;
+ Action createJob = () =>
+ {
+ job = CreateOrUpdatePSJob(parameter.ResourceGroupName, parameter.JobName, parameter.RawJsonContent);
+ };
+
+ if (parameter.Force)
+ {
+ // If user decides to overwrite anyway, then there is no need to check if the linked service exists or not.
+ createJob();
+ }
+ else
+ {
+ bool jobExists = CheckJobExists(parameter.ResourceGroupName, parameter.JobName);
+
+ parameter.ConfirmAction(
+ !jobExists,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.JobExists,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.JobCreating,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ parameter.JobName,
+ createJob);
+ }
+
+ return job;
+ }
+
+ public virtual HttpStatusCode StartPSJob(string resourceGroupName, string jobName)
+ {
+ OperationResponse response = StreamAnalyticsManagementClient.StreamingJobs.Start(resourceGroupName, jobName);
+
+ return response.StatusCode;
+ }
+
+ public virtual HttpStatusCode StartPSJob(JobParametersBase parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ return StartPSJob(parameter.ResourceGroupName, parameter.JobName);
+ }
+
+ public virtual HttpStatusCode StopPSJob(string resourceGroupName, string jobName)
+ {
+ OperationResponse response = StreamAnalyticsManagementClient.StreamingJobs.Stop(resourceGroupName, jobName);
+
+ return response.StatusCode;
+ }
+
+ public virtual HttpStatusCode StopPSJob(JobParametersBase parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ return StopPSJob(parameter.ResourceGroupName, parameter.JobName);
+ }
+
+ public virtual HttpStatusCode RemovePSJob(string resourceGroupName, string jobName)
+ {
+ OperationResponse response = StreamAnalyticsManagementClient.StreamingJobs.Delete(resourceGroupName, jobName);
+
+ return response.StatusCode;
+ }
+
+ public virtual HttpStatusCode RemovePSJob(JobParametersBase parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ return RemovePSJob(parameter.ResourceGroupName, parameter.JobName);
+ }
+
+ private bool CheckJobExists(string resourceGroupName, string jobName)
+ {
+ try
+ {
+ PSJob job = GetJob(resourceGroupName, jobName, string.Empty);
+ return true;
+ }
+ catch (CloudException e)
+ {
+ //Get throws Exception message with NotFound Status
+ if (e.Response.StatusCode == HttpStatusCode.NotFound)
+ {
+ return false;
+ }
+ else
+ {
+ throw;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Outputs.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Outputs.cs
new file mode 100644
index 000000000000..e313e21254cc
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Outputs.cs
@@ -0,0 +1,193 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Net;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+using Microsoft.WindowsAzure;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public virtual PSOutput GetOutput(string resourceGroupName, string jobName, string name)
+ {
+ var response = StreamAnalyticsManagementClient.Outputs.Get(
+ resourceGroupName, jobName, name);
+
+ return new PSOutput(response.Output)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ };
+ }
+
+ public virtual List ListOutputs(string resourceGroupName, string jobName)
+ {
+ List outputs = new List();
+
+ var response = StreamAnalyticsManagementClient.Outputs.ListOutputInJob(resourceGroupName, jobName);
+
+ if (response != null && response.Value != null)
+ {
+ foreach (var output in response.Value)
+ {
+ outputs.Add(new PSOutput(output)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ });
+ }
+ }
+
+ return outputs;
+ }
+
+ public virtual List FilterPSOutputs(OutputFilterOptions filterOptions)
+ {
+ if (filterOptions == null)
+ {
+ throw new ArgumentNullException("filterOptions");
+ }
+
+ if (string.IsNullOrWhiteSpace(filterOptions.ResourceGroupName))
+ {
+ throw new ArgumentException(Resources.ResourceGroupNameCannotBeEmpty);
+ }
+
+ if (string.IsNullOrWhiteSpace(filterOptions.JobName))
+ {
+ throw new ArgumentException(Resources.JobNameCannotBeEmpty);
+ }
+
+ List outputs = new List();
+
+ if (!string.IsNullOrWhiteSpace(filterOptions.Name))
+ {
+ outputs.Add(GetOutput(filterOptions.ResourceGroupName, filterOptions.JobName, filterOptions.Name));
+ }
+ else
+ {
+ outputs.AddRange(ListOutputs(filterOptions.ResourceGroupName, filterOptions.JobName));
+ }
+
+ return outputs;
+ }
+
+ protected virtual Output CreateOrUpdatePSOutput(string resourceGroupName, string jobName, string outputName, string rawJsonContent)
+ {
+ if (string.IsNullOrWhiteSpace(rawJsonContent))
+ {
+ throw new ArgumentNullException("rawJsonContent");
+ }
+
+ // If create failed, the current behavior is to throw
+ var response = StreamAnalyticsManagementClient.Outputs.CreateOrUpdateWithRawJsonContent(
+ resourceGroupName,
+ jobName,
+ outputName,
+ new OutputCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
+
+ return response.Output;
+ }
+
+ public virtual PSOutput CreatePSOutput(CreatePSOutputParameter parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ PSOutput output = null;
+ Action createOutput = () =>
+ {
+ output =
+ new PSOutput(CreateOrUpdatePSOutput(parameter.ResourceGroupName,
+ parameter.JobName,
+ parameter.OutputName,
+ parameter.RawJsonContent))
+ {
+ ResourceGroupName = parameter.ResourceGroupName,
+ JobName = parameter.JobName
+ };
+ };
+
+ if (parameter.Force)
+ {
+ // If user decides to overwrite anyway, then there is no need to check if the linked service exists or not.
+ createOutput();
+ }
+ else
+ {
+ bool outputExists = CheckOutputExists(parameter.ResourceGroupName, parameter.JobName, parameter.OutputName);
+
+ parameter.ConfirmAction(
+ !outputExists,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.OutputExists,
+ parameter.OutputName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.OutputCreating,
+ parameter.OutputName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ parameter.OutputName,
+ createOutput);
+ }
+
+ return output;
+ }
+
+ public virtual HttpStatusCode RemovePSOutput(string resourceGroupName, string jobName, string outputName)
+ {
+ OperationResponse response = StreamAnalyticsManagementClient.Outputs.Delete(resourceGroupName, jobName, outputName);
+
+ return response.StatusCode;
+ }
+
+ public virtual DataSourceTestConnectionResponse TestPSOutput(string resourceGroupName, string jobName, string outputName)
+ {
+ return StreamAnalyticsManagementClient.Outputs.TestConnection(resourceGroupName, jobName, outputName);
+ }
+
+ private bool CheckOutputExists(string resourceGroupName, string jobName, string outputName)
+ {
+ try
+ {
+ PSOutput output = GetOutput(resourceGroupName, jobName, outputName);
+ return true;
+ }
+ catch (CloudException e)
+ {
+ //Get throws Exception message with NotFound Status
+ if (e.Response.StatusCode == HttpStatusCode.NotFound)
+ {
+ return false;
+ }
+ else
+ {
+ throw;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.SubscriptionQuotas.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.SubscriptionQuotas.cs
new file mode 100644
index 000000000000..4d59cf11aa1d
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.SubscriptionQuotas.cs
@@ -0,0 +1,41 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using Microsoft.Azure.Management.StreamAnalytics;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public virtual List GetQuotas(string location)
+ {
+ List quotas = new List();
+ var response = StreamAnalyticsManagementClient.Subscriptions.GetQuotas(location);
+
+ if (response != null && response.Value != null)
+ {
+ foreach (var quota in response.Value)
+ {
+ quotas.Add(new PSQuota(quota)
+ {
+ Location = location
+ });
+ }
+ }
+
+ return quotas;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Transformation.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Transformation.cs
new file mode 100644
index 000000000000..ce08eca5de0d
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.Transformation.cs
@@ -0,0 +1,127 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Net;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+using Microsoft.WindowsAzure;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public virtual PSTransformation GetTransformation(string resourceGroupName, string jobName, string transformationName)
+ {
+ var response = StreamAnalyticsManagementClient.Transformations.Get(resourceGroupName, jobName, transformationName);
+
+ return new PSTransformation(response.Transformation)
+ {
+ ResourceGroupName = resourceGroupName,
+ JobName = jobName
+ };
+ }
+
+ protected virtual Transformation CreateOrUpdatePSTransformation(string resourceGroupName, string jobName, string transformationName, string rawJsonContent)
+ {
+ if (string.IsNullOrWhiteSpace(rawJsonContent))
+ {
+ throw new ArgumentNullException("rawJsonContent");
+ }
+
+ // If create failed, the current behavior is to throw
+ var response = StreamAnalyticsManagementClient.Transformations.CreateOrUpdateWithRawJsonContent(
+ resourceGroupName,
+ jobName,
+ transformationName,
+ new TransformationCreateOrUpdateWithRawJsonContentParameters() { Content = rawJsonContent });
+
+ return response.Transformation;
+ }
+
+ public virtual PSTransformation CreatePSTransformation(CreatePSTransformationParameter parameter)
+ {
+ if (parameter == null)
+ {
+ throw new ArgumentNullException("parameter");
+ }
+
+ PSTransformation transformation = null;
+ Action createTransformation = () =>
+ {
+ transformation =
+ new PSTransformation(CreateOrUpdatePSTransformation(parameter.ResourceGroupName,
+ parameter.JobName,
+ parameter.TransformationName,
+ parameter.RawJsonContent))
+ {
+ ResourceGroupName = parameter.ResourceGroupName,
+ JobName = parameter.JobName
+ };
+ };
+
+ if (parameter.Force)
+ {
+ // If user decides to overwrite anyway, then there is no need to check if the linked service exists or not.
+ createTransformation();
+ }
+ else
+ {
+ bool transformationExists = CheckTransformationExists(parameter.ResourceGroupName, parameter.JobName, parameter.TransformationName);
+
+ parameter.ConfirmAction(
+ !transformationExists,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.TransformationExists,
+ parameter.TransformationName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.TransformationCreating,
+ parameter.TransformationName,
+ parameter.JobName,
+ parameter.ResourceGroupName),
+ parameter.TransformationName,
+ createTransformation);
+ }
+
+ return transformation;
+ }
+
+ private bool CheckTransformationExists(string resourceGroupName, string jobName, string transformationName)
+ {
+ try
+ {
+ PSTransformation transformation = GetTransformation(resourceGroupName, jobName, transformationName);
+ return true;
+ }
+ catch (CloudException e)
+ {
+ //Get throws Exception message with NotFound Status
+ if (e.Response.StatusCode == HttpStatusCode.NotFound)
+ {
+ return false;
+ }
+ else
+ {
+ throw;
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.cs
new file mode 100644
index 000000000000..1cfb6e5bc089
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClient.cs
@@ -0,0 +1,52 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.IO;
+using Microsoft.Azure.Management.StreamAnalytics;
+using Microsoft.WindowsAzure.Commands.Common;
+using Microsoft.WindowsAzure.Commands.Common.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Models
+{
+ public partial class StreamAnalyticsClient
+ {
+ public IStreamAnalyticsManagementClient StreamAnalyticsManagementClient { get; private set; }
+
+ public StreamAnalyticsClient(AzureContext context)
+ {
+ StreamAnalyticsManagementClient = AzureSession.ClientFactory.CreateClient(
+ context, AzureEnvironment.Endpoint.ResourceManager);
+ }
+
+ ///
+ /// Parameterless constructor for Mocking.
+ ///
+ public StreamAnalyticsClient()
+ {
+ }
+
+ public virtual string ReadJsonFileContent(string path)
+ {
+ if (!File.Exists(path))
+ {
+ throw new FileNotFoundException(path);
+ }
+
+ using (TextReader reader = new StreamReader(path))
+ {
+ return reader.ReadToEnd();
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClientExtensions.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClientExtensions.cs
new file mode 100644
index 000000000000..44b47d390293
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Models/StreamAnalyticsClientExtensions.cs
@@ -0,0 +1,32 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+using Newtonsoft.Json;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ internal static class StreamAnalyticsClientExtensions
+ {
+ public static string ToFormattedString(this JobProperties properties)
+ {
+ return JsonConvert.SerializeObject(properties, Formatting.Indented);
+ }
+
+ public static string ToFormattedString(this T objectToSerialize)
+ {
+ return JsonConvert.SerializeObject(objectToSerialize, Formatting.Indented);
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/GetAzureStreamAnalyticsOutputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/GetAzureStreamAnalyticsOutputCommand.cs
new file mode 100644
index 000000000000..359f09a44969
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/GetAzureStreamAnalyticsOutputCommand.cs
@@ -0,0 +1,61 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Get, Constants.StreamAnalyticsOutput), OutputType(typeof(List), typeof(PSOutput))]
+ public class GetAzureStreamAnalyticsOutputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics output name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name == null || string.IsNullOrWhiteSpace(Name))
+ {
+ Name = string.Empty;
+ }
+
+ OutputFilterOptions filterOptions = new OutputFilterOptions()
+ {
+ Name = Name,
+ JobName = JobName,
+ ResourceGroupName = ResourceGroupName
+ };
+
+ WriteObject(StreamAnalyticsClient.FilterPSOutputs(filterOptions), true);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/NewAzureStreamAnalyticsOutputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/NewAzureStreamAnalyticsOutputCommand.cs
new file mode 100644
index 000000000000..3e23cdc197e5
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/NewAzureStreamAnalyticsOutputCommand.cs
@@ -0,0 +1,67 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.New, Constants.StreamAnalyticsOutput), OutputType(typeof(PSOutput))]
+ public class NewAzureStreamAnalyticsOutputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics output name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 3, Mandatory = true, HelpMessage = "The stream analytics output JSON file path.")]
+ [ValidateNotNullOrEmpty]
+ public string File { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ string rawJsonContent = StreamAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(File));
+
+ Name = ResolveResourceName(rawJsonContent, Name, "Output");
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new ArgumentException(Resources.OutputNameCannotBeEmpty);
+ }
+
+ CreatePSOutputParameter parameter = new CreatePSOutputParameter
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = JobName,
+ OutputName = Name,
+ RawJsonContent = rawJsonContent,
+ Force = Force.IsPresent,
+ ConfirmAction = ConfirmAction
+ };
+
+ WriteObject(StreamAnalyticsClient.CreatePSOutput(parameter));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/RemoveAzureStreamAnalyticsOutputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/RemoveAzureStreamAnalyticsOutputCommand.cs
new file mode 100644
index 000000000000..debefdbd8ac5
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/RemoveAzureStreamAnalyticsOutputCommand.cs
@@ -0,0 +1,86 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Remove, Constants.StreamAnalyticsOutput)]
+ public class RemoveAzureStreamAnalyticsOutputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics output name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new PSArgumentNullException("Name");
+ }
+
+ this.ConfirmAction(
+ this.Force.IsPresent,
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.OutputRemovalConfirmationMessage,
+ this.Name,
+ this.JobName,
+ this.ResourceGroupName),
+ string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.OutputRemoving,
+ this.Name,
+ this.JobName,
+ this.ResourceGroupName),
+ this.Name,
+ this.ExecuteDelete);
+ }
+
+ private void ExecuteDelete()
+ {
+ HttpStatusCode statusCode = StreamAnalyticsClient.RemovePSOutput(ResourceGroupName, JobName, Name);
+ if (statusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.OutputNotFound, Name, JobName, ResourceGroupName));
+ }
+ else
+ {
+ WriteObject(true);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/TestAzureStreamAnalyticsOutputCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/TestAzureStreamAnalyticsOutputCommand.cs
new file mode 100644
index 000000000000..0167bb6182d0
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Output/TestAzureStreamAnalyticsOutputCommand.cs
@@ -0,0 +1,90 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using System.Management.Automation;
+using System.Net;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.Azure.Management.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsDiagnostic.Test, Constants.StreamAnalyticsOutput)]
+ public class TestAzureStreamAnalyticsOutputCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics output name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new PSArgumentNullException("Name");
+ }
+
+ try
+ {
+ DataSourceTestConnectionResponse response = StreamAnalyticsClient.TestPSOutput(ResourceGroupName, JobName, Name);
+ if (response.StatusCode == HttpStatusCode.OK && response.DataSourceTestStatus == DataSourceTestStatus.TestSucceeded)
+ {
+ WriteObject(true);
+ }
+ else if (response.StatusCode == HttpStatusCode.NoContent)
+ {
+ WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.OutputNotFound, Name, JobName, ResourceGroupName));
+ }
+ else
+ {
+ string errorId = null;
+ string errorMessage = null;
+ string innerErrorMessage = null;
+ if (response.Error != null)
+ {
+ errorId = response.Error.Code;
+ errorMessage = response.Error.Message;
+ if (response.Error.Details != null)
+ {
+ innerErrorMessage = response.Error.Details.Message;
+ }
+ }
+
+ Exception ex = new Exception(errorMessage, new Exception(innerErrorMessage));
+ WriteError(new ErrorRecord(ex, errorId, ErrorCategory.ConnectionError, null));
+ }
+ }
+ catch
+ {
+ WriteObject(false);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..ab2f34f6f059
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/AssemblyInfo.cs
@@ -0,0 +1,34 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Microsoft Azure Powershell - StreamAnalytics Manager")]
+[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
+[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(false)]
+[assembly: Guid("9188beb8-68c3-404a-91e2-6f287f162a52")]
+[assembly: AssemblyVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyVersion)]
+[assembly: AssemblyFileVersion(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyFileVersion)]
+#if SIGN
+[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.StreamAnalytics.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
+#else
+[assembly: InternalsVisibleTo("Microsoft.Azure.Commands.StreamAnalytics.Test")]
+#endif
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.Designer.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.Designer.cs
new file mode 100644
index 000000000000..79d596b5724f
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.Designer.cs
@@ -0,0 +1,309 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.34014
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Microsoft.Azure.Commands.StreamAnalytics.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.Azure.Commands.StreamAnalytics.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to {0} name provided using -Name: '{1}' in cmdlet doesn't match with {0} name: '{2}' in JSON file. {0} will be created with name: '{1}'.
+ ///
+ internal static string ExtractedNameFromJsonMismatchWarning {
+ get {
+ return ResourceManager.GetString("ExtractedNameFromJsonMismatchWarning", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to HTTP Status Code: {0}
+ ///Error Code: {1}
+ ///Error Message: {2}
+ ///Request Id: {3}
+ ///Timestamp (Utc):{4}.
+ ///
+ internal static string FormattedCloudExceptionMessageTemplate {
+ get {
+ return ResourceManager.GetString("FormattedCloudExceptionMessageTemplate", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating input '{0}' in stream analytics job '{1}' in resource group '{2}'..
+ ///
+ internal static string InputCreating {
+ get {
+ return ResourceManager.GetString("InputCreating", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to An input with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+ ///Continuing execution may overwrite the exisiting one.
+ ///Are you sure you want to continue?.
+ ///
+ internal static string InputExists {
+ get {
+ return ResourceManager.GetString("InputExists", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Stream analytics input name cannot be null..
+ ///
+ internal static string InputNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("InputNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Input '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'..
+ ///
+ internal static string InputNotFound {
+ get {
+ return ResourceManager.GetString("InputNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove the input '{0}' in the stream analytics job '{1}' in the resource group '{2}'?.
+ ///
+ internal static string InputRemovalConfirmationMessage {
+ get {
+ return ResourceManager.GetString("InputRemovalConfirmationMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Removing the input '{0}' in the stream analytics job '{1}' in the resource group '{2}'..
+ ///
+ internal static string InputRemoving {
+ get {
+ return ResourceManager.GetString("InputRemoving", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Failed to parse input JSON file. '{0}'. Please correct the error in the JSON file and try again..
+ ///
+ internal static string InvalidJson {
+ get {
+ return ResourceManager.GetString("InvalidJson", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating stream analytics job '{0}' in resource group '{1}'..
+ ///
+ internal static string JobCreating {
+ get {
+ return ResourceManager.GetString("JobCreating", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to A stream analytics job with the name '{0}' in the resource group '{1}' already exists.
+ ///Continuing execution may overwrite the exisiting one.
+ ///Are you sure you want to continue?.
+ ///
+ internal static string JobExists {
+ get {
+ return ResourceManager.GetString("JobExists", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Stream analytics job name cannot be null..
+ ///
+ internal static string JobNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("JobNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Job '{0}' does not exist in the resource group '{1}'..
+ ///
+ internal static string JobNotFound {
+ get {
+ return ResourceManager.GetString("JobNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove the stream analytics job '{0}' in the resource group '{1}'?.
+ ///
+ internal static string JobRemovalConfirmationMessage {
+ get {
+ return ResourceManager.GetString("JobRemovalConfirmationMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Removing the stream analytics '{0}' in the resource group '{1}'..
+ ///
+ internal static string JobRemoving {
+ get {
+ return ResourceManager.GetString("JobRemoving", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating output '{0}' in stream analytics job '{1}' in resource group '{2}'..
+ ///
+ internal static string OutputCreating {
+ get {
+ return ResourceManager.GetString("OutputCreating", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to An output with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+ ///Continuing execution may overwrite the exisiting one.
+ ///Are you sure you want to continue?.
+ ///
+ internal static string OutputExists {
+ get {
+ return ResourceManager.GetString("OutputExists", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Stream analytics output name cannot be null..
+ ///
+ internal static string OutputNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("OutputNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Output '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'..
+ ///
+ internal static string OutputNotFound {
+ get {
+ return ResourceManager.GetString("OutputNotFound", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Are you sure you want to remove the output '{0}' in the stream analytics job '{1}' in the resource group '{2}'?.
+ ///
+ internal static string OutputRemovalConfirmationMessage {
+ get {
+ return ResourceManager.GetString("OutputRemovalConfirmationMessage", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Removing the output '{0}' in the stream analytics job '{1}' in the resource group '{2}'..
+ ///
+ internal static string OutputRemoving {
+ get {
+ return ResourceManager.GetString("OutputRemoving", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Resource group name cannot be null..
+ ///
+ internal static string ResourceGroupNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("ResourceGroupNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Creating transformation '{0}' in stream analytics job '{1}' in resource group '{2}'..
+ ///
+ internal static string TransformationCreating {
+ get {
+ return ResourceManager.GetString("TransformationCreating", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to An transformation with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+ ///Continuing execution may overwrite the exisiting one.
+ ///Are you sure you want to continue?.
+ ///
+ internal static string TransformationExists {
+ get {
+ return ResourceManager.GetString("TransformationExists", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Stream analytics transformation name cannot be null..
+ ///
+ internal static string TransformationNameCannotBeEmpty {
+ get {
+ return ResourceManager.GetString("TransformationNameCannotBeEmpty", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Transformation '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'..
+ ///
+ internal static string TransformationNotFound {
+ get {
+ return ResourceManager.GetString("TransformationNotFound", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.resx b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.resx
new file mode 100644
index 000000000000..f7637177f9b0
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Properties/Resources.resx
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 1.3
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ HTTP Status Code: {0}
+Error Code: {1}
+Error Message: {2}
+Request Id: {3}
+Timestamp (Utc):{4}
+
+
+ Resource group name cannot be null.
+
+
+ Stream analytics job name cannot be null.
+
+
+ Stream analytics input name cannot be null.
+
+
+ Stream analytics output name cannot be null.
+
+
+ Stream analytics transformation name cannot be null.
+
+
+ Failed to parse input JSON file. '{0}'. Please correct the error in the JSON file and try again.
+
+
+ {0} name provided using -Name: '{1}' in cmdlet doesn't match with {0} name: '{2}' in JSON file. {0} will be created with name: '{1}'
+
+
+ A stream analytics job with the name '{0}' in the resource group '{1}' already exists.
+Continuing execution may overwrite the exisiting one.
+Are you sure you want to continue?
+
+
+ An input with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+Continuing execution may overwrite the exisiting one.
+Are you sure you want to continue?
+
+
+ An output with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+Continuing execution may overwrite the exisiting one.
+Are you sure you want to continue?
+
+
+ An transformation with the name '{0}' in the stream analytics job '{1}' in the resource group '{2}' already exists.
+Continuing execution may overwrite the exisiting one.
+Are you sure you want to continue?
+
+
+ Creating stream analytics job '{0}' in resource group '{1}'.
+
+
+ Creating input '{0}' in stream analytics job '{1}' in resource group '{2}'.
+
+
+ Creating output '{0}' in stream analytics job '{1}' in resource group '{2}'.
+
+
+ Creating transformation '{0}' in stream analytics job '{1}' in resource group '{2}'.
+
+
+ Job '{0}' does not exist in the resource group '{1}'.
+
+
+ Input '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'.
+
+
+ Output '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'.
+
+
+ Transformation '{0}' does not exist in the stream analytics job '{1}' in the resource group '{2}'.
+
+
+ Are you sure you want to remove the stream analytics job '{0}' in the resource group '{1}'?
+
+
+ Removing the stream analytics '{0}' in the resource group '{1}'.
+
+
+ Are you sure you want to remove the input '{0}' in the stream analytics job '{1}' in the resource group '{2}'?
+
+
+ Removing the input '{0}' in the stream analytics job '{1}' in the resource group '{2}'.
+
+
+ Are you sure you want to remove the output '{0}' in the stream analytics job '{1}' in the resource group '{2}'?
+
+
+ Removing the output '{0}' in the stream analytics job '{1}' in the resource group '{2}'.
+
+
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsBaseCmdlet.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsBaseCmdlet.cs
new file mode 100644
index 000000000000..74691bf92359
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsBaseCmdlet.cs
@@ -0,0 +1,82 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Globalization;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ public abstract class StreamAnalyticsBaseCmdlet : AzurePSCmdlet
+ {
+ private StreamAnalyticsClient streamAnalyticsClient;
+
+ protected const string StreamAnalyticsObjectsInSubscription = "For stream analytics objects in the given subscription";
+ protected const string StreamAnalyticsObjectsInResourceGroup = "For stream analytics objects in the given resource group";
+
+ internal StreamAnalyticsClient StreamAnalyticsClient
+ {
+ get
+ {
+ if (this.streamAnalyticsClient == null)
+ {
+ this.streamAnalyticsClient = new StreamAnalyticsClient(CurrentContext);
+ }
+ return this.streamAnalyticsClient;
+ }
+ set
+ {
+ this.streamAnalyticsClient = value;
+ }
+ }
+
+ protected override void WriteExceptionError(Exception exception)
+ {
+ // Override the default error message into a formatted message which contains Request Id
+ CloudException cloudException = exception as CloudException;
+ if (cloudException != null)
+ {
+ exception = cloudException.CreateFormattedException();
+ }
+
+ base.WriteExceptionError(exception);
+ }
+
+ protected string ResolveResourceName(string rawJsonContent, string nameFromCmdletContext, string resourceType)
+ {
+ string nameExtractedFromJson = StreamAnalyticsCommonUtilities.ExtractNameFromJson(rawJsonContent);
+
+ // Read the name from the JSON content if user didn't provide name with -Name parameter
+ string resolvedResourceName = string.IsNullOrWhiteSpace(nameFromCmdletContext)
+ ? nameExtractedFromJson
+ : nameFromCmdletContext;
+
+ // Show a message that if name from json is not null or empty and names do not match, name specified with -Name parameter will be used.
+ if (!string.IsNullOrEmpty(nameExtractedFromJson) && string.Compare(resolvedResourceName, nameExtractedFromJson, StringComparison.OrdinalIgnoreCase) != 0)
+ {
+ WriteVerbose(string.Format(
+ CultureInfo.InvariantCulture,
+ Resources.ExtractedNameFromJsonMismatchWarning,
+ resourceType,
+ resolvedResourceName,
+ nameExtractedFromJson));
+ }
+
+ return resolvedResourceName;
+ }
+ }
+}
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsCommonUtilities.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsCommonUtilities.cs
new file mode 100644
index 000000000000..0624910d9c44
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsCommonUtilities.cs
@@ -0,0 +1,132 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Linq;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+using Newtonsoft.Json;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ public static class StreamAnalyticsCommonUtilities
+ {
+ public static string ExtractNameFromJson(string jsonText)
+ {
+ Dictionary jsonKeyValuePairs;
+
+ try
+ {
+ jsonKeyValuePairs = JsonUtilities.DeserializeJson(jsonText, true);
+ }
+ catch (Exception exception)
+ {
+ throw new JsonSerializationException(string.Format(CultureInfo.InvariantCulture, Resources.InvalidJson, exception.Message));
+ }
+
+ const string NameTagInJson = "Name";
+
+ foreach (var key in jsonKeyValuePairs.Keys)
+ {
+ if (string.Compare(NameTagInJson, key, StringComparison.OrdinalIgnoreCase) == 0)
+ {
+ return (string)jsonKeyValuePairs[key];
+ }
+ }
+
+ return string.Empty;
+ }
+
+ public static Dictionary ExtractTagsFromJson(string jsonText)
+ {
+ Dictionary jsonKeyValuePairs = JsonUtilities.DeserializeJson(jsonText);
+ const string TagsKeyInJson = "tags";
+
+ foreach (var key in jsonKeyValuePairs.Keys)
+ {
+ if (string.Compare(TagsKeyInJson, key, StringComparison.OrdinalIgnoreCase) == 0)
+ {
+ var tags = (jsonKeyValuePairs[key] as Dictionary).ToDictionary(
+ p => p.Key,
+ p => (string)p.Value);
+
+ return tags;
+ }
+ }
+
+ return null;
+ }
+
+ public static Dictionary ToDictionary(this Hashtable hashTable)
+ {
+ return hashTable.Cast().ToDictionary(kvp => kvp.Key.ToString(), kvp => kvp.Value.ToString());
+ }
+
+ public static bool TagsAreEqual(IDictionary first, IDictionary second)
+ {
+ bool equal = false;
+ if (first.Count == second.Count)
+ {
+ equal = true;
+ foreach (var pair in first)
+ {
+ string value;
+ if (second.TryGetValue(pair.Key, out value))
+ {
+ if (!value.Equals(pair.Value))
+ {
+ equal = false;
+ break;
+ }
+ }
+ else
+ {
+ // Require key be present.
+ equal = false;
+ break;
+ }
+ }
+ }
+
+ return equal;
+ }
+
+ public static string ExtractResourceGroupFromId(string jobCSMId)
+ {
+ if (string.IsNullOrWhiteSpace(jobCSMId))
+ {
+ throw new ArgumentNullException("jobCSMId");
+ }
+
+ int startIndex = jobCSMId.IndexOf("/resourceGroups/", StringComparison.OrdinalIgnoreCase);
+ if (startIndex < 0)
+ {
+ throw new ArgumentException("id must contain \"/resourceGroups/\"", "jobCSMId");
+ }
+
+ startIndex += "/resourceGroups/".Length;
+
+ int endIndex = jobCSMId.IndexOf("/", startIndex, StringComparison.OrdinalIgnoreCase);
+ if (endIndex < 0)
+ {
+ throw new ArgumentException("id must contain \"/\" after \"/resourceGroups/\"", "jobCSMId");
+ }
+
+ return jobCSMId.Substring(startIndex, endIndex - startIndex);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsResourceProviderBaseCmdlet.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsResourceProviderBaseCmdlet.cs
new file mode 100644
index 000000000000..9c7ab9f957d2
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/StreamAnalyticsResourceProviderBaseCmdlet.cs
@@ -0,0 +1,25 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Management.Automation;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ public abstract class StreamAnalyticsResourceProviderBaseCmdlet : StreamAnalyticsBaseCmdlet
+ {
+ [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The resource group name.")]
+ [ValidateNotNullOrEmpty]
+ public string ResourceGroupName { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Subscription/GetAzureStreamAnalyticsQuotasCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Subscription/GetAzureStreamAnalyticsQuotasCommand.cs
new file mode 100644
index 000000000000..a98bcd5a7e23
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Subscription/GetAzureStreamAnalyticsQuotasCommand.cs
@@ -0,0 +1,40 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Get, Constants.StreamAnalyticsQuota), OutputType(typeof(List), typeof(PSQuota))]
+ public class GetAzureStreamAnalyticsQuotasCommand : StreamAnalyticsBaseCmdlet
+ {
+ [Parameter(Position = 0, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The location of the azure stream analytics quota.")]
+ [ValidateNotNullOrEmpty]
+ public string Location { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (Location != null && string.IsNullOrWhiteSpace(Location))
+ {
+ throw new PSArgumentNullException("Location");
+ }
+
+ WriteObject(StreamAnalyticsClient.GetQuotas(Location), true);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/GetAzureStreamAnalyticsTransformationCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/GetAzureStreamAnalyticsTransformationCommand.cs
new file mode 100644
index 000000000000..032d0cda2c61
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/GetAzureStreamAnalyticsTransformationCommand.cs
@@ -0,0 +1,54 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System.Collections.Generic;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.Get, Constants.StreamAnalyticsTransformation), OutputType(typeof(List), typeof(PSTransformation))]
+ public class GetAzureStreamAnalyticsTransformationCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The azure stream analytics transformation name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ if (ResourceGroupName != null && string.IsNullOrWhiteSpace(ResourceGroupName))
+ {
+ throw new PSArgumentNullException("ResourceGroupName");
+ }
+
+ if (JobName != null && string.IsNullOrWhiteSpace(JobName))
+ {
+ throw new PSArgumentNullException("JobName");
+ }
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new PSArgumentNullException("Name");
+ }
+
+ WriteObject(StreamAnalyticsClient.GetTransformation(ResourceGroupName, JobName, Name));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/NewAzureStreamAnalyticsTransformationCommand.cs b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/NewAzureStreamAnalyticsTransformationCommand.cs
new file mode 100644
index 000000000000..2e6018278b22
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/Transformation/NewAzureStreamAnalyticsTransformationCommand.cs
@@ -0,0 +1,67 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Management.Automation;
+using System.Security.Permissions;
+using Microsoft.Azure.Commands.StreamAnalytics.Models;
+using Microsoft.Azure.Commands.StreamAnalytics.Properties;
+using Microsoft.WindowsAzure.Commands.Utilities.Common;
+
+namespace Microsoft.Azure.Commands.StreamAnalytics
+{
+ [Cmdlet(VerbsCommon.New, Constants.StreamAnalyticsTransformation), OutputType(typeof(PSTransformation))]
+ public class NewAzureStreamAnalyticsTransformationCommand : StreamAnalyticsResourceProviderBaseCmdlet
+ {
+ [Parameter(Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics job name.")]
+ [ValidateNotNullOrEmpty]
+ public string JobName { get; set; }
+
+ [Parameter(Position = 2, Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "The stream analytics transformation name.")]
+ [ValidateNotNullOrEmpty]
+ public string Name { get; set; }
+
+ [Parameter(Position = 3, Mandatory = true, HelpMessage = "The stream analytics transformation JSON file path.")]
+ [ValidateNotNullOrEmpty]
+ public string File { get; set; }
+
+ [Parameter(Mandatory = false, HelpMessage = "Don't ask for confirmation.")]
+ public SwitchParameter Force { get; set; }
+
+ [EnvironmentPermission(SecurityAction.Demand, Unrestricted = true)]
+ public override void ExecuteCmdlet()
+ {
+ string rawJsonContent = StreamAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(File));
+
+ Name = ResolveResourceName(rawJsonContent, Name, "Transformation");
+
+ if (Name != null && string.IsNullOrWhiteSpace(Name))
+ {
+ throw new ArgumentException(Resources.TransformationNameCannotBeEmpty);
+ }
+
+ CreatePSTransformationParameter parameter = new CreatePSTransformationParameter
+ {
+ ResourceGroupName = ResourceGroupName,
+ JobName = JobName,
+ TransformationName = Name,
+ RawJsonContent = rawJsonContent,
+ Force = Force.IsPresent,
+ ConfirmAction = ConfirmAction
+ };
+
+ WriteObject(StreamAnalyticsClient.CreatePSTransformation(parameter));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config
new file mode 100644
index 000000000000..a32bb794b5f8
--- /dev/null
+++ b/src/ResourceManager/StreamAnalytics/Commands.StreamAnalytics/packages.config
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file