Skip to content

Setting platform to 64 bit does not really set the environment to 64 bit #16489

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
bwarren18 opened this issue Jan 9, 2020 — with docs.microsoft.com · 3 comments
Closed
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue support-request
Milestone

Comments

Copy link

I appreciate the additional information but this is still really confusing.

I am trying to use a cmdlet that requires 64 bit but I am struggling to get it to work in Azure AppService.

I created a new AppService, chose a Windows Plan and chose the S1 Tier.
I tried with the Stack set to .NET Core and .NET (V4.7) and set the Platform to 64 bit.
However in both cases [Environment]::Is64BitProcess returns false and the cmdlet (invoke-sqlcmd) fails.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Jan 9, 2020
@guardrex
Copy link
Collaborator

guardrex commented Jan 10, 2020

@bwarren18 Revised: That cmdlet is in the SQL Server PowerShell cmdlets. I wasn't able to install the module (the shell complains about admin rights). I'm going to close here because we can't assist further. Research further in the PowerShell docs. If you don't find out how to use the cmdlet, ask on a support forum or chat ...

Copy link
Author

@guardrex, how about just running [Environment]::Is64BitProcess that doesn't work either if the platform is set to 64-bit.

@guardrex
Copy link
Collaborator

The switch in the UI to 64-bit affects the IIS w3wp.exe process, not the process for the shell.

There are some similar questions out there pertaining to the shell. I found one at Azure/azure-functions-powershell-worker#232 (comment). If the shell is 32-bit (seems likely here), then the behavior makes sense.

I don't recall ever having to run a PS script in the Azure Apps Kudu PowerShell shell. I almost always run PS for local tasks on my dev machine, so I don't have personal experience with this scenario. I took a stab at getting that module installed in the shell in Azure, but it choked on admin permissions.

The best course is to contact devs on a support forum/chat who use that shell and know its ins-and-outs and/or continue to research for issues/blogs/MS docs that speak to bitness issues in that shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Source - Docs.ms Docs Customer feedback via GitHub Issue support-request
Projects
None yet
Development

No branches or pull requests

3 participants