Skip to content

Dec 19th Community Call Discussion #238

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

Closed
SteveL-MSFT opened this issue Dec 18, 2019 · 34 comments
Closed

Dec 19th Community Call Discussion #238

SteveL-MSFT opened this issue Dec 18, 2019 · 34 comments

Comments

@SteveL-MSFT
Copy link
Member

SteveL-MSFT commented Dec 18, 2019

Preload questions and topics for the https://aka.ms/pscommunitycall on Dec 19th, 2019 here (join directly at https://aka.ms/JoinPSCall). This issue will also be used for chat during the call.

Current agenda:

  1. PS7 GA, PS7 docs
  2. PSReadLine 2.0 GA
  3. VSCode-PS/PSEditorServices 2.0 GA
  4. Secrets Management and PSGetv3 update
  5. TextUtility module demo
@GoateePFE
Copy link

GoateePFE commented Dec 18, 2019

Hi folks,
With the xcopy install style of PS core it is possible to have multiple "installs" on the same box at different places and versions. How are enterprises to manage and report on these multiple versions effectively across thousands of machines?
Thanks,
Ashley

@ziabytes
Copy link

we can hear you

@ziabytes
Copy link

ziabytes commented Dec 19, 2019

2 Things:

  1. Are any powershell updates including possibly SOME modules be updateable via the windows updates?
  2. Was there anything to capture object outputs into variables for remote commands? like from Invoke-command on a separate computer on the network?

@ThomasNieto
Copy link

Is there a timeline to deprecate Windows PS below 5.1 (3.0, 4.0, 5.0)? If so, when?

@dmbrown1386
Copy link

Sorry if this is phrased poorly, but one issue I've had with PS7 is using the AD module. Specifically with using the -Filter parameter with a variable. I get error that the variable is not defined, anyone else had a similar problem?

@Jaykul
Copy link
Contributor

Jaykul commented Dec 19, 2019

FWIW the "AcceptAndGetNext" off-by-one bug is really still annoying in PSReadLine PowerShell/PSReadLine#990

@DarwinJS
Copy link

DarwinJS commented Dec 19, 2019

MacOS Catalina = Windows Vista :) . I had to change to Mac for work since starting at GitLab.

FYI - Since the RC only targets the old PS7 folders on a client, I put it up on powershell-preview chocolatey package id only. That package lets all packages be visible even if preview.

@vexx32
Copy link
Contributor

vexx32 commented Dec 19, 2019

@dmbrown1386 I'd suggesting hopping into the help channels in https://aka.ms/psslack or https://aka.ms/psdiscord and asking there. The answer is well known but requires some explanation and would get a bit lost in this discussion as it progresses, I think. 🙂

@Ayanmullick
Copy link

Question from a Microsoft certified trainer. Is there an ETA on when the Microsoft official coursewares 10961, 10962, 55069 would be updated with visual studio code steps for PowerShell 7? Currently the coursewares exercises steps are still in PowerShell ISE.

@dmbrown1386
Copy link

Thanks @vexx32 I'll give that a try!

@Ayanmullick
Copy link

Ayanmullick commented Dec 19, 2019

Is Microsoft planning to make available a PowerShell SDK for the Azure Bot framework? PowerShell's noun-verb format could prove useful while creating\managing entities and intents for Bot-designing.

@ziabytes
Copy link

SO i saw that https://devblogs.microsoft.com/dotnet/an-introduction-to-dataframe/ dataframe came to .Net just like python, which is very nice

is it by chance coming to posh as well?

@vexx32
Copy link
Contributor

vexx32 commented Dec 19, 2019

@SteveL-MSFT does that Select-Text still expose usable objects, or is it purely a display cmdlet?

@Jaykul
Copy link
Contributor

Jaykul commented Dec 19, 2019

I think that shipping Select-String and Select-Text would be really confusing ;-) -- but while you're working on it ... it should output the table headers ;-)

@SteveL-MSFT
Copy link
Member Author

@vexx32 it returns strings :) I''ll probably add a switch to return Match objects but default will be strings

@Jaykul table headers is interesting and can see how that would be useful

@ili101
Copy link

ili101 commented Dec 19, 2019

Are we going to get freezing consoles/VSCode until windows 21H1? can't it be fixed sooner?
microsoft/vscode#71966
microsoft/terminal#1810

@ThomasNieto
Copy link

How are we going to handle upgrading PSReadline from Beta to Stable? There is a PowerShellGet defect where it cannot handle upgrading a in-use binary module.

https://github.com/PowerShell/PowerShellGet/issues/204

@SteveL-MSFT
Copy link
Member Author

@Ayanmullick check out https://github.com/stevel-msft/poshchan-bot

@Ayanmullick
Copy link

Ayanmullick commented Dec 19, 2019

Can the GitHub Actions Workflow be written in PowerShell? PowerShell is not in the list of languages for GitHub Actions on the website.
image

@vexx32
Copy link
Contributor

vexx32 commented Dec 19, 2019

@SteveL-MSFT add a switch to Select-String 😛

Doesn't seem like Select-Text has a need to be a whole separate thing. 🤷‍♂

@JustinGrote
Copy link
Contributor

JustinGrote commented Dec 19, 2019

Can the GitHub Actions Workflow be written in PowerShell? PowerShell is not in the list of languages for GitHub Actions on the website.
@Ayanmullick

Yes! You can make a github action either with native javascript to call pwsh.exe or just use the .NET core container as your base. I've made several.

@JustinGrote
Copy link
Contributor

Are we going to get freezing consoles/VSCode until windows 21H1? can't it be fixed sooner?
microsoft/vscode#71966
microsoft/terminal#1810

@ili101 that looks like a VSCode specific issue, not powershell related, although there is a known issue where the new powershell preview VSCode extension can occasionally hang when restarting the session terminal:
PowerShell/vscode-powershell#2377

@ThomasNieto
Copy link

You can also workaround the PowerShellGet defect by having the stable PSReadline version be 2.0.1 instead of 2.0.0 for this release.

@JustinGrote
Copy link
Contributor

Who owns SHiPS these days? It needs some love to add Set-Item and Remove-Item and New-Item APIs

@oising
Copy link

oising commented Dec 19, 2019

Isn't ships based on Jim Christopher's provider foundation anyway? Ships is a shim, as far as I know.

@ThomasNieto
Copy link

What is the plan for rewriting the PS Provider framework to be easier and less complex? It can also remove the need to have a SHiPS module at all.

@oising
Copy link

oising commented Dec 19, 2019

It's not forked, it's definitely a shim of Jim's work: https://devblogs.microsoft.com/powershell/navigate-azure-resources-just-like-a-file-system/

@Jaykul
Copy link
Contributor

Jaykul commented Dec 19, 2019

Yes, SHiPS is BASED ON (and DEPENDS ON) JIm's stuff

@rkeithhill
Copy link

Where did you wind up on the consise error view's error message & indicator position? Will that change make it into PS 7 GA?

@JustinGrote
Copy link
Contributor

Here's an example of a provider I wanted to do, related to SecretsManagement:
https://twitter.com/JustinWGrote/status/1207426300077473793

@ili101
Copy link

ili101 commented Dec 19, 2019

GitHub "Packages" have no PowerShell Gallery option. riot...
image

@oising
Copy link

oising commented Dec 19, 2019

We all love Jim -- I gave him his own guid for his birthday once, "beefbeef-beef-beef-beef-beefbeefbeef"

@JustinGrote
Copy link
Contributor

@ili101 their nuget only supports v3, PSGet only supports v2. Guess you'll have to wait for PSGetv3 :/

@Jaykul
Copy link
Contributor

Jaykul commented Dec 19, 2019

As a challenge to @SteveL-MSFT 😜

function where-text {
    param($pattern)
    $input | Format-Table | Where { $_.GetType() -match "Start|End" -or $_.formatEntryInfo.formatPropertyFieldList.propertyValue -match $pattern } | 
        ForEach { 
           if ( $_.GetType() -notmatch "Start|End" ) {
               $_.formatEntryInfo.formatPropertyFieldList | Where propertyValue -match $pattern | % {
                   $_.propertyValue = $_.propertyValue -replace "($pattern)", "$fg:Red`$1$fg:Clear"
               }
           }
           $_
       }
}

image

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