public override void ExecuteCmdlet() { if (ParameterSetName == ByWorkspaceObject) { ResourceGroupName = Workspace.ResourceGroupName; WorkspaceName = Workspace.Name; } WriteObject(OperationalInsightsClient.FilterPSStorageInsights(ResourceGroupName, WorkspaceName, Name), true); }
protected override void ProcessRecord() { if (ParameterSetName == ByWorkspaceObject) { ResourceGroupName = Workspace.ResourceGroupName; WorkspaceName = Workspace.Name; } WriteObject(OperationalInsightsClient.FilterPSStorageInsights(ResourceGroupName, WorkspaceName, Name), true); }