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 / 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'
@lukemurraynz
lukemurraynz / DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
Last active July 19, 2021 02:12
DattoRMMpowerShellAppDeploymentToolkitCommand.ps1
#This is the name of the zip file in the component. Make sure that the PowerShell App Deployment Toolkit is zipped.
$ZipFile = "DesktopSOE.zip"
#This will create a folder called: C:\Temp (these folders can be changed to suit your requirements)
Mkdir c:\Temp -Force
#This will create a folder called: C:\Temp\DesktopSOE\ (these folders can be changed to suit your requirements)
Mkdir C:\Temp\DesktopSOE\ -Force
#This will then copy your PowerShellAppDeployment Toolkit to a folder, outside of the CentraStage Packagestore location.
Copy-Item -Path "$ZipFile" -Destination "C:\Temp\$ZipFile" -Recurse
$DestinationFolder = $ZipFile.Split(".")[0]
#This will then extract your PowerShell App Deployment Toolkit and run it.
@lukemurraynz
lukemurraynz / AzGraph.ps1
Last active April 9, 2021 10:18
Az.ResourceGraph
<#
.SYNOPSIS
Installs the Az.ResourceGraph Module and has example queries
.NOTES
Version: 1.0
Author: Luke Murray (Luke.Geek.NZ)
Website: https://luke.geek.nz/azure-resource-graph-explorer-and-the-powershell-azure-resource-graph
Creation Date: 09.04.21
Change History:
09.04.21 - Intital script development
@lukemurraynz
lukemurraynz / Get-AzureBlogUpdates.ps1
Last active April 5, 2021 11:46
Get-AzureBlogUpdates
function Get-AzureBlogUpdates {
<#
.SYNOPSIS
Retrieves the latest Updates of Azure, from the Azure Blog RSS feed.
.DESCRIPTION
Retrieves the latest Updates of Azure, from the Azure Blog RSS feed.
.NOTES
Version: 1.0
Author: Luke Murray (Luke.Geek.NZ)
Website: https://luke.geek.nz/keep-up-to-date-with-latest-changes-on-azure-using-powershell
Param (
## The directory into which the user wishes to download the files.
[string]$directory = $PSScriptRoot,
## Optional parameter allowing the user to specifiy the code (or comma seperated codes) of the video(s) they wish to download.
[string]$sessionCodes = ""
)
### Variables ###
$api = 'https://api.myignite.microsoft.com/api/session/all'
#requires -Version 2.0 -Modules Az.Accounts, Az.Resources, CredentialManager
function New-AzureResourceGroup
{
<#
.SYNOPSIS
Creates Azure Resource Group
.DESCRIPTION
Creates Azure Resource Group function, created as a test function for Universal Automation Desktop