Bug/Issue: You are running the legacy version of PnP PowerShell. This version will be archived soon which means that while staying available, no updates or fixes will be released. Consider installing the newer prereleased cross-platform version of PnP PowerShell. This version has numerous improvements and many more cmdlets available. To install the new version: Uninstall-Module -Name SharePointPnPPowerShellOnline -AllVersions -Force Install-Module -Name PnP.PowerShell Read more about the new cross-platform version of PnP PowerShell at https://pnp.github.io/powershell To hide this message set the environment variable PNPLEGACYMESSAGE to "false" In PowerShell add $env:PNPLEGACYMESSAGE='false' to your profile. Alternatively use 'Connect-PnPOnline -Url [yoururl] -WarningAction Ignore' #4450
Replies: 4 comments 4 replies
-
Hi, we will not be doing that. Azure automation supports PS 7.2 , so would advise you to use 2.12.0 major version . |
Beta Was this translation helpful? Give feedback.
-
What command did you use to install it ? Because that error message is found only in https://github.com/pnp/PnP-PowerShell which is an old version which corresponds to https://www.powershellgallery.com/packages/SharePointPnPPowerShellOnline , while the new version is https://www.powershellgallery.com/packages/PnP.PowerShell |
Beta Was this translation helpful? Give feedback.
-
Hello @gautamdsheth @jackpoz In azure automation account I have installed the version 2.12.0 which is available from browse gallery and one of the script that is running in that automation account gives me a warning that there is a newer version 2.99.16 available and to install it. But this version is not available in Browse gallery. So I tried to install it using deploy in Azure automation from the pnp.powershell link and it was installed and then I run the script and it was showing the message that I have added in the title. Then I deleted the 2.99.16 version and checked and it shows again the warning to install 2.99.16 this is the behaviour. I am also getting SSL Connection error. Check inner exception Do we know why we getting this? In the azure automation browse gallery I have installed the pnp.powershell and sharepointpnp.powershell versions |
Beta Was this translation helpful? Give feedback.
-
Hello @jackpoz @gautamdsheth I removed the sharepointpnppowershellonline modules and had only the pnp.powershell 2.12.0 version Today I got the same error. I am getting in the line 54 But in my script the Line 54 has $null = Set-AzContext -Subscription $subscription.SubscriptionID As I said before this error occurs appears occasionally. |
Beta Was this translation helpful? Give feedback.
-
Hello @erwinvanhunen
I tried to install the Latest 2.99.16 nighty package in azure automation and I am receiving this warning message .
You are running the legacy version of PnP PowerShell. This version will be archived soon which means that while staying available, no updates or fixes will be released. Consider installing the newer prereleased cross-platform version of PnP PowerShell. This version has numerous improvements and many more cmdlets available. To install the new version: Uninstall-Module -Name SharePointPnPPowerShellOnline -AllVersions -Force Install-Module -Name PnP.PowerShell Read more about the new cross-platform version of PnP PowerShell at https://pnp.github.io/powershell To hide this message set the environment variable PNPLEGACYMESSAGE to "false" In PowerShell add $env:PNPLEGACYMESSAGE='false' to your profile. Alternatively use 'Connect-PnPOnline -Url [yoururl] -WarningAction Ignore'
Can you Please advise on this ?
or Can you release the Latest version in the Browse gallery available with 7.1 runtime version.
Thank You.
Beta Was this translation helpful? Give feedback.
All reactions