Git Product home page Git Product logo

Comments (13)

JakobGSvendsen avatar JakobGSvendsen commented on August 28, 2024 1

agree. sounds like it, was just trying to come up with ideas to try :D

from azurestack-tools.

JakobGSvendsen avatar JakobGSvendsen commented on August 28, 2024

I synced the repo yesterday and ran this command without issues. just using:
$ISOPath = "C:\Users\AzureStackAdmin\Downloads\14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO"
New-Server2016VMImage -ISOPath $ISOPath -TenantId $aadTenant -IncludeLatestCU -Net35

from azurestack-tools.

markscholman avatar markscholman commented on August 28, 2024

We use credentials stored in a variable:
$ISOPath = "D:\MAS-CON01\Images\en_windows_server_2016_x64_dvd_9718492.iso"
New-Server2016VMImage -ISOPath $ISOPath -TenantId $aadTenant -IncludeLatestCU -Net35 -AzureStackCredentials $AADAdminCredential
Maybe that's an issue.. but we did 30+ servers using this automation script last week.. and I need to redeploy 30+ servers this Friday again :)

from azurestack-tools.

JakobGSvendsen avatar JakobGSvendsen commented on August 28, 2024

could also be if the credentials is in multiple Azure ADs, I had a similar issue/error once when deploying an older TP. Is the account you use from another azure ad? or does it only exist in the tenant that you are providing? otherwise you might want to try to use one that only exist in that AD.

from azurestack-tools.

markscholman avatar markscholman commented on August 28, 2024

Its a single AAD that the admin is administrator of, Also all the stuff upfront just works... it creates a storage account, upload image, then download and the subscriptionId error pops up. so don't believe its an issue in using credentials as a variable but a change in the tools script and parameters that are missed now in the new command.

from azurestack-tools.

ned1313 avatar ned1313 commented on August 28, 2024

The Add-AzureRmGalleryItem Command is missing the -SubscriptionID parameter in version 0.10.6 of the AzureRM.AzureStackAdmin module. I don't know if there was another module providing this cmdlet prior. I should mention that the 0.10.6 version of the module was released yesterday.

from azurestack-tools.

ned1313 avatar ned1313 commented on August 28, 2024

Short term workaround is to comment out line #353 in AzureStack.ComputerAdmin.psm1 and add the line Add-AzureRMGalleryItem -GalleryItemUri $galleryItemURI
Then Remove and Load the ComputeAdmin module. Confirmed that this works.

from azurestack-tools.

markscholman avatar markscholman commented on August 28, 2024

Hi Ned, thanks, I have tried that this morning and gave me some other errors that it cannot validate parameter GalleryItemURI.
Used this script:
$ISOPath = "D:\MAS-CON01\Images\en_windows_server_2016_x64_dvd_9718492.iso"
New-Server2016VMImage -ISOPath $ISOPath -TenantId $aadTenant -IncludeLatestCU -Net35 -AzureStackCredentials $AADAdminCredential -ArmEndpoint $AdminArmEndpoint

All variables has values.

from azurestack-tools.

ned1313 avatar ned1313 commented on August 28, 2024

That's interesting. I used the Add-VMImage cmdlet rather than the New-Server2016VMImage cmdlet to test. I don't see any major differences, but I can do some more testing with the cmdlet you are referencing.

from azurestack-tools.

MatthewMcGlynn avatar MatthewMcGlynn commented on August 28, 2024

Thanks folks - I think I have an idea of the solution. We had some issues with changes that went into the latest AzureStack module. Try using the following when adding the Azure Stack module and let me know if you still see the issue:
Install-Module -Name AzureStack -RequiredVersion 1.2.8 -Scope CurrentUser

I added it to the ReadMe, but it will be a bit longer before it makes it into the official documentation.

from azurestack-tools.

ned1313 avatar ned1313 commented on August 28, 2024

Forcing version 1.2.8 of AzureStack does seem to pull down the correct version of the Add-AzureRMGalleryItem cmdlet. I was also able to run the New-Server2016VMImage cmdlet using the workaround I detailed above.

from azurestack-tools.

markscholman avatar markscholman commented on August 28, 2024

Hi Metthew, I can confirm it works again when specifying the version. So I use this now:
Install-Module -Name AzureRM -RequiredVersion 1.2.8 -Force
Install-Module -Name AzureStack -RequiredVersion 1.2.8 -Force

Thanks

from azurestack-tools.

markscholman avatar markscholman commented on August 28, 2024

By specifying the -requiredversion parameter on the AzureStack module will resolve issues regarding -SubscriptionId parameter errors.

from azurestack-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.