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
$date = Get-Date -Format "MM-dd-yyyy" | |
$rand = Get-Random -Maximum 1000 | |
$deploymentName = "AzInsiderDeployment-"+"$date"+"-"+"$rand" | |
New-AzResourceGroupDeployment -Name $deploymentName -ResourceGroupName azinsider_demo -TemplateFile .\main.bicep -TemplateParameterFile .\main.bicepparam -c |
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 location string = 'eastus' | |
param resourceGroupName string = 'rg-skytap-poc' | |
param storageAccountName string = 'stskytappoc' | |
@allowed([ | |
'new' | |
'existing' | |
]) | |
param newOrExisting string = 'existing' |
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 location string = 'eastus' | |
param resourceGroupName string = 'skytap' | |
param storageAccountName string = 'skytapsa0021' | |
@allowed([ | |
'new' | |
'existing' | |
]) | |
param newOrExisting string = 'existing' |
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
powershell.exe Install-WindowsFeature -name Web-Server -IncludeManagementTools && powershell.exe remove-item "C:\\inetpub\\wwwroot\\iisstart.htm" && powershell.exe Add-Content -Path "C:\\inetpub\\wwwroot\\iisstart.htm" -Value $($env:computername) |
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
New-StoragePool -FriendlyName storagepool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $true) | |
New-VirtualDisk -StoragePoolFriendlyName storagepool1 -FriendlyName virtualdisk1 -Size 2046GB -ResiliencySettingName Simple -ProvisioningType Fixed | |
Initialize-Disk -VirtualDisk (Get-VirtualDisk -FriendlyName virtualdisk1) | |
New-Partition -DiskNumber 4 -UseMaximumSize -DriveLetter Z |
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
New-StoragePool -FriendlyName storagepool1 -StorageSubsystemFriendlyName "Windows Storage*" -PhysicalDisks (Get-PhysicalDisk -CanPool $true) | |
New-VirtualDisk -StoragePoolFriendlyName storagepool1 -FriendlyName virtualdisk1 -Size 64GB -ResiliencySettingName Simple -ProvisioningType Fixed | |
Initialize-Disk -VirtualDisk (Get-VirtualDisk -FriendlyName virtualdisk1) | |
New-Partition -DiskNumber 4 -UseMaximumSize -DriveLetter Z |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 2 # tells deployment to run 2 pods matching the template | |
template: |
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
$date = Get-Date -Format "MM-dd-yyyy" | |
$rand = Get-Random -Maximum 1000 | |
$deploymentName = "AzInsiderDeployment-"+"$date"+"-"+"$rand | |
New-AzDeployment -Name $deploymentName -TemplateFile .\main.bicep -TemplateParameterFile .\azuredeploy.parameters.json -c |
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
# URL of the installer file | |
$url = "https://cloudbrink.blob.core.windows.net/scripts/BrinkAgent-latest.msi" | |
# Location to save the installer file | |
$output = "C:\Users\azureuser\Downloads\BrinkAgent-latest.msi" | |
# Create a WebClient object | |
$wc = New-Object System.Net.WebClient | |
# Download the installer file | |
$wc.DownloadFile($url, $output) |
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
#!/bin/bash | |
CUSTOM_DOMAIN=$1 | |
if [[ -z $CUSTOM_DOMAIN ]] | |
then | |
echo "Parameters missing." | |
echo "Usage: create-certificates.sh custom_domain" | |
echo "Try: create-certificates.sh *.contoso.net" | |
exit |
NewerOlder