[英]Azure power shell cmdlet dll in .net project
Here I have a question about how to use Azure power shell cmdlet dll in .net project. 在这里,我有一个关于如何在.net项目中使用Azure Power Shell cmdlet dll的问题。 I got a look at this thread in msdn: Use powershell cmdlet we can use this command.
我在msdn中看到了这个线程:使用powershell cmdlet,我们可以使用此命令。 Remove-AzureVM -ServiceName -Name And this will involve the dll under Microsoft.WindowsAzure.Management.ServiceManagement.dll which path is: C:\\Program Files (x86)\\Microsoft SDKs\\Windows Azure\\PowerShell\\Azure I use reflector open this dll.
Remove-AzureVM -ServiceName -Name这将涉及Microsoft.WindowsAzure.Management.ServiceManagement.dll下的dll,其路径为:C:\\ Program Files(x86)\\ Microsoft SDKs \\ Windows Azure \\ PowerShell \\ Azure我使用反射器将其打开dll。 And I can get the RemoveAzureVMCommand class, but how to use this class achieve the same thing as powershell cmdlet?
而且我可以获得RemoveAzureVMCommand类,但是如何使用该类实现与powershell cmdlet相同的功能? Can some one share some light to me?
有人可以给我分享一些光吗? Thanks very much!
非常感谢!
Azure PowerShell Cmdlets are essentially wrappers around Windows Azure Service Management API. Azure PowerShell Cmdlet本质上是Windows Azure Service Management API的包装。 What you could do is write your own C# code to invoke "Delete Role" ( http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx ) function which will remove the VM.
您可以做的是编写自己的C#代码来调用“删除角色”( http://msdn.microsoft.com/zh-cn/library/windowsazure/jj157184.aspx )函数,该函数将删除VM。
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.