Set default Azure DevOps environment variables.
Set-AdoDefault [-Organization] <string> [[-Project] <string>] [-WhatIf] [-Confirm]
[<CommonParameters>]
This cmdlet has the following aliases,
- N/A
This function sets the default Azure DevOps environment variables for the current session.
Set-AdoDefault -Organization 'my-org' -Project 'my-project-1'Sets the default Azure DevOps organization to 'my-org', CollectionUri to "https://dev.azure.com/my-org", and Project to 'my-project-1'.
Mandatory. The name of the Azure DevOps organization.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Optional. The name of the Azure DevOps project.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: System.Management.Automation.SwitchParameter
Aliases: wiPrompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
Aliases: cfThis 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
This function sets environment variables for the current session only. These defaults are used by other cmdlets in the module when parameters are not explicitly provided.