A collection of various, useful scripts for developers (mainly PowerShell)
Modules can be installed individually using the Install-Module command. Alternatively, to install all modules in the repository, run Add-UsefulScriptModules.ps1 at the root of the repository.
You can also run Remove-UsefulScriptModules.ps1 to remove all Useful Script modules.
The Azure scripts are designed to be used with the Azure CLI to simplify the approach to interfacing with Azure.
Removes all failed pods, from all namespaces, within a Kubernetes cluster.
Usage
Remove-FailedKubernetesPodsResets the service principal for an existing Azure Kubernetes Service Principal, and updates the service principal's permissions to allow access to the cluster.
This follows the Azure documentation for resetting an existing service principal.
Usage
Update-ExistingAksServicePrincipal -ResourceGroupName $resourceGroupName -ClusterName $clusterNameA collection of scripts useful when building applications/projects in a continuous integration (CI) environment.
Gets a semantically versioned build number from a provided string value. This is useful when you want to version your applications based on a Git tag or branch name containing the expected version number. Supports pre-release versions with a - format after the version number.
Usage
# Gets the build version from the current Git branch name
Get-BuildVersion -VersionString $Env:GITHUB_REF