You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
ID: a2eab542-a420-d6c5-d314-a420837cf602
Version Independent ID: 48c12168-54f3-0b83-f136-565f483a03e9
@bwarren18Revised: 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 ...
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.
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.
The text was updated successfully, but these errors were encountered: