Get the feature states for an Azure DevOps project.
Get-AdoFeatureState [[-CollectionUri] <string>] [[-ProjectName] <string>] [[-Version] <string>] [<CommonParameters>]
This cmdlet has the following aliases,
- ProjectId
This cmdlet retrieves the feature states for an Azure DevOps project through REST API. Returns the states for Boards, Repos, Pipelines, Test Plans, and Artifacts features.
$params = @{
CollectionUri = 'https://dev.azure.com/my-org'
ProjectName = 'my-project-002'
}
Get-AdoFeatureState @paramsRetrieves the feature states for the specified project.
Get-AdoFeatureState -ProjectName 'my-project-002'Retrieves the feature states using the default collection URI from environment variable.
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: ''Optional. The ID or name of the project. Defaults to the value of $env:DefaultAdoProject.
Type: System.String
DefaultValue: $env:DefaultAdoProject
SupportsWildcards: false
Aliases:
- ProjectId
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. The API version to use. Default is '4.1-preview.1'.
Type: System.String
DefaultValue: 4.1-preview.1
SupportsWildcards: false
Aliases:
- ApiVersion
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues:
- 4.1-preview.1
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.
- N/A
- Requires authentication to Azure DevOps. Use
Set-AdoDefaultto configure default organization and project values. - The cmdlet automatically retrieves authentication through
Invoke-AdoRestMethodwhich callsNew-AdoAuthHeader.