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]$ProjectName, | |
[string]$mailAddress, | |
[string]$Connstr | |
) | |
Function get-Identifier ($children,[ref]$AllAreaPaths) |
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].[AreaPermissions]( | |
[TeamProjectName] [varchar](100) NULL, | |
[AreaPathName] [varchar](150) NULL, | |
[SecurityNameSpace] [varchar](100) NULL, | |
[UserPrincipalName] [varchar](100) NULL, | |
[UserDisplayName] [varchar](100) NULL, | |
[GroupDisplayName] [varchar](200) NULL, | |
[GroupAccountName] [varchar](200) NULL, | |
[AreaCommandName] [varchar](100) NULL, | |
[AreaCommandInternalName] [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]$ProjectName, | |
[string]$mailAddress, | |
[string]$Connstr | |
) | |
Function get-Identifier ($children,[ref]$AllIterationPaths) |
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].[IterationPermissions]( | |
[TeamProjectName] [varchar](100) NULL, | |
[IterationPathName] [varchar](150) NULL, | |
[SecurityNameSpace] [varchar](100) NULL, | |
[UserPrincipalName] [varchar](100) NULL, | |
[UserDisplayName] [varchar](100) NULL, | |
[GroupDisplayName] [varchar](200) NULL, | |
[GroupAccountName] [varchar](200) NULL, | |
[IterationCommandName] [varchar](100) NULL, | |
[IterationCommandInternalName] [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 VariableGroups" | |
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].[VariableGroups]( | |
[TeamProjectName] [varchar](100) NULL, | |
[VariableGroupName] [varchar](150) NULL, | |
[VariableGroupType] [varchar](50) NULL, | |
[VariableGroupKeyVaultName] [varchar](100) NULL, | |
[VariableGroupVariableName] [varchar](100) NULL, | |
[VariableGroupVariableValue] [nvarchar](MAX) NULL | |
) 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 = "TRUNCATE TABLE EnvironmentsDeploys" | |
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].[EnvironmentsDeploys]( | |
[TeamProjectName] [varchar](100) NULL, | |
[EnvironmentId] [int] NULL, | |
[EnvironmentName] [varchar](150) NULL, | |
[EnvironmentDeployDefinitionName] [varchar](100) NULL, | |
[EnvironmentDeployStageName] [varchar](150) NULL, | |
[EnvironmentDeployJobName] [varchar](150) NULL, | |
[EnvironmentDeployResult] [varchar](50) NULL, | |
[EnvironmentDeployQueueTime] [datetime] NULL, | |
[EnvironmentDeployStartTime] [datetime] 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 TaskGroups" | |
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].[TaskGroups]( | |
[TeamProjectName] [varchar](100) NULL, | |
[TaskGroupId] [varchar](40) NULL, | |
[TaskGroupName] [varchar](150) NULL, | |
[TaskGroupIconURL] [nvarchar](max) NULL, | |
[TaskGroupVersion] [varchar](30) NULL, | |
[TaskGroupCategory] [varchar](30) NULL, | |
[TaskGroupTaskDisplayName] [varchar](150) NULL, | |
[TaskGroupTaskReferenceId] [varchar](40) NULL, | |
[TaskGroupTaskVersionSpec] [varchar](30) NULL, |