Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 546

PowerShell • Variable Fails to get set to value returned from Azure

$
0
0
To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: PowerShell Studio 2024, Version 5.8.243
Operating system: Windows 10 Enterprise 64 bit 22H2
PowerShell version(s): 5.1.19041.4291

*** Please add details and screenshots as needed below. ***
The following code does not work properly in PowerShell Studio 2024. It should set the variable $rValue to the object returned from Azure, but instead it skips ahead and just keeps running the script. In Windows Powershell ISE it works corectly and the variable gets populated. I have tried many variations of this code and no matter what I do, it fails to work. AND in the output, you can clearly see the object was returned from Azure.

Code:

$rValue = Get-AzFunctionApp -Name $fullFunctionAppName -ResourceGroupName $resourcegroup.ResourceGroup.ResourceGroupName

if ($rvalue)
{
echo "not null"
}
else
{
echo "null"
}
Please let me know what other information you may need.

Thank You

Statistics: Posted by mjwoodsphx — Wed May 29, 2024 3:27 pm



Viewing all articles
Browse latest Browse all 546

Trending Articles