microsoft / coe-starter-kit

Other
751 stars 221 forks source link

[ALM Accelerator - BUG]: Error while doing setup in section "Give Power App Management Permission to your App" #5567

Closed DattaWadkar2022 closed 1 year ago

DattaWadkar2022 commented 1 year ago

Describe the issue

Dear Team, we are doing the setup of ALM Accelerator as per the Microsoft installation document (https://learn.microsoft.com/en-us/power-platform/guidance/alm-accelerator/setup-admin-tasks) , few steps completed successfully but while performing PowerShell steps in the section "Give Power App Management Permission to your App" we are getting following error in first command. We tried all steps mentioned in error bot nothing worked. please suggest.

Error Description:

Windows PowerShell Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\windows\system32> Install-Module -Name Microsoft.PowerApps.Administration.PowerShell

NuGet provider is required to continue PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or 'C:\Users\$dawad\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import the NuGet provider now? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): "Y" [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuGet'. Th At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:7405 char:21

Expected Behavior

Step "Give Power App Management Permission to your App" should complete as per Microsoft guidelines or if any alternative to perform same action.

What component are you experiencing the issue with?

ALM Accelerator Pipelines

What solution version are you using?

1.0

Steps To Reproduce

No response

Anything else?

No response

mikefactorial commented 1 year ago

@DattaWadkar2022 pardon the delayed response. This could be a firewall issue based on the error message. What do you see when you try to navigate to https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409 in a browser?

DattaWadkar2022 commented 1 year ago

I am getting the below response after opening above mentioned link.

<?xml version="1.0" encoding="utf-8"?>

mikefactorial commented 1 year ago

@DattaWadkar2022 can you try running the following manually as suggested in the error message in Powershell running as an administrator?

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
mikefactorial commented 1 year ago

Closing this out as there's nothing more to do here. Feel free to reopen if this is still an issue.