Skip to content

Instantly share code, notes, and snippets.

[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[String]
$ResourceGroupName,
[Parameter(Mandatory=$true)]
[String]
$VirtualMachineName,
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"budgetName": {
"defaultValue": "Allowed Budget 2021",
"type": "String",
"metadata": {
"description": "Name of the Budget. It should be unique within a resource group."
}
{"contactRoles":{"value":["Owner","Contributor"]},"contactEmails":{"value":["johnm@cloudswyft.com"]},"contactGroups":{"value":[]},"resourceGroupFilterValues":{"value":[]},"meterCategoryFilterValues":{"value":[]}}
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"contactRoles": {
"value": [
"Owner",
"Contributor"
]
},
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"budgetName": {
"defaultValue": "Allowed Budget 2021",
"type": "String",
"metadata": {
"description": "Name of the Budget. It should be unique within a resource group."
}
FROM openjdk:11-jre-slim
RUN apt-get update \
&& apt-get install -y curl gnupg2 unzip \
&& rm -rf /var/lib/apt/lists/*
ENV SONAR_VERSION=7.9.4 \
SONARQUBE_HOME=/opt/sonarqube \
SONARQUBE_JDBC_USERNAME=sonar \
SONARQUBE_JDBC_PASSWORD=sonar \
#!/usr/bin/env bash
set -e
if [ "${1:0:1}" != '-' ]; then
exec "$@"
fi
# Parse Docker env vars to customize SonarQube
#
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Authorization/roleAssignments",
"apiVersion": "2018-09-01-preview",
"name": "[guid(resourceGroup().id)]",
"properties": {
"roleDefinitionId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/', '8e3af657-a8ff-443c-a75c-2fe8c4bcb635')]",
@fRanK45jPm
fRanK45jPm / gist:ed56588e856ba49fe972081fa46f237e
Last active June 26, 2019 16:19
Azure DevOps - Docker / AKS
**Download Docker for Windows** on https://hub.docker.com/editions/community/docker-ce-desktop-windows
**To do after installation**
Run
Open a command-line terminal like PowerShell, and try out some Docker commands!
Run `docker version` to check the version.
Run `docker run hello-world` to verify that Docker can pull and run images.
[
{
"name": "product 1",
"id": 1,
"imageUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAd4AAABpCAMAAACj+LKIAAAA0lBMVEX///8iHx/ZHFIAAAAfHBwXExMcGRn8/Pz29vYoJSVvbm4QCwvj4+Pw8PBIRkaPj4/CwcEJAADYAEkTDg7YEU3XAEXr6+tYVlbV1dUtKio2MzOnpqZFQ0OWlZWwr6++vb3KycljYWGfnp5PTU2Liop+fX1kYmJ5eHg8OTn76e5ycHD+9vm1tLTS0dHzv8zc29v42OHsm6/hWXzla4vqj6bbJlvnfZfdPWfxssLfS3L53OTqkKXmc5H1zdfzwM3phZ7dNWPWADzsmK3upbbeR23iYYGVh7SCAAAV0UlEQVR4nO1da1fbOtNNYscOJAESnBAolJRSmpQ7PVxbLi3l//+l13Zu0p6RNHLCy1rPyv7QcxZxZMXbGs3sGUml0hJLLLHEEkssscQSSyzBo3Ha6350H5Z4H+yv1oMUO+tLhv/30NhKyV0ZDKrpv+vxR/dmicWiNwjK308b3e7557VW68tHd2eJhaIbBbv9jf0U/VLpoBp8/+gOLbFIbAVf4vNWvd5q1bdqpX45+PTRPVpicdgPBo1SL4p2drej1kGp9CkYND+6T0ssDKtBymkvY7ZZr2YT7yDY/+g+LbEonG8H8ZjeUnnzKP3LSbD60Z1aYlHoBVvZv1F9r9RrtbJx2yvvfnSnllgUToNvpVI+966Vd3KnqrFT/uA+LbEwnAaHpZzetaNyFPXT/+8OdvybOT5ecL/+N1Brcqgt+C6x1rqmS/XqmTuVzr17pX49n3vPV9b873B39fz39en/keN4A7Fv1ttO8dq+em38+XBdB9tSH69aXz88dfTyyxqD3T39ouYeaThr+7PwSaTe0kBt/UD9qDuoliauVZh7zif5ePZEfNVptzt/Ore/7x4f/L9eADs