-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-Server2016VMImage - Error after download image. #104
Comments
I synced the repo yesterday and ran this command without issues. just using: |
We use credentials stored in a variable: |
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. |
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. |
agree. sounds like it, was just trying to come up with ideas to try :D |
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. |
Short term workaround is to comment out line #353 in AzureStack.ComputerAdmin.psm1 and add the line Add-AzureRMGalleryItem -GalleryItemUri $galleryItemURI |
Hi Ned, thanks, I have tried that this morning and gave me some other errors that it cannot validate parameter GalleryItemURI. All variables has values. |
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. |
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: I added it to the ReadMe, but it will be a bit longer before it makes it into the official documentation. |
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. |
Hi Metthew, I can confirm it works again when specifying the version. So I use this now: Thanks |
By specifying the -requiredversion parameter on the AzureStack module will resolve issues regarding -SubscriptionId parameter errors. |
The build of the VHD completes, upload works, then after downloading an error occurred about that 'A parameter cannot be found that matches parameter name 'SubscriptionId'.' We had it working on the same hosts (30+) last week. Now its broken since 2 days.
The text was updated successfully, but these errors were encountered: