This PowerShell script is designed to help you install an Azure DevOps extension. It requires several parameters to be provided in order to install the extension.
Before running this script, please ensure you have the following:
- PowerShell version 7.3 or later. You can download PowerShell from here
To use this script, follow the steps below:
- Open PowerShell.
- Run the script using the following command:
.\Install-DevOpsExtension.ps1 -Organization <Organization> -PublisherName <PublisherName> -ExtensionName <ExtensionName> -Token <Token>
Replace <Organization>
, <PublisherName>
, <ExtensionName>
, and <Token>
with your own values.
The script accepts the following parameters:
Organization
: Azure DevOps organization name. This parameter is mandatory.PublisherName
: Publisher name for the extension. Must meet the specified pattern and length criteria. This parameter is mandatory.ExtensionName
: Name of the extension. Must meet the specified pattern and length criteria. This parameter is mandatory.Token
: Personal Access Token with at least the scopeExtensions (Read & Manage)
. This parameter is mandatory.- For more information on how to create a Personal Access Token (PAT), please refer to this documentation.
Note: The
PublisherName
andExtensionName
parameters can be found in the marketplace URL for the extension. For example, if the URL ishttps://marketplace.visualstudio.com/items?itemName=my-publisher.my-extension
, then thePublisherName
ismy-publisher
and theExtensionName
ismy-extension
.
Here is an example of how to use this script:
.\Install-DevOpsExtension.ps1 -Organization "myorg" -PublisherName "my-publisher" -ExtensionName "my-extension" -Token "token"
Make sure to replace "myorg"
, "my-publisher"
, "my-extension"
, and "token"
with your own values.
This script is released under the MIT License.
Contributions are welcome! If you find any issues or have suggestions, please open an issue or submit a pull request.
This script is provided as-is, without any warranty or support. Use it at your own risk.