Skip to content

Latest commit

 

History

History
137 lines (98 loc) · 2.64 KB

File metadata and controls

137 lines (98 loc) · 2.64 KB

Set-AdoDefault

SYNOPSIS

Set default Azure DevOps environment variables.

SYNTAX

__AllParameterSets

Set-AdoDefault [-Organization] <string> [[-Project] <string>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases,

  • N/A

DESCRIPTION

This function sets the default Azure DevOps environment variables for the current session.

EXAMPLES

EXAMPLE 1

PowerShell

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'.

PARAMETERS

-Organization

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: ''

-Project

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: ''

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: System.Management.Automation.SwitchParameter
Aliases: wi

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: System.Management.Automation.SwitchParameter
Aliases: cf

CommonParameters

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.

INPUTS

  • N/A

OUTPUTS

PSCustomObject

NOTES

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.

RELATED LINKS