-
Notifications
You must be signed in to change notification settings - Fork 397
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
[BUG] SDK is not accessible via PowerShell 7.X only 5.1 #1343
Comments
There is no out of box support on PowerShell 7, but ServiceFabric module can be loaded and used in PS7 with this command: Import-Module ServiceFabric -UseWindowsPowerShell |
Thanks @dacken. Not the out of the box experience I was hoping for but in case someone else has the same issue I have added the
Each time a PS session starts it will run that statement. |
Describe the bug
Running power shell scripts using imports do not work in PowerShell 7.x only 5.1. The following works fine on the same machine in 5.1 but not 7.x.
Area/Component:
SDK with PowerShell 7.x
To Reproduce
Steps to reproduce the behavior:
Test two
Get-Command *ServiceFabricCluster* -All
Get-Command *ServiceFabricCluster* -All
Notice 5.1 has all the expected commands and 7.x does not.
Expected behavior
In 5.1
Observed behavior:
Service Fabric Runtime Version:
Microsoft Azure Service Fabric 8.2.1571.9590
Microsoft Azure Service Fabric SDK 5.2.1571.9590
Environment:
Additional context
PowerShell 7.x is coming directly from the Windows Store. Running these in VS Code terminals.
Version: 1.66.2 (system setup)
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:46:01.075Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19044
Assignees: /cc @microsoft/service-fabric-triage
The text was updated successfully, but these errors were encountered: