Comments (13)
agree. sounds like it, was just trying to come up with ideas to try :D
from azurestack-tools.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
By specifying the -requiredversion parameter on the AzureStack module will resolve issues regarding -SubscriptionId parameter errors.
from azurestack-tools.
Related Issues (20)
- VPN connection to ASDK failed on 1902 HOT 7
- bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, HOT 1
- When Trying to Register ASDK Deployment getting failure message (1904) HOT 2
- Unregister-AzSGuestDirectoryTenant is always pointing to the Consumption Subscription HOT 4
- Script Fails on MacOSX under powershell core due to $env:TEMP
- The specified module 'ECEClient.psm1' was not loaded HOT 5
- MSAssetTag HOT 4
- cannot find the json file HOT 4
- Register-AzsWithMyDirectoryTenant fails HOT 3
- Export-AzsMarketplaceItem only downloads productDetails.json HOT 1
- Task: Invocation of interface 'Configure' of role 'Cloud\Fabric\SQL' failed. Step 60.62.101 HOT 3
- Error Activating Azure Stack in Disconnected Mode
- Set-AzsRegistration relies on the AzureRM modules HOT 1
- FIXED: Az Registration script RegisterWithAzure.psm1 throwing -- InvalidRegistrationToken : The registration token is malformed. HOT 2
- Azure Stack installation checks for company admin role instead of global admin
- Usagesummary.ps1 does not properly handle [DateTime] variants for StartTime/EndTime HOT 5
- "Import-Module ..\" is not correct
- asdk-prechecker.ps1-script has encoding errors (or something) HOT 1
- This repo is missing important files HOT 1
- Setting up an Azure Stack environment and the best way to sync the data between the Azure Stack and Azure Public cloud HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurestack-tools.