Using Azure PowerShell, set virtual Machine Endpoint
We can open the endpoint of virtual machine through Windows Azure Management Portal and borrow the pictures from my previous blog:
But if we need to open a lot of endpoint, it needs to be set manually one by one, which is tedious.
In fact, we can set up the endpoint of virtual machine in batches through Windows Azure Powershell.
1. Assuming that you have created a vitual Machine, the name is LEISQLVM
2. We run the Windows Azure Management Portal using the admin identity
3. If you are running Azure PowerShell for the first time. We want to create a certificate file locally. For the local computer and Azure to establish a reliable secure connection.
Please refer to the author's previous blog: [New portal]windows Azure Virtual Machine (16) uses Azure PowerShell to create azure virtual Machine
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/Servers/cloud-computing/
4. After uploading the certificate, suppose we need to set up TCP Endpoint for LEISQLVM this virtual machine
Endpoint name is TCP80
Public port is 80
Public port is 80
5. We return to Azure Powershell and continue to enter the following command
After the operation, the results are as follows
6. In the management portal, the results of the setup were found:
7. The author simply introduced the next single VM endpoint settings, if you want more than one VM settings endpoint, please refer to the MSDN article
Http://msdn.microsoft.com/en-us/library/windowsazure/jj152886.aspx