Skip to content

Instantly share code, notes, and snippets.

@randomnote1
randomnote1 / Move-TempDBToDDrive.ps1
Last active May 27, 2021 19:12
Configure SQL Server to Store TempDB on the D: Drive on Azure VMs
<#
.SYNOPSIS
Configure SQL Server to Store TempDB on the D: Drive on Azure VMs.
.DESCRIPTION
Configures SQL Server on Azure VMs to use the D: drive for TempDB.
.EXAMPLE
.\Move-TempDBToDDrive.ps1
@randomnote1
randomnote1 / New-CloudWitness.ps1
Created February 12, 2021 21:14
Create a new Cloud Witness for a Windows Failover Cluster using the CreateCloudWitness CIM method
#Requires -Modules Az.Accounts
<#
.SYNOPSIS
Create an Azure Cloud Witness.
.DESCRIPTION
Create an Azure Cloud Witness for the cluster on the current server.
.PARAMETER StorageAccountName
@randomnote1
randomnote1 / ConvertTo-LightVcf.ps1
Created October 18, 2019 12:20
Convert a CSV of contact information to a VCF file for the Light Phone II
<#
.SYNOPSIS
Create a vCard VCF file from a CSV.
.DESCRIPTION
Create a vCard VCF file from a CSV containing contacts.
.PARAMETER File
The CSV file containing the contacts.
@randomnote1
randomnote1 / CHANGELOG.md
Last active October 30, 2017 23:41
xSQLServer: Make Resources Be Cluster Aware

Change log for xSQLServer

Unreleased

  • Changes to xSQLServerResource
    • Made the resource cluster aware. When ProcessOnlyOnActiveNode is specified, the resource will only determine if a change is needed if the target node is the active host of the SQL Server instance (issue #123).