mattmcspirit / azurestack

Azure Stack Resources
80 stars 41 forks source link

No Active Directory endpoint specified for environment 'AzureStackAdmin' #47

Closed devalian closed 5 years ago

devalian commented 5 years ago

Hi,

im having issue on the latest asdk version on test azure stack login. i had tried uninstalled all powershell version, and use this script to install the working version.

any idea what is the issue for below?

VERBOSE: [2:27 AM]::[CONNECTING]:: Logging into the Default Provider Subscription with your Azure Stack Administrator Account used with Azure Active Directory Login-AzureRmAccount : No Active Directory endpoint specified for environment 'AzureStackAdmin' Parameter name: environment At C:\ConfigASDK\ConfigASDK.ps1:1277 char:5

mattmcspirit commented 5 years ago

Hey - you're the second person who's contacted me about the same strange issue.

Could you try with this version?

https://github.com/mattmcspirit/azurestack/blob/temp/deployment/ConfigASDK.ps1

If that doesn't work, could you try cleaning all PowerShell, using the info here: https://github.com/mattmcspirit/azurestack/issues/45#issuecomment-426355082

Close all PS windows, open a new one, then try the temp version again.

Thanks! Matt

devalian commented 5 years ago

Thanks matt!

i rerun everything clean, below is the error it comes back. VERBOSE: [4:10 AM]::[INSTALLPOWERSHELL]:: ASDK Configuration Stage: InstallPowerShell previously completed successfully Get-AzureRmContext : Run Login-AzureRmAccount to login. At C:\ConfigASDK\ConfigASDK.ps1:988 char:1

mattmcspirit commented 5 years ago

Thanks - can you run the following and provide me with the output?

Get-AzureRmProfile
Get-Module -Name "Azure*" -ListAvailable
Get-Module -Name "Azs*" -ListAvailable

I don't know why the script would fail at that point, it looks like it's having an issue at this point:

$scriptStep = "TEST LOGINS"

# Clear all logins
Get-AzureRmContext -ListAvailable | Where-Object {$_.Environment -like "Azure*"} | Remove-AzureRmAccount | Out-Null
Clear-AzureRmContext -Scope CurrentUser -Force

However that doesn't make sense. If you're not logged into Azure, it should just carry on, not cause an error.

devalian commented 5 years ago

Hi Matt,

here is the output. im looking at a way if we can setup another asdk and try the fresh script. PS D:\ASDKfiles> Get-AzureRmProfile VERBOSE: Getting profiles installed on the machine and available for import VERBOSE: Checking if profile 2017-03-09-profile is installed VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\4.1.1\Azure.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4.\Microsoft.WindowsAzure.Commands.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4\Azure.Storage.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\2.3.0\AzureRM.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\1.2.11\AzureRM.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\4.0.2\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4.\Microsoft.Azure.Commands.Compute.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.5.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1.\Microsoft.Azure.Commands.Dns.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\5.0.1\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4.\Microsoft.Azure.Commands.Network.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\5.5.2\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1.\Microsoft.Azure.Commands.Profile.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\6.0.2\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.Resources.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.1.0.1\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4.\Microsoft.Azure.Commands.Management.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\4.0.2\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1.\Microsoft.Azure.Commands.Tags.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\4.0.3\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1.\Microsoft.Azure.Commands.UsageAggregates.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1\AzureRM.UsageAggregates.psm1'. VERBOSE: Checking if profile 2018-03-01-hybrid is installed VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\4.1.1\Azure.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4.\Microsoft.WindowsAzure.Commands.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4\Azure.Storage.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\2.3.0\AzureRM.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\1.2.11\AzureRM.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\4.0.2\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4.\Microsoft.Azure.Commands.Compute.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.5.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1.\Microsoft.Azure.Commands.Dns.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Insights. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Insights\5.0.0\AzureRM.Insights.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\5.0.1\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4.\Microsoft.Azure.Commands.Network.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\5.5.2\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1.\Microsoft.Azure.Commands.Profile.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\6.0.2\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.Resources.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.1.0.1\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4.\Microsoft.Azure.Commands.Management.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\4.0.2\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1.\Microsoft.Azure.Commands.Tags.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\4.0.3\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1.\Microsoft.Azure.Commands.UsageAggregates.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Websites. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Websites\5.0.1\AzureRM.Websites.psm1'. VERBOSE: Checking if profile latest is installed VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\4.1.1\Azure.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4.\Microsoft.WindowsAzure.Commands.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4\Azure.Storage.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\2.3.0\AzureRM.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\1.2.11\AzureRM.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\4.0.2\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4.\Microsoft.Azure.Commands.Compute.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.5.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1.\Microsoft.Azure.Commands.Dns.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Insights. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Insights\5.0.0\AzureRM.Insights.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\5.0.1\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4.\Microsoft.Azure.Commands.Network.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\5.5.2\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1.\Microsoft.Azure.Commands.Profile.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\6.0.2\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.Resources.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.1.0.1\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4.\Microsoft.Azure.Commands.Management.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\4.0.2\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1.\Microsoft.Azure.Commands.Tags.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\4.0.3\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1.\Microsoft.Azure.Commands.UsageAggregates.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Websites. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Websites\5.0.1\AzureRM.Websites.psm1'.

ProfileName : 2018-03-01-hybrid Modules : {AzureRM : 2.3.0 , AzureRM.Compute : 4.0.2 , AzureRM.Websites : 5.0.1 , AzureRM.Storage : 1.1.0.1 }

ProfileName : 2017-03-09-profile Modules : {AzureRM : 1.2.11 , AzureRM.Compute : 1.2.3.4 , AzureRM.Storage : 1.0.5.4 }

WARNING: Some modules from profile(s) latest were not installed. Use Install-AzureRmProfile to install missing modules.

PS D:\ASDKfiles> Get-Module -Name "Azure*" -ListAvailable VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\4.1.1\Azure.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module Azure.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4.\Microsoft.WindowsAzure.Commands.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azure.Storage\1.0.5.4\Azure.Storage.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\2.3.0\AzureRM.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM\1.2.11\AzureRM.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.BootStrapper. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.BootStrapper\0.4.0\AzureRM.BootStrapper.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\4.0.2\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Compute. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4.\Microsoft.Azure.Commands.Compute.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Compute\1.2.3.4\AzureRM.Compute.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.5.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Dns. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1.\Microsoft.Azure.Commands.Dns.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Dns\3.4.1\AzureRM.Dns.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Insights. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Insights\5.0.0\AzureRM.Insights.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\4.2.0\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.KeyVault. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1.\Microsoft.Azure.Commands.KeyVault.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.KeyVault\3.4.1\AzureRM.KeyVault.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\5.0.1\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Network. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4.\Microsoft.Azure.Commands.Network.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Network\1.0.5.4\AzureRM.Network.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\5.5.2\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.profile. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1.\Microsoft.Azure.Commands.Profile.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.profile\3.4.1\AzureRM.Profile.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\6.0.2\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Resources. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.Resources.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1.\Microsoft.Azure.Commands.ResourceManager.Cmdlets.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Resources\4.4.1\AzureRM.Resources.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.1.0.1\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Storage. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4.\Microsoft.Azure.Commands.Management.Storage.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Storage\1.0.5.4\AzureRM.Storage.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\4.0.2\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Tags. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1.\Microsoft.Azure.Commands.Tags.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Tags\3.4.1\AzureRM.Tags.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\4.0.3\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.UsageAggregates. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1.\Microsoft.Azure.Commands.UsageAggregates.dll'. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.UsageAggregates\3.4.1\AzureRM.UsageAggregates.psm1'. VERBOSE: Cannot verify the Microsoft .NET Framework version 4.5.2 because it is not included in the list of permitted versions. VERBOSE: Populating RepositorySourceLocation property for module AzureRM.Websites. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureRM.Websites\5.0.1\AzureRM.Websites.psm1'. VERBOSE: Populating RepositorySourceLocation property for module AzureStack. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AzureStack\1.5.0\AzureStack.psm1'.

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Script 4.1.1 Azure.Storage {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageTableStoredAccessPolicy, New-AzureStorageTable...} Script 1.0.5.4 Azure.Storage {Get-AzureStorageTable, New-AzureStorageTableSASToken, New-AzureStorageTableStoredAccessPolicy, New-AzureStorageTable...} Script 2.3.0 AzureRM Script 1.2.11 AzureRM {Get-AzureRmNetworkSecurityRuleConfig, Set-AzureRmVirtualNetworkSubnetConfig, Remove-AzureRmVMDiagnosticsExtension, New-AzureRmPolicySe... Script 0.4.0 AzureRM.BootStrapper {Update-AzureRmProfile, Uninstall-AzureRmProfile, Install-AzureRmProfile, Use-AzureRmProfile...} Script 4.0.2 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-AzureRmAvailabilitySet...} Script 1.2.3.4 AzureRM.Compute {Remove-AzureRmAvailabilitySet, Get-AzureRmAvailabilitySet, New-AzureRmAvailabilitySet, Update-AzureRmAvailabilitySet...} Script 3.5.1 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmDnsRecordSet...} Script 3.4.1 AzureRM.Dns {Get-AzureRmDnsRecordSet, New-AzureRmDnsRecordConfig, Remove-AzureRmDnsRecordSet, Set-AzureRmDnsRecordSet...} Script 5.0.0 AzureRM.Insights {Get-AzureRmMetricDefinition, Get-AzureRmMetric, Remove-AzureRmLogProfile, Get-AzureRmLogProfile...} Script 4.2.0 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKeyVaultCertificateOperation, Get-AzureKeyVaultCertific... Script 3.4.1 AzureRM.KeyVault {Add-AzureKeyVaultCertificate, Set-AzureKeyVaultCertificateAttribute, Stop-AzureKeyVaultCertificateOperation, Get-AzureKeyVaultCertific... Script 5.0.1 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticationCertificate, New-AzureRmApplication... Script 1.0.5.4 AzureRM.Network {Add-AzureRmApplicationGatewayAuthenticationCertificate, Get-AzureRmApplicationGatewayAuthenticationCertificate, New-AzureRmApplication... Script 5.5.2 AzureRM.profile {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, Enable-AzureRmContextAutosave...} Script 3.4.1 AzureRM.profile {Disable-AzureRmDataCollection, Disable-AzureRmContextAutosave, Enable-AzureRmDataCollection, Enable-AzureRmContextAutosave...} Script 6.0.2 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignment...} Script 4.4.1 AzureRM.Resources {Get-AzureRmProviderOperation, Remove-AzureRmRoleAssignment, Get-AzureRmRoleAssignment, New-AzureRmRoleAssignment...} Script 1.1.0.1 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmStorageAccountKey...} Script 1.0.5.4 AzureRM.Storage {Get-AzureRmStorageAccount, Get-AzureRmStorageAccountKey, New-AzureRmStorageAccount, New-AzureRmStorageAccountKey...} Script 4.0.2 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag} Script 3.4.1 AzureRM.Tags {Remove-AzureRmTag, Get-AzureRmTag, New-AzureRmTag, Login-AzureRmAccount...} Script 4.0.3 AzureRM.UsageAggregates Get-UsageAggregates Script 3.4.1 AzureRM.UsageAggregates {Get-UsageAggregates, Logout-AzureRmAccount, Resolve-Error, Logout-AzAccount...} Script 5.0.1 AzureRM.Websites {Get-AzureRmAppServicePlan, Set-AzureRmAppServicePlan, New-AzureRmAppServicePlan, Remove-AzureRmAppServicePlan...} Script 1.5.0 AzureStack

PS D:\ASDKfiles> Get-Module -Name "Azs*" -ListAvailable VERBOSE: Populating RepositorySourceLocation property for module Azs.Azurebridge.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Azurebridge.Admin\0.2.0\Azs.Azurebridge.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Backup.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Backup.Admin\0.2.0\Azs.Backup.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Commerce.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Commerce.Admin\0.2.0\Azs.Commerce.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Compute.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Compute.Admin\0.2.0\Azs.Compute.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Fabric.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Fabric.Admin\0.2.0\Azs.Fabric.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Gallery.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Gallery.Admin\0.2.0\Azs.Gallery.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Infrastructureinsights.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Infrastructureinsights.Admin\0.2.0\Azs.InfrastructureInsights.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Keyvault.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Keyvault.Admin\0.2.0\Azs.KeyVault.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Network.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Network.Admin\0.2.0\Azs.Network.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Storage.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Storage.Admin\0.2.0\Azs.Storage.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Subscriptions. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Subscriptions\0.2.0\Azs.Subscriptions.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Subscriptions.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Subscriptions.Admin\0.3.0\Azs.Subscriptions.Admin.psm1'. VERBOSE: Populating RepositorySourceLocation property for module Azs.Update.Admin. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\Azs.Update.Admin\0.2.0\Azs.Update.Admin.psm1'.

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Script 0.2.0 Azs.Azurebridge.Admin {Get-AzsAzureBridgeProduct, Invoke-AzsAzureBridgeProductDownload, Get-AzsAzureBridgeActivation, Remove-AzsAzureBridgeDownloadedProduct...} Script 0.2.0 Azs.Backup.Admin {Get-AzsBackupConfiguration, Get-AzsBackup, Restore-AzsBackup, Set-AzsBackupConfiguration...} Script 0.2.0 Azs.Commerce.Admin Get-AzsSubscriberUsage Script 0.2.0 Azs.Compute.Admin {Get-AzsVMExtension, Remove-AzsComputeQuota, New-AzsComputeQuota, Add-AzsPlatformImage...} Script 0.2.0 Azs.Fabric.Admin {Restart-AzsInfrastructureRoleInstance, Get-AzsStorageSystem, Get-AzsScaleUnitNode, Disable-AzsScaleUnitNode...} Script 0.2.0 Azs.Gallery.Admin {Add-AzsGalleryItem, Remove-AzsGalleryItem, Get-AzsGalleryItem} Script 0.2.0 Azs.Infrastructureinsights.Admin {Close-AzsAlert, Get-AzsRegionHealth, Get-AzsAlert, Get-AzsRPHealth...} Script 0.2.0 Azs.Keyvault.Admin Get-AzsKeyVaultQuota Script 0.2.0 Azs.Network.Admin {Get-AzsNetworkQuota, New-AzsNetworkQuota, Get-AzsNetworkAdminOverview, Remove-AzsNetworkQuota...} Script 0.2.0 Azs.Storage.Admin {Restore-AzsStorageAccount, New-AzsStorageQuota, Get-AzsStorageFarmMetricDefinition, Get-AzsQueueServiceMetricDefinition...} Script 0.2.0 Azs.Subscriptions {Get-AzsDelegatedProviderOffer, Remove-AzsSubscription, Get-AzsOffer, New-AzsSubscription...} Script 0.3.0 Azs.Subscriptions.Admin {Add-AzsPlanToOffer, Get-AzsSubscriptionsQuota, Get-AzsDelegatedProviderManagedOffer, Test-AzsNameAvailability...} Script 0.2.0 Azs.Update.Admin {Resume-AzsUpdateRun, Get-AzsUpdateLocation, Get-AzsUpdateRun, Get-AzsUpdate...}

PS D:\ASDKfiles>

mattmcspirit commented 5 years ago

Ok, your results show that you have both profiles and AzureStack module 1.5.0. We need to clean everything - follow the steps here https://github.com/mattmcspirit/azurestack/issues/45#issuecomment-426355082 to complete remove AzureStack PowerShell and the AzureRmProfiles.

To check you have completely removed them, you can run the same commands as in my previous comment and the results should show no Azure Stack modules or AzureRmProfiles.

Once you have done that, go to your ASDKpath, and delete the ConfigAsdkProgressLog.csv file.

Then download the ConfigASDK.ps1 script from my temp branch that I linked to earlier and run your launch command against that script. That should install PS 1.4.0 and the older AzureRmProfile.

Then let me know if it works.

devalian commented 5 years ago

Hi Matt, my apologies for making this long.

i had run thru the comment #45 before. just in case i missed some steps, i rerun it again, and empty returned for the following: Get-AzureRmProfile Get-Module -Name "Azure*" -ListAvailable Get-Module -Name "Azs*" -ListAvailable

then i rerun the code with temp configasdk.ps1. it stopped at the following line: VERBOSE: [5:31 AM]::[VALIDATE ISO]:: Validating ISO path VERBOSE: [5:31 AM]::[VALIDATE ISO]:: Found path to valid ISO file VERBOSE: [5:31 AM]::[VALIDATE ISO]:: The Windows Server 2016 Eval found at E:\Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.iso will be used VERBOSE: [5:31 AM]::[INSTALLPOWERSHELL]:: ASDK Configuration Stage: InstallPowerShell previously completed successfully C:\ConfigASDK\ConfigASDK.ps1 : The term 'Get-AzureRmContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

devalian commented 5 years ago

Hi Matt, i had deploy a fresh ASDK, and rerun the script. this time it works just fine!

im totally clueless what went wrong. perhaps i had installed new version of powershell before running this. and messed up some files.

anyhow, thanks so much for your response and help. 💯

mattmcspirit commented 5 years ago

I think there is an issue when both the old and new PowerShell versions are installed - I'm investigating more, and will write a 'PowerShell Check' in my new version that will handle this better.

The reason your other deployment failed here:

VERBOSE: [5:31 AM]::[VALIDATE ISO]:: Validating ISO path
VERBOSE: [5:31 AM]::[VALIDATE ISO]:: Found path to valid ISO file
VERBOSE: [5:31 AM]::[VALIDATE ISO]:: The Windows Server 2016 Eval found at
E:\Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.iso will be used
VERBOSE: [5:31 AM]::[INSTALLPOWERSHELL]:: ASDK Configuration Stage: InstallPowerShell previously completed successfully
C:\ConfigASDK\ConfigASDK.ps1 : The term 'Get-AzureRmContext' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1

is because you have removed all the PowerShell modules, hence why it cannot find the 'Get-AzureRmContext at all. What you need to do on the broken ASDK node would be to delete the ConfigASDKProgressLog.csv file. This file tracks the progress of the ConfigASDK script, and currently, your csv file says that the 'INSTALLPOWERSHELL' stage completed successfully.

However, we have now removed PowerShell from the system. When the ConfigASDK script runs, it checks this CSV file, and sees that 'INSTALLPOWERSHELL' is completed, so doesn't try to re-install PowerShell again. You can either edit the CSV file to set it as 'Incomplete', or delete the CSV file and the script will create a new one. Then, when the script runs again, it will detect that PS hasn't been installed, and install the right version for you.

Hope that helps for future!

Thanks! Matt