READEME IS IN PROGRES
This repository contains few different ways to interact via API with Azure. It could be a good refresher or show the way how to start with different method.
azure-api: Contains PowerShell scripts for making API calls to various Azure services.azure-cli: Scripts for Azure Command Line Interface (CLI) usage examples.azure-devops-api: PowerShell scripts for interacting with Azure DevOps APIs.load-environment-variables.ps1: Powershell script to load environment variables from .env file.
To use all of scripts in this repo you .env file should contains variables, like on below example (customized for your azure environment):
AZURE_CLIENT_ID=0fbde213-8cf9-4525-8f11-ca4e411173bb
AZURE_CLIENT_SECRET=aisnjdosakdnmaojs93u43rjaoi*HYFHS!!
AZURE_TENANT_ID=12ab52e2-7f12-4bef-awe4-3111962fc321
ADO_PAT=aisn*NWSB7da9n980um*93u43rjaoi*HYFHS!!az-keyvault-api-simplified.ps1: Simplified examples of Key Vault API calls.az-keyvault-api-utils.ps1: Utility functions for Key Vault API.az-keyvault-api.ps1: Comprehensive Key Vault API call examples.
az-commands.ps1: Common Azure CLI commands.az-keyvault-cli.ps1: Specific CLI commands for interacting with Azure Key Vault.
az-devops-api.ps1: Examples of API calls to Azure DevOps services.az-devops-utils.ps1: Utility functions for Azure DevOps API.
To use these scripts, you will need to have PowerShell installed and configured on your system. Additionally, you'll need to have the necessary permissions and Azure CLI installed for the Azure-related scripts.
Here are some quick examples of what you can find in this repository:
- Key Vault - List Secrets:
# Using az-keyvault-api.ps1 ./az-keyvault-api.ps1