Azure Powershell Cmds Not working in ISE -
it seems windows azure powershell console not have same configuration ise.
for instance, after opening console windows following cmdlet works: get-azurevmimage
now when enter ise open ise application same cmdlet not found.
get-azurevmimage : term 'get-azurevmimage' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again.
i can see console window contains following modules:
moduletype name exportedcommands ---------- ---- ---------------- binary azure {add-azureaccount, add-azurecacheworkerrole, add-azurecertificate, ad... manifest microsoft.powershell.management {add-computer, add-content, checkpoint-computer, clear-content...} manifest microsoft.powershell.security {convertfrom-securestring, convertto-securestring, get-acl, get-authe... manifest microsoft.powershell.utility {add-member, add-type, clear-variable, compare-object...}
the ise showing azure module missing.
moduletype name exportedcommands ---------- ---- ---------------- script ise {get-isesnippet, import-isesnippet, new-isesnippet} manifest microsoft.powershell.management {add-computer, add-content, checkpoint-computer, clear-content...} manifest microsoft.powershell.security {convertfrom-securestring, convertto-securestring, get-acl, get-authenticodesignature...} manifest microsoft.powershell.utility {add-member, add-type, clear-variable, compare-object...} binary microsoft.windowsazure.commands {get-azureautomationaccount, get-azureautomationjob, get-azureautomationjoboutput, get-azureautomationrunbook...} manifest microsoft.wsman.management {connect-wsman, disable-wsmancredssp, disconnect-wsman, enable-wsmancredssp...}
so path of azure module , import so:
import-module "c:\program files (x86)\microsoft sdks\windows azure\powershell\servicemanagement\azure\microsoft.windowsazure.commands.dll"
but get-azurevmimage still not work. how both shell , ise behave same?
thanks
turns out need reboot after installing azure powershell commands , ise see azure cmdlets. no need run import-module.
Comments
Post a Comment