Skip to content
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

What does powerShellVersion "~7" actually mean? #885

Closed
Eonasdan opened this issue Oct 31, 2022 · 2 comments
Closed

What does powerShellVersion "~7" actually mean? #885

Eonasdan opened this issue Oct 31, 2022 · 2 comments

Comments

@Eonasdan
Copy link

Sorry if this is the right place to ask this.

I am working on making sure my FA are all on the latest LTS version of dotnet and PowerShell. I'm update my arm template to deploy a PowerShell FA. I set the value of "powerShellVersion": "~7" under the Microsoft.Web/sites/properties/siteconfig

After deploying, I checked the app in Azure and was greeted with this message:

image

My expectation based on my experience with npm would be that the ~ means "at this version-ish". Do I need to set this specifically to 7.2? If I did, does that mean ~7.2.x?

@Francisco-Gamino
Copy link
Contributor

Francisco-Gamino commented Nov 2, 2022

Hello @Eonasdan -- "~7" in this case refers to "7.0.x". When we first added support for PowerShell 7.0, this was under the assumption that there would be no breaking changes between Powershell 7.0 and 7.2. Unfortunately, this was not the case, and as a result, we could not directly update customers with ~7 as their PowerShell version to 7.2. Going forward we will require our customers to include both the major and minor version.

Do I need to set this specifically to 7.2? If I did, does that mean ~7.2.x?

Now, 7.2 means 7.2.x.

@Francisco-Gamino Francisco-Gamino pinned this issue Nov 2, 2022
@Eonasdan
Copy link
Author

Eonasdan commented Nov 3, 2022

Thanks for the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants