简体   繁体   English

NET项目中的Azure Power Shell cmdlet dll

[英]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.

相关问题 Azure power shell cmdlet:Login-AzureRmAccount interactive在Windows服务器R8上不起作用 - Azure power shell cmdlet: Login-AzureRmAccount interactive doesn't work on windows server R8 如何在 Power Shell 中获取 cmdlet 的所有别名? - How to get all aliases for a cmdlet in power shell? Get-MgApplication 未被识别为 cmdlet 的名称 - Power Shell - Get-MgApplication is not recognized as the name of a cmdlet - Power Shell 引用其他项目dll的C#cmdlet dll加载失败 - C# cmdlet dll that references other project dll fails on load 在Azure中运行Power Shell脚本 - Running a power shell script in Azure Azure在Power Shell中获取证书 - Azure Get Certificate in Power Shell 用于在 Azure DevOps 中使用版本控制和工作 Iteam 进程创建项目的 Power shell 脚本 - Power shell script for Creating Project in Azure DevOps with Version control and work Iteam Proccess 在Power Shell中使用.NET属性 - Working with .NET properties in Power Shell 我正在尝试将本地电源shell用作云电源Z2591C98B70119FE624898B1E424B54B5E9111111111111C98B7011C98B70198B70198B701598B7254B1598B4B4BB724B154B4B4BB798B14B14B14B14B4BB14B14B4BB14B14B4BB14B14B4BB14B14B14B14B14B14B14B14B14B14B11ER - i am trying to use local power shell as cloud power shell (azure power shell vs local power shell ) 无法在 Azure 电源 Shell 中输入密码 - Cannot type password in Azure Power Shell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM