< Back

Set-PsAzureDevOpsConfig

Sun Jan 19, 2020 6:09 pm

NAME Set-PsAzureDevOpsConfig



SYNOPSIS

Sets values in a (local or global) config file.





SYNTAX

Set-PsAzureDevOpsConfig [-Name] <String> [-Value] <String> [-Local] [-Global] [<CommonParameters>]





DESCRIPTION

Set-PsAzureDevOpsConfig lets you set the value for certain properties of

cmdlets. By setting these in the config file you no longer need to pass them

to the functions. You can set a value in either a local or global config.

This lets you put local configs file in your projects and store more global

values like account centrally.





PARAMETERS

-Name <String>

The name of the property you want to set



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Value <String>

The value to set the property.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Local [<SwitchParameter>]

Flag indicates you want to set value in a local config file.

The file will be created in the current directory if it doesn't exist.

This is the default.



Required? false

Position? named

Default value True

Accept pipeline input? false

Accept wildcard characters? false



-Global [<SwitchParameter>]

Flag indicates you want to set value in the global config file.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-PsAzureDevOpsConfig -Name Project -Value MyProject



Sets the property Project to the value MyProject in the global config









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-PsAzureDevOpsConfig -Name Project -Value MyProject -Local



Sets the property Project to the value MyProject in a local config











RELATED LINKS

about_PsAzureDevOps