1)発生エラー
PS C:\Users\k-abe> Get-AzureRmStorageAccount
Get-AzureRmStorageAccount : Run Login-AzureRmAccount to login.
発生場所 行:1 文字:1
+ Get-AzureRmStorageAccount
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Get-AzureRmStorageAccount]、PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountComma
nd
2)原因は、
PS C:\Users\k-abe> Get-Module
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 3.1.0 Azure {Add-AzureAccount, Add-AzureApplicationGatewaySslCerti...
Manifest 2.3.0 Azure.Storage {Get-AzureStorageBlob, Get-AzureStorageBlobContent, Ge...
Script 2.5.0 AzureRM.profile {Add-AzureRmAccount, Add-AzureRmEnvironment, Disable-A...
Manifest 3.3.0 AzureRM.Resources {Export-AzureRmResourceGroup, Find-AzureRmResource, Fi...
Manifest 2.3.0 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountK...
Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear...
Manifest 3.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-SecureString, ConvertTo-SecureString, Get...
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
Manifest 3.0.0.0 Microsoft.WSMan.Management {Connect-WSMan, Disable-WSManCredSSP, Disconnect-WSMan...
Binary 1.0.0.1 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-...
Script 1.0.0.1 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-Rol...
3)対応は、Web Platform Installer 5.0で「Microsoft Azure PoserShell」をアップデイトしました。
対応後のバージョン
PS C:\Users\k-abe> Get-Module
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Manifest 2.5.0 Azure.Storage {Get-AzureStorageBlob, Get-AzureStorageBlobContent, Ge...
Manifest 2.5.0 AzureRM.Profile {Add-AzureRmAccount, Add-AzureRmEnvironment, Disable-A...
Manifest 2.5.0 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountK...
Script 1.0.0.0 ISE {Get-IseSnippet, Import-IseSnippet, New-IseSnippet}
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear...
Manifest 3.0.0.0 Microsoft.PowerShell.Security {ConvertFrom-SecureString, ConvertTo-SecureString, Get...
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object...}
4)本来は、コマンドでアップデイトしてほしいが、↓のエラーが発生してできなかった
PS C:\WINDOWS\system32> Install-Module AzureRM
信頼されていないリポジトリ
信頼されていないリポジトリからモジュールをインストールしようとしています。このリポジトリを信頼する場合は、Set-PSReposit
ory コマンドレットを実行して、リポジトリの InstallationPolicy の値を変更してください。'PSGallery'
からモジュールをインストールしますか?
[Y] はい(Y) [A] すべて続行(A) [N] いいえ(N) [L] すべて無視(L) [S] 中断(S) [?] ヘルプ (既定値は "N"): A
PackageManagement\Install-Package : A command with name 'Get-AzureStorageContainerAcl' is already available on this system. This module 'Azure.Storage' may override the existing commands. If you still want to install this module 'Azure.Storage', use -AllowClobber parameter.
発生場所 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 文字:21
+ ... $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package]、Exception
+ FullyQualifiedErrorId : CommandAlreadyAvailable,Validate-ModuleCommandAlreadyAvailable,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
しかし、PowerShellでAzureが使えると非常に楽になるなぁ
Thanks for providing such a great information about Azure.
返信削除Microsoft Azure Online Training
Nice article I was impressed by seeing this blog, it was very interesting and it is very useful for me
返信削除oracle training in chennai
oracle training institute in chennai
oracle training in bangalore
oracle training in hyderabad
oracle training
hadoop training in chennai
hadoop training in bangalore