This file contains 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
# samples | |
# $HostList = Get-ConfigHostList | |
# $HostList = Add-ConfigHostInList -HostList $HostList -HostName "dummy" -HostValues @{ | |
# identityfile = "~/.ssh/myprivatekey" | |
# hostname = "dummy.somecloud.com" | |
# user = "johndoe" | |
# } |
This file contains 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
#Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v1.2.10271/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -OutFile $(Join-Path $env:TEMP "WinGet.msixbundle"); | |
#Invoke-Item $(Join-Path $env:TEMP "WinGet.msixbundle"); | |
#Remove-Item $(Join-Path $env:TEMP "WinGet.msixbundle"); | |
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx' | |
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
$releases = Invoke-RestMethod -uri $releases_url |
This file contains 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 ( | |
[Parameter(Mandatory)] | |
[ValidateSet( | |
"blob", | |
"configurationStores", | |
"namespace", | |
"registry", | |
"sites", | |
"Sql", |
This file contains 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 ( | |
[switch] | |
$skipDeletes, | |
[switch] | |
$skipCreate | |
) | |
# -------------------------------------------------------------------------------- |
This file contains 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
function ConvertTo-EBCDIC { | |
Param | |
( | |
[Parameter(Mandatory = $true)] | |
[string]$Text | |
) | |
Write-Host $Text | |
$a2e = (0, 1, 2, 3, 55, 45, 46, 47, 22, 5, 37, 11, 12, 13, 14, 15, |
This file contains 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
// sample https://github.com/phealy/azure-custom-dns/blob/master/vmss-dnsfwd/template-vmss.json | |
// VMSS REST API https://docs.microsoft.com/en-us/rest/api/compute/virtualmachinescalesets/createorupdate | |
param location string = resourceGroup().location | |
param resourcePrefix string | |
param vmssName string = '${resourcePrefix}-hub-dns' | |
param computerNamePrefix string = '${resourcePrefix}-hub-dns-' | |
param capacity int = 3 | |
param logAnalyticsWorkspaceName string = '${resourcePrefix}-log' |
This file contains 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
name: $(Date:yyyyMMdd)$(Rev:.r) | |
# ------------------------------------------------------------------------------- | |
trigger: | |
batch: "true" | |
branches: | |
include: | |
- master | |
- feature/* | |
- hotfix/* |
This file contains 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
class AccessPackageClient { | |
hidden [string]$baseGraphEntitlementManagementUri = 'https://graph.microsoft.com/beta/identityGovernance/entitlementManagement/' | |
AccessPackageClient() { | |
} | |
hidden [PSObject] httpGet([string]$url) { | |
$uri = $this.baseGraphEntitlementManagementUri + $url |
This file contains 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
# defines Azure VM JIT network access policies and uses own IP address to open up either SSH or RDP | |
param( | |
# RegEx pattern to find your VM in your current subscription | |
[Parameter(Mandatory = $true, Position = 1)] | |
[string]$NamePattern, | |
# uses ZScaler IP information to determine outbound IP to be opened up | |
[switch]$AllowOffice = $false, | |
[switch]$AllowVpn = $false, | |
# fall-back to open up VM completely (NOT RECOMMENDED!) |
This file contains 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
apiVersion: dapr.io/v1alpha1 | |
kind: Component | |
metadata: | |
name: native | |
spec: | |
type: exporters.native | |
metadata: | |
- name: enabled | |
value: "true" | |
- name: agentEndpoint |
NewerOlder