Skip to content

Instantly share code, notes, and snippets.

View lukemurraynz's full-sized avatar
☁️
Breaking things!

Luke Murray lukemurraynz

☁️
Breaking things!
View GitHub Profile
@lukemurraynz
lukemurraynz / azure-pipelines.yml
Created January 7, 2022 09:54
azure-pipelines.yml
# Variable 'location' was defined in the Variables tab
# Variable 'PrimaryDNSZone' was defined in the Variables tab
# Variable 'ResourceGroupName' was defined in the Variables tab
# Variable 'SPN' is defined in the Variables tab
trigger:
branches:
include:
- refs/heads/main
jobs:
- job: Job_1
@lukemurraynz
lukemurraynz / Deploy-PublicDNS.bicep
Last active January 22, 2022 16:17
Deploy-PublicDNS.bicep
///Variables - Edit, these variables can be set in the script or implemented as part of Azure DevOps variables.
//Set the Domain Name Zone:
param PrimaryDNSZone string = ''
//Deploys to the location of your resource group, that is specified during the deployment.
var location = 'Global'
//Variable array for your A records. Add, remove and amend as needed, any new record needs to be included in {}.
var arecords = [
{
name: '@'
ipv4Address: '8.8.8.8'
@lukemurraynz
lukemurraynz / storageaccount.bicep
Last active December 27, 2021 08:26
storageaccount.bicep
param storageaccprefix string = ''
var location = resourceGroup().location
resource storageacc 'Microsoft.Storage/storageAccounts@2021-06-01' = {
name: '${storageaccprefix}${uniqueString(resourceGroup().id)}'
location: location
sku: {
name: 'Standard_ZRS'
}
kind: 'StorageV2'
@lukemurraynz
lukemurraynz / Create-NATGateway.bicep
Last active February 21, 2022 12:52
Create-NATGateway.bicep
//Target Scope is: Resource Group
targetScope = 'resourceGroup'
//Set Variables and Parameters
@allowed([
'Prod'
'Dev'
])
@lukemurraynz
lukemurraynz / config.json
Created July 18, 2021 06:34
config.json
{
"Title": "Luke Web Automation",
"defaultcommandid": "overview",
"basepath": "C:\\WebJEA\\scripts",
"LogParameters": true,
"permittedgroups": [".\\Administrators", "luke.geek.nz\\WebJEAAdmins"],
"commands": [
{
"id": "overview",
"displayname": "Overview",
@lukemurraynz
lukemurraynz / LukeGeek-WebApp Deployment-RW.json
Last active July 3, 2021 11:47
LukeGeek-WebApp Deployment-RW.json
{
"properties": {
"roleName": "Custom Role - Template",
"description": "This is a Template for creating Custom Roles.",
"IsCustom": true,
"assignableScopes": [
"/subscriptions/<SubscriptionID>"
],
"permissions": [
{
@lukemurraynz
lukemurraynz / Custom Role - Template.json
Last active July 3, 2021 11:46
Custom Role - Template.json
{
"properties": {
"roleName": "Custom Role - Template",
"IsCustom": true,
"description": "This is a Template for creating Custom Roles.",
"assignableScopes": [
"/subscriptions/<SubscriptionID>"
],
"permissions": [
{
@lukemurraynz
lukemurraynz / AVD-StartVMOnConnect.json
Created July 3, 2021 06:36
AVD-StartVMOnConnect Custom Role
{
"properties": {
"roleName": "AVD-StartVMOnConnect",
"description": "Custom role, designed to allow 'Windows/Azure Virtual Desktop' rights to Start session hosts.",
"assignableScopes": [
"/subscriptions/<SubscriptionID>"
],
"permissions": [
{
"actions": [
@lukemurraynz
lukemurraynz / redirections.xml
Last active June 29, 2021 09:00
redirections.xml
<?xml version="1.0" encoding="UTF-8"?>
<FrxProfileFolderRedirection ExcludeCommonFolders="0">
<Excludes>
<Exclude>AppData\Local\Google\Chrome\User Data\Default\Cache\</Exclude>
<Exclude>AppData\Local\Google\Chrome\User Data\Default\Cached Theme Images\</Exclude>
<Exclude>AppData\Roaming\Google\Chrome\UserData\Default\Code Cache\js</Exclude>
<Exclude>AppData\Local\Google\Chrome\UserData\Default\Code Cache\js</Exclude>
<Exclude>AppData\Local\Mozilla\Firefox</Exclude>
<Exclude Copy="0">AppData\Local\Microsoft\Terminal Server Client</Exclude>
@lukemurraynz
lukemurraynz / Add_LogAnalyticsWorkspace.ps1
Last active June 13, 2021 06:42
Add_LogAnalyticsWorkspace.ps1
<#
Author: Luke Murray (Luke.Geek.NZ)
Version: 0.1
Version History:
Purpose: Add an MMA agent to a Log Analytics workspace using a proxy with no user authentication.
Notes:
Find more options about the MMA Agent Object:
#$healthServiceSettings = New-Object -ComObject 'AgentConfigManager.MgmtSvcCfg'