PowerShell snap-in 'AzureManagementToolsSnapin' is not installed on this computer -


i've download script uses 'azuremanagementtoolssnapin' on first line below: add-pssnapin azuremanagementtoolssnapin

i read few blogs , downloaded azure powershell cmdlets link below: http://wappowershell.codeplex.com/releases/view/84058

when tried install per given documentation on link below i'm not being able install. logs error below don't understand why:

installing assembly 'c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll'. affected parameters are: = assemblypath = c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll logfile = c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.installlog logtoconsole = exception occurred while trying find installers in c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll assembly. system.reflection.reflectiontypeloadexception: unable load 1 or more of requested types. retrieve loaderexceptions property more information. aborting installation c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll. rolling assembly 'c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll'. affected parameters are: = assemblypath = c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll logfile = c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.installlog logtoconsole = exception occurred while trying find installers in c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll assembly. system.reflection.reflectiontypeloadexception: unable load 1 or more of requested types. retrieve loaderexceptions property more information. aborting installation c:\windowsazure\wappscmdletsbin\release\microsoft.windowsazure.samples.managementtools.powershell.dll.

please, me understand i'm missing. tried download below: http://www.windowsazure.com/en-us/downloads/

however, lots of functions on script download doesn't seem exist on windows azure powershell.

the powershell code snippet looks below, not sure it's outdated:

add-pssnapin azuremanagementtoolssnapin  #bla bla  get-hostedservices -subscriptionid $sub -certificate $cert|select servicename|  foreach {  #logic here $service = $_.servicename  write-host $service  $deployid = (get-hostedservice $service -subscriptionid $sub -certificate $cert | get-deployment staging).deploymentid         get-diagnosticawareroles -storageaccountname $storage -storageaccountkey $key -deploymentid $deployid |   foreach {        #do stuff here      }     }    } 

thanks.

the codeplex site indicates second link correct 1 download from. @ bottom, under command line tools, link powershell.

i downloaded that, installed, started new posh session , found there azure module, no snap-in. seem recall reading somewhere microsoft pushing migrate away snap-ins , toward modules.

    directory: c:\program files (x86)\microsoft sdks\windows azure\powershell   moduletype name                                exportedcommands ---------- ----                                ---------------- binary     azure                               {disable-azureserviceprojectremotedesktop, enable-azurememcacherole, ... 

without having script you're trying execute, it's impossible diagnose specific issue. working little outdated , you'll need switch loading module instead of snap-in @ least.

edit after original post edit:

the cmdlets called in sample don't exist in azure module, get-azuredeployment maps get-deployment, get-azureservice may map get-hostedservices , get-azurerole may map get-diagnosticawareroles - don't know azure.

the short version is, if codeplex snap-in isn't working you, , official word should using module downloaded microsoft (the 1 refer above), you're going have make adjustments.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -