Microsoft.Azure.Commands.OperationalInsights.SetAzureOperationalInsightsStorageInsightCommand.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            if (ParameterSetName == ByWorkspaceObject)
            {
                ResourceGroupName = Workspace.ResourceGroupName;
                WorkspaceName = Workspace.Name;
            }

            UpdatePSStorageInsightParameters parameters = new UpdatePSStorageInsightParameters
            {
                ResourceGroupName = ResourceGroupName,
                WorkspaceName = WorkspaceName,
                Name = Name,
                StorageAccountKey = StorageAccountKey,
                Containers = Containers != null ? Containers.ToList() : null,
                Tables = Tables != null ? Tables.ToList() : null
            };

            WriteObject(OperationalInsightsClient.UpdatePSStorageInsight(parameters));
        }
    }
SetAzureOperationalInsightsStorageInsightCommand