This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Target Scope is: Resource Group | |
targetScope = 'resourceGroup' | |
//Set Variables and Parameters | |
@allowed([ | |
'Prod' | |
'Dev' | |
]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Title": "Luke Web Automation", | |
"defaultcommandid": "overview", | |
"basepath": "C:\\WebJEA\\scripts", | |
"LogParameters": true, | |
"permittedgroups": [".\\Administrators", "luke.geek.nz\\WebJEAAdmins"], | |
"commands": [ | |
{ | |
"id": "overview", | |
"displayname": "Overview", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"roleName": "Custom Role - Template", | |
"description": "This is a Template for creating Custom Roles.", | |
"IsCustom": true, | |
"assignableScopes": [ | |
"/subscriptions/<SubscriptionID>" | |
], | |
"permissions": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"roleName": "Custom Role - Template", | |
"IsCustom": true, | |
"description": "This is a Template for creating Custom Roles.", | |
"assignableScopes": [ | |
"/subscriptions/<SubscriptionID>" | |
], | |
"permissions": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"properties": { | |
"roleName": "AVD-StartVMOnConnect", | |
"description": "Custom role, designed to allow 'Windows/Azure Virtual Desktop' rights to Start session hosts.", | |
"assignableScopes": [ | |
"/subscriptions/<SubscriptionID>" | |
], | |
"permissions": [ | |
{ | |
"actions": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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' |