Azure / Azure/aksArc

[BUG] PowerShell Core Support

Open
#86 1 comment 0 reactions 1 assignee Claimed by @jessicaguan-zz View on GitHub
Enhancement
Dominant language
PowerShell
Stars
118
Forks
63
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When attempting to use the AKSHCI PowerShell module in PowerShell Core on Windows or MacOS the module fails to load.

**To Reproduce**
Steps to reproduce the behavior:
1. Open PowerShell Core on Windows or MacOS
2. Import-Module AKSHCI

Import-Module akshci
Import-Module: The term 'New-EventLog' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

**Expected behavior**
Module will import successfully.

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://user-images.githubusercontent.com/44039943/113460558-0a487980-93ce-11eb-8bba-41e7a8fa6299.png)

**Environment (please complete the following information):**
- OS: Windows PowerShell 7.1.3 or MacOS PowerShell 7.1.3
- AKS-HCI Version (i.e. Public Preview March 2021)

**Additional context**
Issue occurs as well if you connect to server using PS 7.1.3 remotely using enter-psssesion to remote PS Core based server.
Module works as expected using PS 5.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.