Skip to content

Instantly share code, notes, and snippets.

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
<#
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Adaption of https://github.com/Microsoft/AzureAutomation-Account-Modules-Update
by Barbara Forbes, 4bes.nl
#>
<#
.SYNOPSIS
Update all PowerShell modules in an Azure Automation account.
@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
// 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'
}
# 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
abandoned
able
absolute
academic
acceptable
acclaimed
accomplished
accurate
ace
aching
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
# 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]
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.
@Ba4bes
Ba4bes / DFSR_test_PRTG.ps1
Last active May 31, 2020 17:53
Example for https://4bes.nl, not meant for production
#######################################
#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"