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"); CreatePSInputParameter parameter = new CreatePSInputParameter { ResourceGroupName = ResourceGroupName, JobName = JobName, InputName = Name, RawJsonContent = rawJsonContent, Force = Force.IsPresent, ConfirmAction = ConfirmAction }; WriteObject(StreamAnalyticsClient.CreatePSInput(parameter)); }