예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }
예제 #4
0
        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));
        }