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
$mu = New-Object -ComObject Microsoft.Update.ServiceManager -Strict | |
$mu.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"") |
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
(Get-AzureService).servicename | foreach {Get-AzureVM -ServiceName $_ } | select name,AvailabilitySetName |
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
# CountWACores.ps1 | |
# Morgan Simonsen, www.cloudpower.no | |
# Count all CPU cores for subscription across all cloud services | |
$colVMs = @() | |
[int]$TotalCores = 0 | |
$VMs = (Get-AzureService).servicename | foreach {Get-AzureVM -ServiceName $_ } | |
foreach ( $VM in $VMs ) |
NewerOlder