Skip to content

Instantly share code, notes, and snippets.

View brbarnett's full-sized avatar

Brandon R. Barnett brbarnett

  • LeagueSpot
  • Novi, MI
View GitHub Profile
@brbarnett
brbarnett / Dockerfile
Created January 17, 2019 13:18
Accessing Azure Artifacts from a docker container in a Pipelines build
FROM microsoft/dotnet:2.2.100-sdk AS build-env
WORKDIR /app
# Credit: https://stackoverflow.com/questions/53419491/azure-artifacts-gives-unauthorized-when-trying-to-build-dockerfile/53510966#53510966
# Personal access token to access Artifacts feed
ARG ACCESS_TOKEN
ARG ARTIFACTS_ENDPOINT
# Install the Credential Provider to configure the access
RUN wget -qO- https://raw.githubusercontent.com/Microsoft/artifacts-credprovider/master/helpers/installcredprovider.sh | bash
@brbarnett
brbarnett / azure-pipelines.cd.yaml
Created January 16, 2019 13:43
Using Azure Pipelines to publish NuGet packages to a private Arifacts feed
resources:
- repo: self
queue:
name: Hosted Ubuntu 1604
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
@brbarnett
brbarnett / azure-pipelines.cd.yaml
Last active March 6, 2019 21:52
Web Apps for Containers ARM template deployment
resources:
- repo: self
queue:
name: Hosted Ubuntu 1604
steps:
- task: AzureResourceGroupDeployment@2
displayName: 'Azure Deployment:Create Or Update Resource Group action on My-Resource-Group-XXX-XXX'
inputs:
azureSubscription: DemoSPNConnection
@brbarnett
brbarnett / AKSClusterConfigurationReader.json
Created August 3, 2018 18:09
Create Azure custom role for az aks get-credentials
{
"Name":"AKS Cluster Configuration Reader",
"Id":"{{ create a unique guid }}",
"IsCustom":true,
"Description":"Can get AKS configuration.",
"Actions":[
"Microsoft.ContainerService/managedClusters/accessProfiles/listCredential/action",
"Microsoft.ContainerService/managedClusters/listClusterUserCredential/action"
],
"NotActions":[