This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ProjectsPickLists" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization | |
) | |
#connect Azure DevOps | |
echo $PAT | az devops login --org $Organization | |
az devops configure --defaults organization=$Organization | |
#Read File |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[Projects]( | |
[TeamProjectId] VARCHAR(100) NOT NULL, | |
[TeamProjectName] VARCHAR(100) NOT NULL, | |
CONSTRAINT [PK_Projects] PRIMARY KEY CLUSTERED | |
( | |
[TeamProjectId] ASC | |
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY] | |
) ON [PRIMARY] | |
GO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "DELETE FROM RepositoriesAheadBehind" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[ProcessesWorkItemsRules]( | |
[ProcessName] [varchar](100) NULL, | |
[ProcessWorkItemTypeName] [varchar](100) NULL, | |
[ProcessWorkItemTypeRuleName] [varchar](100) NULL, | |
[ProcessWorkItemTypeRuleConditionsTypes] [nvarchar](MAX) NULL, | |
[ProcessWorkItemTypeRuleConditionsFields] [nvarchar](MAX) NULL, | |
[ProcessWorkItemTypeRuleConditionsValues] [nvarchar](MAX) NULL, | |
[ProcessWorkItemTypeRuleActionsTypes] [nvarchar](MAX) NULL, | |
[ProcessWorkItemTypeRuleActionsTargetFields] [nvarchar](MAX) NULL, | |
[ProcessWorkItemTypeRuleActionsValues] [nvarchar](MAX) NULL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE ProcessesWorkItemsRules" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[LatestReleases]( | |
[TeamProjectName] [varchar](100) NULL, | |
[ReleaseDefinitionId] [varchar](40) NULL, | |
[ReleaseDefinitionName] [varchar](150) NULL, | |
[ReleaseNumber] [varchar](100) NULL, | |
[ReleaseCreatedOn] [datetime] NULL, | |
[ReleaseLink] [nvarchar](MAX) NULL, | |
[ReleaseEnvironmentName] [varchar](150) NULL, | |
[ReleaseEnvironmentResult] [varchar](50) NULL, | |
[ReleaseEnvironmentReason] [varchar](50) NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE LatestReleases" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE [dbo].[LatestBuilds]( | |
[TeamProjectName] [varchar](100) NULL, | |
[BuildDefinitionId] [varchar](40) NULL, | |
[BuildDefinitionName] [varchar](150) NULL, | |
[BuildNumber] [varchar](100) NULL, | |
[BuildResult] [varchar](50) NULL, | |
[BuildReason] [varchar](50) NULL, | |
[BuildRequestedFor] [varchar](100) NULL, | |
[BuildRepository] [varchar](100) NULL, | |
[BuildSourceBranch] [varchar](100) NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param | |
( | |
[string]$PAT, | |
[string]$Organization, | |
[string]$Connstr | |
) | |
$SQLQuery = "TRUNCATE TABLE LatestBuilds" | |
Invoke-Sqlcmd -query $SQLQuery -ConnectionString $Connstr |