Updates an existing Azure DevOps project.
Set-AdoProject [[-CollectionUri] <string>] [-Id] <string[]> [[-Name] <string>]
[[-Description] <string>] [[-Visibility] <string>] [[-Version] <string>] [<CommonParameters>]
This cmdlet has the following aliases,
- ProjectId
- ProjectName
This cmdlet updates an existing Azure DevOps project within a specified organization.
$params = @{
CollectionUri = 'https://dev.azure.com/my-org'
Id = 'my-project-1'
Name = 'my-project-updated'
}
Set-AdoProject @params -VerboseUpdates the name of the specified project.
$params = @{
CollectionUri = 'https://dev.azure.com/my-org'
}
[PSCustomObject]@{
Id = 'my-project-1'
Name = 'my-project-updated'
Description = 'Updated description'
} | Set-AdoProject @params -VerboseUpdates the project using pipeline input.
Optional. The collection URI of the Azure DevOps collection/organization, e.g., https://dev.azure.com/my-org.
Type: System.String
DefaultValue: $env:DefaultAdoCollectionUri
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The ID (uuid) or name of the project to update. The cmdlet will automatically resolve project names to IDs.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- ProjectId
ParameterSets:
- Name: (All)
Position: Named
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The new description for the project.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''The new name for the project.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- ProjectName
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. The visibility of the project. Default is 'Private'.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues:
- Private
- Public
HelpMessage: ''The API version to use for the request. Default is '7.1'.
Type: System.String
DefaultValue: 7.1
SupportsWildcards: false
Aliases:
- ApiVersion
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues:
- 7.1
- 7.2-preview.4
HelpMessage: ''This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- System.String
- PSCustomObject
-
The cmdlet accepts either a project ID (GUID) or project name for the Id parameter
-
The cmdlet automatically polls for update completion before returning
-
Only properties that are explicitly provided will be updated
-
Requires ShouldProcess confirmation due to ConfirmImpact = 'High'
-
Requires authentication to Azure DevOps. Use
Set-AdoDefaultto configure default organization and project values. -
The cmdlet automatically retrieves authentication through
Invoke-AdoRestMethodwhich callsNew-AdoAuthHeader.