mortenlerudjordet / AzDO-pipeline-task-AzureSQL

Gives access to AAD User/Group on a Azure SQL database using Service Principal through MSAL authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure DevOps Task for Azure SQL

Introduction

This is a WIP project, though the task is in a working condition.

Getting Started

To build this extension on your machine and upload it privately to your AzDO account:

  1. Clone this repository
  2. Navigate to the directory the repository was cloned into on your machine via Command Prompt
  3. Download the latest version of node here
  4. After installing node, close your current Command Prompt window and reopen a new window
  5. You will also need to install the 'TFS Cross Platform Command Line Interface' (tfx-cli) to package your extension. tfx-cli can be installed using npm by running npm i -g tfx-cli
  6. Sign in to the Visual Studio Marketplace management portal
  7. If you don't already have a publisher, you will be prompted to create one. All extension live under a publisher
  8. Open your extension manifest file: 'vss-extension.json' and set the value of the "publisher" field to the ID of your publisher
  9. From the Command Prompt window, run tfx extension create --rev-version. This will also increment build number.
  10. Running the above command will generate a .vsix file
  11. Click the + New extension option and select Visual Studio Team Services
  12. Click the link in the center of the Upload dialog to open a browse dialog
  13. Locate the .vsix file created in the packaging step and upload it in the dialog box
  14. A private version of this extension should now be uploaded to your AzD account

To test your private extension:

  1. From the management portal, select your newly uploaded extension from the list, right-click, and choose Share/Unshare
  2. Click the + Account button, enter the name of your account, and press enter
  3. After sharing this extension with your AzD account, you must now install it to your account
  4. Right-click your extension and choose View Extension to open its details page
  5. Click the Get it free button to start the installation process (the account you shared the extension with should be selected)
  6. Click the Install button
  7. Your extension should now be installed to your account and ready to use as build and release tasks

Build and Test

TODO: Describe and show how to build your code and run the tests.

Resources

Links

Microsoft documentation for building custom tasks

About

Gives access to AAD User/Group on a Azure SQL database using Service Principal through MSAL authentication.

License:GNU General Public License v3.0


Languages

Language:PowerShell 100.0%