Inheritance: Microsoft.Azure.Commands.OperationalInsights.OperationalInsightsParametersBase
        protected override void ProcessRecord()
        {
            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName = Name,
                Location = Location,
                Sku = Sku,
                CustomerId = CustomerId,
                Tags = Tags,
                Force = Force.IsPresent,
                ConfirmAction = ConfirmAction
            };

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }
        public override void ExecuteCmdlet()
        {
            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = Name,
                Location          = Location,
                Sku           = Sku,
                CustomerId    = CustomerId,
                Tags          = Tags,
                Force         = Force.IsPresent,
                ConfirmAction = ConfirmAction
            };

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }
Exemplo n.º 3
0
        public override void ExecuteCmdlet()
        {
            if (!OperationalInsightsClient.DeletedWorkspace(ResourceGroupName, Name))
            {
                throw new ArgumentException("workspace: " + Name + " under resource group: " + ResourceGroupName + " is not available to restore");
            }

            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = Name,
                Location          = Location,
                ConfirmAction     = ConfirmAction
            };

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }
Exemplo n.º 4
0
        public override void ExecuteCmdlet()
        {
            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = Name,
                Location          = Location,
                Sku             = Sku,
                Tags            = Tag,
                RetentionInDays = RetentionInDays,
                Force           = Force.IsPresent,
                PublicNetworkAccessForIngestion = this.PublicNetworkAccessForIngestion,
                PublicNetworkAccessForQuery     = this.PublicNetworkAccessForQuery,
                ConfirmAction = ConfirmAction
            };

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }
Exemplo n.º 5
0
        public override void ExecuteCmdlet()
        {
#pragma warning disable CS0618
            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = Name,
                Location          = Location,
                Sku             = Sku,
                CustomerId      = CustomerId,
                Tags            = Tag,
                RetentionInDays = RetentionInDays,
                Force           = Force.IsPresent,
                ConfirmAction   = ConfirmAction
            };
#pragma warning restore CS0618

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }
Exemplo n.º 6
0
        public override void ExecuteCmdlet()
        {
            var selectedSku = string.IsNullOrEmpty(Sku) ? AllowedWorkspaceServiceTiers.pergb2018.ToString() : Sku;

            CreatePSWorkspaceParameters parameters = new CreatePSWorkspaceParameters()
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName     = Name,
                Location          = Location,
                Sku             = new PSWorkspaceSku(selectedSku, SkuCapacity),
                Tags            = Tag,
                RetentionInDays = RetentionInDays,
                Force           = Force.IsPresent,
                PublicNetworkAccessForIngestion = this.PublicNetworkAccessForIngestion,
                PublicNetworkAccessForQuery     = this.PublicNetworkAccessForQuery,
                ForceCmkForQuery = ForceCmkForQuery,
                ConfirmAction    = ConfirmAction,
                WsFeatures       = new PSWorkspaceFeatures(DisableLocalAuth)
            };

            WriteObject(OperationalInsightsClient.CreatePSWorkspace(parameters));
        }