public override void ExecuteCmdlet() { if (ParameterSetName == ByObject) { ResourceGroupName = Workspace.ResourceGroupName; Name = Workspace.Name; } UpdatePSWorkspaceParameters parameters = new UpdatePSWorkspaceParameters { ResourceGroupName = ResourceGroupName, WorkspaceName = Name, Sku = Sku, Tags = Tags }; WriteObject(OperationalInsightsClient.UpdatePSWorkspace(parameters)); }
protected override void ProcessRecord() { if (ParameterSetName == ByObject) { ResourceGroupName = Workspace.ResourceGroupName; Name = Workspace.Name; } UpdatePSWorkspaceParameters parameters = new UpdatePSWorkspaceParameters { ResourceGroupName = ResourceGroupName, WorkspaceName = Name, Sku = Sku, Tags = Tags }; WriteObject(OperationalInsightsClient.UpdatePSWorkspace(parameters)); }
public override void ExecuteCmdlet() { if (ParameterSetName == ByObject) { ResourceGroupName = Workspace.ResourceGroupName; Name = Workspace.Name; } #pragma warning disable CS0618 UpdatePSWorkspaceParameters parameters = new UpdatePSWorkspaceParameters { ResourceGroupName = ResourceGroupName, WorkspaceName = Name, Sku = Sku, Tags = Tag, RetentionInDays = RetentionInDays }; #pragma warning restore CS0618 WriteObject(OperationalInsightsClient.UpdatePSWorkspace(parameters)); }
public override void ExecuteCmdlet() { if (ParameterSetName == ByObject) { ResourceGroupName = Workspace.ResourceGroupName; Name = Workspace.Name; } UpdatePSWorkspaceParameters parameters = new UpdatePSWorkspaceParameters { ResourceGroupName = ResourceGroupName, WorkspaceName = Name, Sku = Sku, Tags = Tag, PublicNetworkAccessForIngestion = this.PublicNetworkAccessForIngestion, PublicNetworkAccessForQuery = this.PublicNetworkAccessForQuery, RetentionInDays = RetentionInDays }; WriteObject(OperationalInsightsClient.UpdatePSWorkspace(parameters)); }
public override void ExecuteCmdlet() { if (ParameterSetName == ByObject) { ResourceGroupName = Workspace.ResourceGroupName; Name = Workspace.Name; } UpdatePSWorkspaceParameters parameters = new UpdatePSWorkspaceParameters { ResourceGroupName = ResourceGroupName, WorkspaceName = Name, Sku = string.IsNullOrEmpty(Sku) ? null : new PSWorkspaceSku(Sku, SkuCapacity), Tags = Tag, PublicNetworkAccessForIngestion = this.PublicNetworkAccessForIngestion, PublicNetworkAccessForQuery = this.PublicNetworkAccessForQuery, RetentionInDays = RetentionInDays, DailyQuotaGb = DailyQuotaGb, ForceCmkForQuery = ForceCmkForQuery, WsFeatures = new PSWorkspaceFeatures(DisableLocalAuth) }; WriteObject(OperationalInsightsClient.UpdatePSWorkspace(parameters)); }