Skip to content

Instantly share code, notes, and snippets.

@Ba4bes
Ba4bes / TableTopic.md
Created November 3, 2021 21:43
All links for the Microsoft Ignite Table topic: The possibilities of the Microsoft Graph and the Azure REST API
View TableTopic.md
View for-loops.bicep
// examples for https://4bes.nl/2021/08/08/use-for-loops-in-bicep/
// A single storage account
resource oneSta 'Microsoft.Storage/storageAccounts@2021-04-01' = {
name: '4besuniquevalue'
location: resourceGroup().location
sku: {
name: 'Standard_LRS'
}
kind: 'StorageV2'
}
View Invoke-AzDoRepoMigration.ps1
function Invoke-AzDoRepoMigration {
<#
.SYNOPSIS
Migrates git repo(s) from one Azure DevOps project to another.
.DESCRIPTION
This function migrates git repo(s) from one Azure DevOps project to another.
If a repo is already in the target project, it will be skipped.
If no repo-parameter is given, all repos will be migrated.
The source repo will not be deleted.
.PARAMETER UserName
View english-adjectives.txt
abandoned
able
absolute
academic
acceptable
acclaimed
accomplished
accurate
ace
aching
View english-adjectives.txt
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
View New-AzUpdateDeploymentSchedule.ps1
Function New-AzUpdateDeploymentSchedule {
<#
.SYNOPSIS
Schedule Azure updates
.DESCRIPTION
This cmdlet combines the three cmdlets that are needed to create a update schedule.
New-AzAutomationSchedule
New-AzAutomationUpdateManagementAzureQuery
New-AzAutomationSoftwareUpdateConfiguration
Created for Azure Update Automation.
View Deploy_ARM.yml
# This is a basic workflow to help you get started with Actions
name: Deploy_ARM
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
[push, pull_request]
View azure-pipelines.yml
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- "*"
stages:
- stage: test
@Ba4bes
Ba4bes / DFSR_test_PRTG.ps1
Last active May 31, 2020 17:53
Example for https://4bes.nl, not meant for production
View DFSR_test_PRTG.ps1
#######################################
#Monitor DFSR replication
#Created by: Barbara Forbes
#Date: 26-2-2016
####################################
#The account running this script needs to have permissions on the drives that are used for this test.
#Define Paths on both servers, change this to your situation
$DFSpath1 = "c:\test"
@Ba4bes
Ba4bes / azuredeploy.json
Created May 17, 2020 07:25
Example ARM template for Storage Account
View azuredeploy.json
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountPrefix": {
"type": "string"
},
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]",