Enroll macOS Beta Seed without profile installation
$ sudo /System/Library/PrivateFrameworks/Seeding.framework/Versions/A/Resources/seedutil
usage: seedutil enroll SEED_PROGRAM
seedutil unenroll
seedutil current
Import-Module Az.Accounts | |
Import-Module Az.KeyVault | |
Import-Module Az.Storage | |
# To create run as account https://docs.microsoft.com/en-us/azure/automation/create-run-as-account#create-account-using-powershell | |
$backupFolder = "$env:Temp\KeyVaultBackup" | |
$keyvaultName = 'demokeyvaultmimott' |
#Open Azure Powershell | |
#Import your Azure Subscription | |
Add-AzureAccount | |
#Get the list of Azure Subscriptions | |
Get-AzureSubscription | |
#Select the azure Subscription of the Virtual Machines | |
Select-AzureSubscription "[SubscriptionName]" |
Get-Disk | ` | |
Where partitionstyle -eq 'raw' | ` | |
Initialize-Disk -PartitionStyle MBR -PassThru | ` | |
New-Partition -AssignDriveLetter -UseMaximumSize | ` | |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "datadisk" -Confirm:$false |
Login-AzureRmAccount | |
$ResourceGroupName = "INFLAB" | |
$NewSize = "Basic_A3" | |
$vms = Find-AzureRmResource -ResourceGroupName $ResourceGroupName -ResourceType Microsoft.Compute/virtualMachines | |
foreach ($vm in $vms) | |
{ | |
$newvm = Get-AzureRMVM -ResourceGroupName $ResourceGroupName -name $vm.Name |
Import-Module Azure # SDK 0.6.15 | |
$executionTime = Measure-Command { | |
#region function InstallWinRMCert | |
function InstallWinRMCert($serviceName, $vmname) | |
{ | |
$winRMCert = (Get-AzureVM -ServiceName $serviceName -Name $vmname | select -ExpandProperty vm).DefaultWinRMCertificateThumbprint | |
$AzureX509cert = Get-AzureCertificate -ServiceName $serviceName -Thumbprint $winRMCert -ThumbprintAlgorithm sha1 |
# This command retreive the list of all available locations for a website | |
# Get-AzureWebsiteLocation | |
# Instanciate a new Website in the choosen Location | |
$website = New-AzureWebsite -Location "West Europe" -Name "MyNewShinyWebsite" |