Forum Discussion
AAD PowerShell Commands not working (get-msol ...)
- Oct 06, 2016These cmdlets are not supported in the Azure Active Directory Module for Windows PowerShell GA (v.1.1.166.0) which you have installed. Instead you can install V1.1.130.0 public preview and use it. See release notes from below link for more details.
http://connect.microsoft.com/site1164/Downloads/DownloadDetails.aspx?DownloadID=59185
Hi Christopher, thanks for your feedback.
Please note: the MSOL preview cmdlets for Settings have not stopped working and can be used just as before. However, since we have deprecated these cmdlets and replaced them with newer cmdlets in the V2 module we no longer publish the module in in which they were exposed.
To answer your question about releases and versions:
There are two releases for Azure AD PowerShell that our team publishes: the preview release and the GA release. As I mentioned in my previous comment, the GA release is a subset of the preview release.
These two releases have separate download links: https://www.powershellgallery.com/packages/azureadpreview for the preview release, and https://www.powershellgallery.com/packages/azuread for the GA release.
Both these links will redirect to the latest version. If you scroll down the download page you will see all older versions and can go to their respective module pages. There are currently 18 older versions of the preview module available for installation.
To install the preview version, you would use Install-module AzureADPreview, to install the GA version use Install-Module AzureAD. The Install-module cmdlet always installs the latest version of a module. If you require a previous version you can install this by specifying the -required version parameter, as in:
Install-module AzureADPreview -RequiredVersion 2.0.0.52
The reason we publish preview versions of the module is that we know that for new capabilities, customers often like to get their hands on them as quickly as possible to investigate the new functionality. We encourage this as it often provides valuable feedback that allows us to improve and fine tune our cmdlets based on this feedback. Note that these improvements could potentially introduce breaking changes, so we mention in all of our documentation that preview cmdlets should not be used in a production environment.
A breaking change was introduced for the MSOL Setting cmdlets when we moved those to the Azure AD PowerShell V2 module. The full capability of the cmdlets is available in V2 and has not changed.
I'm sorry if this change has caused confusion.
We are working with teams within Microsoft and with 3rd parties that have pubished references to the MSOL Settings cmdlets to get these updated to reflect this change.
Thanks again for your feedback.
-Rob
for me the most confusing part was that a lower build number preview had commandlets that a higher version build GA version did not have.
V2 helps in this regard, with the -preview prefix for commands. I believe those were not available in v1, right?
For me it wasn't clear that those were not preview versions in v1, but in reality a completely different release channel. What didn't help either was, that the preview channel didn't include commandlets from previous versions.