Export Azure network security groups using PowerShell

Standard
> Install-Module AzureRM
 
> Import-Module AzureR
Error:
  Import-Module : File C:\Program Files\WindowsPowerShell\Modules\AzureRM\4.2.1\AzureRM.psm1,...
 
The PowerShell should work with the RemoteSigned policy in any case.
> Get-ExecutionPolicy -List
> Get-ExecutionPolicy -Scope CurrentUser
> Set-ExecutionPolicy RemoteSigned
 
> Import-Module AzureRM
> Login-AzureRmAccount
 
> Get-AzureRmSubscription
  Name     : BizSpark
  Id       : 1e573f03-6685-xxxx-bcb0-xxx
  TenantId : 517c8f98-6209-xxxx-9aca-xxx
  State    : Enabled
 
  Name     : Microsoft Azure Sponsorship
  Id       : 61719d1b-1c44-xxxx-a985-xxx
  TenantId : 517c8f98-6209-xxxx-9aca-xxx
  State    : Enabled
 
> Select-AzureRmSubscription -SubscriptionId "61719d1b-1c44-xxxx-a985-xxx"
 
> Get-AzureRmNetworkSecurityGroup -Name NSG_NAME -ResourceGroupName ResourceGroupName | Get-AzureRmNetworkSecurityRuleConfig | Select * | > Export-Csv -NoTypeInformation -Path C:\NSGExport.csv

putty+ssh socks5

Standard

总算找着个可以访问的下载地址了,”GFW”真强!!!
ftp://ftp.qut.edu.au/pub/ip-charge/unix/socks5-v1.0r11.tar.gz
只可惜装到一半就报错了,正巧查到个更容易的方法,那就是直接用putty+ssh来做socks5吧. [read more]

svn+trac install for window

Standard

下载地址:
http://www.python.org/download/
Python 2.6.2 Windows installer
http://genshi.edgewall.org/wiki/Download
Genshi-0.5.1.win32-py2.6.exe
http://oss.itsystementwicklung.de/trac/pysqlite/
pysqlite-2.5.5.win32-py2.6.exe
http://trac.edgewall.org/wiki/TracDownload
Trac-0.11.4.win32.exe
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
Setup-Subversion-1.6.2.msi
svn-python-1.6.1.win32-py2.6.exe
http://trac.edgewall.org/wiki/TracOnWindows#Setuptools
ez_setup.py
setuptools-0.6c9-py2.6.egg
python ez_setup.py setuptools-0.6c9-py2.6.egg #这一步很重要,否则trac-admin操作时会报错 [read more]