strobaek.org
域名年龄: 23年11个月17天HTTP/1.1 301 永久重定向 访问时间:2013年12月30日 23:07:09 缓存控制:maxage=43200 过期时间:2013年12月31日 11:07:09 X-UnoEuro-Forwarded: YES 目标网址:http://blog.strobaek.org 连接:关闭 Transfer-Encoding: chunked 类型:text/html HTTP/1.1 200 OK 访问时间:2013年12月30日 23:07:09 X-Pingback: http://blog.strobaek.org/xmlrpc.php Keep-Alive: timeout=3, max=100 连接:Keep-Alive Transfer-Encoding: chunked 类型:text/html; charset=UTF-8 网站编码:UTF-8
Strobaek BlogKarsten Strøbæk's blog about current projects, code and life in generalHomeAboutToolsCleaning up an Azure DeploymentJuly 8th, 2013No commentsYou most likely know this scenarios: you have deployed a nice environment into Windows Azure. Just a few AD/DC, a few front-end servers, a couple of application servers and of course two or three SQL Servers.Now you don’t need the VMs any more and you want to remove everything. And you spend the rest of the afternoon clicking around in the Management Portal, first to remove all the VMs. They wait around until the Disks are no long registered as being attached to the VM and then delete the Disks and the underlying VHD-files.Would it not be nice, if this could be done in a single command (or maybe two if you just wanted to remove the VMs)?Look no further. I have created two small PowerShell scripts that will do exactly this: Remove VMs and remove Disks and underlying VHDs.Let us first remove the VMs.$remove = $falseif(-not $remove) { Write-Host "Are you sure you want to do this?" Write-Host "Change bool to true" return }$serviceName = <Service Name>$azureVMs = Get-AzureVM –Serviceame $serviceName | select Nameforeach($azureVM in $azureVMs) { Remove-AzureVM -ServiceName $serviceName -Name $azureVM }I like to have a safe guard at the top of my scripts. Set the constant to the name of your Cloud Service (the $serviceName variable).To remove all Disks and underlying VHD-files for VMs having belonged to a given Cloud Service run the following:$remove = $falseif(-not $remove) { Write-Host "Are you sure you want to do this?" Write-Host "Change bool to true" return }$serviceName = <Service Name> $azureDisks = Get-AzureDisk | select DiskName, AttachedToforeach($azureDisk in $azureDisks) { if($azureDisk.AttachedTo.HostedServiceName -eq $serviceName) { Remove-AzureDisk -DiskName $azureDisk -DeleteVHD } }If you have played around with the scripts for the automated Share Point deployment found at GitHub I have created a few scripts that from the created configuration files will Export all settings, remove the VMs and (re)deploy them. More about this in a later post.Categories: AzureTags:Installing SQL Server 2012 in a Mirror SetupMay 2nd, 2013No commentsIn my series on creating a SharePoint farm in Windows Azure we last time created the virtual machines for the two front-end servers, the two application servers and the three servers to be used by SQL Server.In this sixth post we will look at how to enable SQL Server for high availability by enabling them in a mirror setup.First of all, this is not really directly related to Windows
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-06-23 15:56, Process in 0.0061 second.