Skip to content
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

Getting error in Function app " Run Connect-AzAccount to login." #26828

Closed
DharshiniThil opened this issue Dec 4, 2024 · 4 comments
Closed
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Functions needs-author-feedback More information is needed from author to address the issue. Service Attention This issue is responsible by Azure service team.

Comments

@DharshiniThil
Copy link

DharshiniThil commented Dec 4, 2024

Description

I was trying to get the Azure key vault secret value from function app in Powershell 7.4.

$secret = Get-AzKeyVaultSecret -VaultName "<your-unique-keyvault-name>" -Name "ExamplePassword" -AsPlainText

which is giving error "[Error] ERROR: Run Connect-AzAccount to login."

After this I have added
'Az' = '13.*' 'Az.KeyVault' = "6.3.0" 'Az.Accounts'='4.*'
in requirements.psd1 file and
Install-Module -Name Az.KeyVault -RequiredVersion "6.3.0" in profile.ps1 file.

But the function app is giving Response code 500 Internal error

Issue script & Debug output


Exception             : 
    Type        : System.Management.Automation.PSInvalidOperationException
    ErrorRecord : 
        Exception             : 
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : Run Connect-AzAccount to login.
            HResult : -2146233087
        CategoryInfo          : InvalidOperation: (:) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : InvalidOperation
    TargetSite  : 
        Name          : get_DefaultContext
        DeclaringType : [Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet]
        MemberType    : Method
        Module        : Microsoft.Azure.PowerShell.Clients.ResourceManager.dll
    Message     : Run Connect-AzAccount to login.
    Source      : Microsoft.Azure.PowerShell.Clients.ResourceManager
    HResult     : -2146233079
    StackTrace  : 
   at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext()
   at Microsoft.Azure.Commands.KeyVault.Models.KeyVaultCmdletBase.get_DataServiceClient()
   at Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret.ExecuteCmdlet()
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
CategoryInfo          : CloseError: (:) [Get-AzKeyVaultSecret], PSInvalidOperationException
FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret
InvocationInfo        : 
    MyCommand        : Get-AzKeyVaultSecret
    ScriptLineNumber : 15
    OffsetInLine     : 19
    HistoryId        : 1
    ScriptName       : C:\home\site\wwwroot\HttpTrigger2\run.ps1
    Line             : $securedPassword =Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "UserPassword" -AsPlainText
                       
    Statement        : Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "UserPassword" -AsPlainText
    PositionMessage  : At C:\home\site\wwwroot\HttpTrigger2\run.ps1:15 char:19
                       + … edPassword =Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "U …
                       +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PSScriptRoot     : C:\home\site\wwwroot\HttpTrigger2
    PSCommandPath    : C:\home\site\wwwroot\HttpTrigger2\run.ps1
    InvocationName   : Get-AzKeyVaultSecret
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger2\run.ps1: line 15
PipelineIterationInfo : 

Environment data

024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : PSVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : 7.4.4
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : PSVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : PSEdition
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : Core
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : PSEdition
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : GitCommitId
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : 7.4.4
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : GitCommitId
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : OS
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : Microsoft Windows 10.0.20348
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : OS
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : Platform
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : Win32NT
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : Platform
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : PSCompatibleVersions
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : {1.0, 2.0, 3.0, 4.0…}
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : PSCompatibleVersions
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : PSRemotingProtocolVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : 2.3
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : PSRemotingProtocolVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : SerializationVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : 1.1.0.1
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : SerializationVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: 
2024-12-04T06:56:01Z   [Information]   OUTPUT: Key   : WSManStackVersion
2024-12-04T06:56:01Z   [Information]   OUTPUT: Value : 3.0
2024-12-04T06:56:01Z   [Information]   OUTPUT: Name  : WSManStackVersion

Module versions

 Directory: C:\program files (x86)\siteextensions\functions\4.1036.3\workers\powershell\7.4\runtimes\win\lib\net8.0\Modules
2024-12-04T07:17:23Z   [Information]   OUTPUT: 
2024-12-04T07:17:23Z   [Information]   OUTPUT: ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
2024-12-04T07:17:23Z   [Information]   OUTPUT: ---------- -------    ---------- ----                                --------- ----------------
2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               CimCmdlets                          Core      {Get-CimAssociatedInstance, Get-CimClass2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.PowerShell.Diagnostics    Core      {Get-WinEvent, New-WinEvent, Get-Counter}
2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.PowerShell.Host           Core      {Start-Transcript, Stop-Transcript}
2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.PowerShell.Management     Core      {Add-Content, Clear-Content, Get-Clipboa2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.PowerShell.Security       Core      {Get-Acl, Set-Acl, Get-PfxCertificate, G…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.PowerShell.Utility        Core      {Export-Alias, Get-Alias, Import-Alias,2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   7.0.0.0               Microsoft.WSMan.Management          Core      {Disable-WSManCredSSP, Enable-WSManCredS2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     7.0.0.0               PSDiagnostics                       Core      {Disable-PSTrace, Disable-PSWSManCombine2024-12-04T07:17:23Z   [Information]   OUTPUT: 
2024-12-04T07:17:23Z   [Information]   OUTPUT:     Directory: C:\home\data\ManagedDependencies\2412040711206554857.r
2024-12-04T07:17:23Z   [Information]   OUTPUT: 
2024-12-04T07:17:23Z   [Information]   OUTPUT: ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
2024-12-04T07:17:23Z   [Information]   OUTPUT: ---------- -------    ---------- ----                                --------- ----------------
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     13.0.0                Az                                  Core,Desk 
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.0.0                 Az.Accounts                         Core,Desk {Disable-AzDataCollection, Disable-AzCon2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.Advisor                          Core,Desk {Disable-AzAdvisorRecommendation, Enable…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     6.0.4                 Az.Aks                              Core,Desk {Disable-AzAksAddOn, Enable-AzAksAddOn,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.6                 Az.AnalysisServices                 Core,Desk {Add-AzAnalysisServicesAccount, Export-A2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.0.5                 Az.ApiManagement                    Core,Desk {Add-AzApiManagementApiToGateway, Add-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.0                 Az.App                              Core,Desk {Disable-AzContainerAppRevision, Enable-2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.3.2                 Az.AppConfiguration                 Core,Desk {Clear-AzAppConfigurationDeletedStore, G…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.2.5                 Az.ApplicationInsights              Core,Desk {Get-AzApplicationInsights, Get-AzApplic2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.1                 Az.ArcResourceBridge                Core,Desk {Get-AzArcResourceBridge, Get-AzArcResou2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.3                 Az.Attestation                      Core,Desk {Add-AzAttestationPolicySigner, Get-AzAt2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.2                 Az.Automanage                       Core,Desk {Get-AzAutomanageBestPractice, Get-AzAut2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.10.0                Az.Automation                       Core,Desk {Export-AzAutomationDscConfiguration, Ex…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.6.4                 Az.Batch                            Core,Desk {Disable-AzBatchAutoScale, Disable-AzBat2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.1.0                 Az.Billing                          Core,Desk {Get-AzBillingAccount, Get-AzBillingInvo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.2.2                 Az.Cdn                              Core,Desk {Clear-AzCdnEndpointContent, Clear-AzFro2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.CloudService                     Core,Desk {Get-AzCloudService, Get-AzCloudServiceI2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.14.1                Az.CognitiveServices                Core,Desk {Get-AzCognitiveServicesAccount, Get-AzC2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     9.0.0                 Az.Compute                          Core,Desk {Add-AzImageDataDisk, Add-AzVhd, Add-AzV2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.1                 Az.ConfidentialLedger               Core,Desk {Get-AzConfidentialLedger, New-AzConfide2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.0                 Az.ConnectedMachine                 Core,Desk {Connect-AzConnectedMachine, Get-AzConne2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.1.0                 Az.ContainerInstance                Core,Desk {Add-AzContainerInstanceOutput, Get-AzCo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.2.1                 Az.ContainerRegistry                Core,Desk {Connect-AzContainerRegistry, Get-AzCont2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.15.0                Az.CosmosDB                         Core,Desk {Get-AzCosmosDBAccount, Get-AzCosmosDBAc2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.1                 Az.DataBoxEdge                      Core,Desk {Get-AzDataBoxEdgeBandwidthSchedule, Get…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.9.0                 Az.Databricks                       Core,Desk {Get-AzDatabricksAccessConnector, Get-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.18.9                Az.DataFactory                      Core,Desk {Add-AzDataFactoryV2DataFlowDebugSession2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.3                 Az.DataLakeAnalytics                Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.3.2                 Az.DataLakeStore                    Core,Desk {Add-AzDataLakeStoreFirewallRule, Add-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.5.0                 Az.DataProtection                   Core,Desk {Backup-AzDataProtectionBackupInstanceAd2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.2                 Az.DataShare                        Core,Desk {Get-AzDataShare, Get-AzDataShareAccount2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     5.4.0                 Az.DesktopVirtualization            Core,Desk {Disconnect-AzWvdUserSession, Expand-AzW2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.0                 Az.DevCenter                        Core,Desk {Connect-AzDevCenterAdminCatalog, Connec…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.3                 Az.DevTestLabs                      Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDt2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.3.0                 Az.Dns                              Core,Desk {Add-AzDnsRecordConfig, Get-AzDnsRecordS2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.0                 Az.DnsResolver                      Core,Desk {Get-AzDnsForwardingRuleset, Get-AzDnsFo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.0                 Az.ElasticSan                       Core,Desk {Add-AzElasticSanVolumeGroupNetworkRule,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.1.0                 Az.EventGrid                        Core,Desk {Disable-AzEventGridPartnerTopic, Enable…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     5.0.1                 Az.EventHub                         Core,Desk {New-AzEventHubAuthorizationRuleSASToken2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.11.1                Az.FrontDoor                        Core,Desk {Disable-AzFrontDoorCustomDomainHttps, E…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.1.1                 Az.Functions                        Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAva2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     6.3.0                 Az.HDInsight                        Core,Desk {Add-AzHDInsightClusterIdentity, Add-AzH2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.HealthcareApis                   Core,Desk {Get-AzHealthcareApisService, Get-AzHeal2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.7.7                 Az.IotHub                           Core,Desk {Add-AzIotHubCertificate, Add-AzIotHubCo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     6.3.0                 Az.KeyVault                         Core,Desk {Add-AzKeyVaultCertificate, Add-AzKeyVau2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.3.1                 Az.Kusto                            Core,Desk {Add-AzKustoClusterLanguageExtension, Ad…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.1                 Az.LoadTesting                      Core,Desk {Get-AzLoad, New-AzLoad, Remove-AzLoad,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.5.1                 Az.LogicApp                         Core,Desk {Get-AzIntegrationAccount, Get-AzIntegra2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.4                 Az.MachineLearning                  Core,Desk {Add-AzMlWebServiceRegionalProperty, Exp…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.0                 Az.MachineLearningServices          Core,Desk {Get-AzMLServiceQuota, Get-AzMLServiceUs2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.4.3                 Az.Maintenance                      Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationA2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.1                 Az.ManagedServiceIdentity           Core,Desk {Get-AzFederatedIdentityCredential, Get-2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.0.1                 Az.ManagedServices                  Core,Desk {Get-AzManagedServicesAssignment, Get-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.MarketplaceOrdering              Core,Desk {Get-AzMarketplaceTerms, Invoke-AzMarket2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.2                 Az.Media                            Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMe2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.5.0                 Az.Migrate                          Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMi2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     6.0.0                 Az.Monitor                          Core,Desk {Add-AzLogProfile, Add-AzMetricAlertRule2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.1                 Az.MySql                            Core,Desk {Get-AzMySqlConfiguration, Get-AzMySqlCo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     7.11.0                Az.Network                          Core,Desk {Add-AzApplicationGatewayAuthenticationC2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.2                 Az.NetworkCloud                     Core,Desk {Deploy-AzNetworkCloudCluster, Disable-A2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.0                 Az.Nginx                            Core,Desk {Get-AzNginxCertificate, Get-AzNginxConf2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.3                 Az.NotificationHubs                 Core,Desk {Get-AzNotificationHub, Get-AzNotificati2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.2.1                 Az.OperationalInsights              Core,Desk {Disable-AzOperationalInsightsIISLogColl2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.0                 Az.Oracle                           Core,Desk {Add-AzOracleCloudVMClusterVM, Get-AzOra2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.6.5                 Az.PolicyInsights                   Core,Desk {Get-AzPolicyAttestation, Get-AzPolicyEv2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.2                 Az.PostgreSql                       Core,Desk {Get-AzPostgreSqlConfiguration, Get-AzPo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.0                 Az.PowerBIEmbedded                  Core,Desk {Resume-AzPowerBIEmbeddedCapacity, Suspe…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.1.0                 Az.PrivateDns                       Core,Desk {Add-AzPrivateDnsRecordConfig, Get-AzPri2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     7.3.0                 Az.RecoveryServices                 Core,Desk {Add-AzRecoveryServicesAsrReplicationPro2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.10.0                Az.RedisCache                       Core,Desk {Export-AzRedisCache, Get-AzRedisCache,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.1                 Az.RedisEnterpriseCache             Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRe2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.Relay                            Core,Desk {Get-AzRelayAuthorizationRule, Get-AzRel2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.1                 Az.ResourceGraph                    Core,Desk {Search-AzGraph, Get-AzResourceGraphQuer2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.1                 Az.ResourceMover                    Core,Desk {Add-AzResourceMoverMoveResource, Get-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     7.7.0                 Az.Resources                        Core,Desk {Export-AzResourceGroup, Export-AzTempla2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.7.0                 Az.Security                         Core,Desk {Add-AzSecurityAdaptiveNetworkHardening,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.1.2                 Az.SecurityInsights                 Core,Desk {Get-AzSentinelAlertRule, Get-AzSentinel2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     4.0.1                 Az.ServiceBus                       Core,Desk {New-AzServiceBusAuthorizationRuleSASTok2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.3.4                 Az.ServiceFabric                    Core,Desk {Add-AzServiceFabricClientCertificate, A…
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.2                 Az.SignalR                          Core,Desk {Get-AzSignalR, Get-AzSignalRKey, Get-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     6.0.0                 Az.Sql                              Core,Desk {Add-AzSqlDatabaseToFailoverGroup, Add-A2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.3.1                 Az.SqlVirtualMachine                Core,Desk {Assert-AzSqlVMEntraAuth, Get-AzAvailabi2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.4.1                 Az.StackHCI                         Core,Desk {Add-AzStackHCIVMAttestation, Disable-Az2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.0.5                 Az.StackHCIVM                       Core,Desk {Add-AzStackHCIVMVirtualMachineDataDisk,2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     8.0.0                 Az.Storage                          Core,Desk {Add-AzRmStorageContainerLegalHold, Add-2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.4.0                 Az.StorageMover                     Core,Desk {Get-AzStorageMover, Get-AzStorageMoverA2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.3.1                 Az.StorageSync                      Core,Desk {Get-AzStorageSyncCloudEndpoint, Get-AzS2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.1                 Az.StreamAnalytics                  Core,Desk {Get-AzStreamAnalyticsCluster, Get-AzStr2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.0.0                 Az.Support                          Core,Desk {Get-AzSupportChatTranscript, Get-AzSupp2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.0.10                Az.Synapse                          Core,Desk {Add-AzSynapseDataFlowDebugSessionPackag2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.2.2                 Az.TrafficManager                   Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpo2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     3.2.2                 Az.Websites                         Core,Desk {Add-AzWebAppAccessRestrictionRule, Add-2024-12-04T07:17:23Z   [Information]   OUTPUT: 
2024-12-04T07:17:23Z   [Information]   OUTPUT:     Directory: C:\Program Files (x86)\SiteExtensions\Functions\4.1036.3\workers\powershell\7.4\Modules
2024-12-04T07:17:23Z   [Information]   OUTPUT: 
2024-12-04T07:17:23Z   [Information]   OUTPUT: ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
2024-12-04T07:17:23Z   [Information]   OUTPUT: ---------- -------    ---------- ----                                --------- ----------------
2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   0.3.0                 Microsoft.Azure.Functions.PowerShe… Core      {Get-OutputBinding, Get-DurableTaskResul2024-12-04T07:17:23Z   [Information]   OUTPUT: Manifest   1.2.5                 Microsoft.PowerShell.Archive        Desk      {Compress-Archive, Expand-Archive}
2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     1.4.8.1               PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageP2024-12-04T07:17:23Z   [Information]   OUTPUT: Script     2.2.5                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Mo2024-12-04T07:17:23Z   [Information]   OUTPUT: Binary     2.0.3                 ThreadJob                           Desk      Start-ThreadJob

Error output

@DharshiniThil DharshiniThil added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Dec 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Dec 4, 2024
@DharshiniThil DharshiniThil changed the title Getting error in Function app "The term 'Get-AzKeyVaultSecret' is not recognized as a name of a cmdlet, function, script file, or executable program." Getting error in Function app " Run Connect-AzAccount to login." Dec 4, 2024
@isra-fel
Copy link
Member

isra-fel commented Dec 6, 2024

@DharshiniThil is the key vault in the same tenant/directory that you sign in with or set up in the Function App? They need to be the same otherwise the credentials won't work.

I'll also loop in Functions team

@isra-fel isra-fel added Service Attention This issue is responsible by Azure service team. Functions needs-author-feedback More information is needed from author to address the issue. labels Dec 6, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

1 similar comment
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.

@niravlulla
Copy link

Description

I was trying to get the Azure key vault secret value from function app in Powershell 7.4.

$secret = Get-AzKeyVaultSecret -VaultName "<your-unique-keyvault-name>" -Name "ExamplePassword" -AsPlainText

which is giving error "[Error] ERROR: Run Connect-AzAccount to login."

After this I have added 'Az' = '13.*' 'Az.KeyVault' = "6.3.0" 'Az.Accounts'='4.*' in requirements.psd1 file and Install-Module -Name Az.KeyVault -RequiredVersion "6.3.0" in profile.ps1 file.

But the function app is giving Response code 500 Internal error

Issue script & Debug output


Exception             : 
    Type        : System.Management.Automation.PSInvalidOperationException
    ErrorRecord : 
        Exception             : 
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : Run Connect-AzAccount to login.
            HResult : -2146233087
        CategoryInfo          : InvalidOperation: (:) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : InvalidOperation
    TargetSite  : 
        Name          : get_DefaultContext
        DeclaringType : [Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet]
        MemberType    : Method
        Module        : Microsoft.Azure.PowerShell.Clients.ResourceManager.dll
    Message     : Run Connect-AzAccount to login.
    Source      : Microsoft.Azure.PowerShell.Clients.ResourceManager
    HResult     : -2146233079
    StackTrace  : 
   at Microsoft.Azure.Commands.ResourceManager.Common.AzureRMCmdlet.get_DefaultContext()
   at Microsoft.Azure.Commands.KeyVault.Models.KeyVaultCmdletBase.get_DataServiceClient()
   at Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret.ExecuteCmdlet()
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.<>c__3`1.<ExecuteSynchronouslyOrAsJob>b__3_0(T c)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet, Action`1 executor)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.CmdletExtensions.ExecuteSynchronouslyOrAsJob[T](T cmdlet)
   at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
CategoryInfo          : CloseError: (:) [Get-AzKeyVaultSecret], PSInvalidOperationException
FullyQualifiedErrorId : Microsoft.Azure.Commands.KeyVault.GetAzureKeyVaultSecret
InvocationInfo        : 
    MyCommand        : Get-AzKeyVaultSecret
    ScriptLineNumber : 15
    OffsetInLine     : 19
    HistoryId        : 1
    ScriptName       : C:\home\site\wwwroot\HttpTrigger2\run.ps1
    Line             : $securedPassword =Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "UserPassword" -AsPlainText
                       
    Statement        : Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "UserPassword" -AsPlainText
    PositionMessage  : At C:\home\site\wwwroot\HttpTrigger2\run.ps1:15 char:19
                       + … edPassword =Get-AzKeyVaultSecret -VaultName "hybridkeyvalue" -Name "U …
                       +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PSScriptRoot     : C:\home\site\wwwroot\HttpTrigger2
    PSCommandPath    : C:\home\site\wwwroot\HttpTrigger2\run.ps1
    InvocationName   : Get-AzKeyVaultSecret
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, C:\home\site\wwwroot\HttpTrigger2\run.ps1: line 15
PipelineIterationInfo : 

Environment data

024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : PSVersion
2024-12-04T06:56:01Z [Information] OUTPUT: Value : 7.4.4
2024-12-04T06:56:01Z [Information] OUTPUT: Name : PSVersion
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : PSEdition
2024-12-04T06:56:01Z [Information] OUTPUT: Value : Core
2024-12-04T06:56:01Z [Information] OUTPUT: Name : PSEdition
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : GitCommitId
2024-12-04T06:56:01Z [Information] OUTPUT: Value : 7.4.4
2024-12-04T06:56:01Z [Information] OUTPUT: Name : GitCommitId
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : OS
2024-12-04T06:56:01Z [Information] OUTPUT: Value : Microsoft Windows 10.0.20348
2024-12-04T06:56:01Z [Information] OUTPUT: Name : OS
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : Platform
2024-12-04T06:56:01Z [Information] OUTPUT: Value : Win32NT
2024-12-04T06:56:01Z [Information] OUTPUT: Name : Platform
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : PSCompatibleVersions
2024-12-04T06:56:01Z [Information] OUTPUT: Value : {1.0, 2.0, 3.0, 4.0…}
2024-12-04T06:56:01Z [Information] OUTPUT: Name : PSCompatibleVersions
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : PSRemotingProtocolVersion
2024-12-04T06:56:01Z [Information] OUTPUT: Value : 2.3
2024-12-04T06:56:01Z [Information] OUTPUT: Name : PSRemotingProtocolVersion
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : SerializationVersion
2024-12-04T06:56:01Z [Information] OUTPUT: Value : 1.1.0.1
2024-12-04T06:56:01Z [Information] OUTPUT: Name : SerializationVersion
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT:
2024-12-04T06:56:01Z [Information] OUTPUT: Key : WSManStackVersion
2024-12-04T06:56:01Z [Information] OUTPUT: Value : 3.0
2024-12-04T06:56:01Z [Information] OUTPUT: Name : WSManStackVersion

Module versions

Directory: C:\program files (x86)\siteextensions\functions\4.1036.3\workers\powershell\7.4\runtimes\win\lib\net8.0\Modules
2024-12-04T07:17:23Z [Information] OUTPUT:
2024-12-04T07:17:23Z [Information] OUTPUT: ModuleType Version PreRelease Name PSEdition ExportedCommands
2024-12-04T07:17:23Z [Information] OUTPUT: ---------- ------- ---------- ---- --------- ----------------
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 CimCmdlets Core {Get-CimAssociatedInstance, Get-CimClass…
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.PowerShell.Diagnostics Core {Get-WinEvent, New-WinEvent, Get-Counter}
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.PowerShell.Host Core {Start-Transcript, Stop-Transcript}
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.PowerShell.Management Core {Add-Content, Clear-Content, Get-Clipboa…
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.PowerShell.Security Core {Get-Acl, Set-Acl, Get-PfxCertificate, G…
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.PowerShell.Utility Core {Export-Alias, Get-Alias, Import-Alias, …
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 7.0.0.0 Microsoft.WSMan.Management Core {Disable-WSManCredSSP, Enable-WSManCredS…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 7.0.0.0 PSDiagnostics Core {Disable-PSTrace, Disable-PSWSManCombine…
2024-12-04T07:17:23Z [Information] OUTPUT:
2024-12-04T07:17:23Z [Information] OUTPUT: Directory: C:\home\data\ManagedDependencies\2412040711206554857.r
2024-12-04T07:17:23Z [Information] OUTPUT:
2024-12-04T07:17:23Z [Information] OUTPUT: ModuleType Version PreRelease Name PSEdition ExportedCommands
2024-12-04T07:17:23Z [Information] OUTPUT: ---------- ------- ---------- ---- --------- ----------------
2024-12-04T07:17:23Z [Information] OUTPUT: Script 13.0.0 Az Core,Desk
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.0.0 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzCon…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.Advisor Core,Desk {Disable-AzAdvisorRecommendation, Enable…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 6.0.4 Az.Aks Core,Desk {Disable-AzAksAddOn, Enable-AzAksAddOn, …
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.6 Az.AnalysisServices Core,Desk {Add-AzAnalysisServicesAccount, Export-A…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.0.5 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToGateway, Add-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.0 Az.App Core,Desk {Disable-AzContainerAppRevision, Enable-…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.3.2 Az.AppConfiguration Core,Desk {Clear-AzAppConfigurationDeletedStore, G…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.2.5 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, Get-AzApplic…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.1 Az.ArcResourceBridge Core,Desk {Get-AzArcResourceBridge, Get-AzArcResou…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.3 Az.Attestation Core,Desk {Add-AzAttestationPolicySigner, Get-AzAt…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.2 Az.Automanage Core,Desk {Get-AzAutomanageBestPractice, Get-AzAut…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.10.0 Az.Automation Core,Desk {Export-AzAutomationDscConfiguration, Ex…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.6.4 Az.Batch Core,Desk {Disable-AzBatchAutoScale, Disable-AzBat…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.1.0 Az.Billing Core,Desk {Get-AzBillingAccount, Get-AzBillingInvo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.2.2 Az.Cdn Core,Desk {Clear-AzCdnEndpointContent, Clear-AzFro…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.CloudService Core,Desk {Get-AzCloudService, Get-AzCloudServiceI…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.14.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzC…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 9.0.0 Az.Compute Core,Desk {Add-AzImageDataDisk, Add-AzVhd, Add-AzV…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.1 Az.ConfidentialLedger Core,Desk {Get-AzConfidentialLedger, New-AzConfide…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.0 Az.ConnectedMachine Core,Desk {Connect-AzConnectedMachine, Get-AzConne…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.1.0 Az.ContainerInstance Core,Desk {Add-AzContainerInstanceOutput, Get-AzCo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.2.1 Az.ContainerRegistry Core,Desk {Connect-AzContainerRegistry, Get-AzCont…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.15.0 Az.CosmosDB Core,Desk {Get-AzCosmosDBAccount, Get-AzCosmosDBAc…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.1 Az.DataBoxEdge Core,Desk {Get-AzDataBoxEdgeBandwidthSchedule, Get…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.9.0 Az.Databricks Core,Desk {Get-AzDatabricksAccessConnector, Get-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.18.9 Az.DataFactory Core,Desk {Add-AzDataFactoryV2DataFlowDebugSession…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.3 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.3.2 Az.DataLakeStore Core,Desk {Add-AzDataLakeStoreFirewallRule, Add-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.5.0 Az.DataProtection Core,Desk {Backup-AzDataProtectionBackupInstanceAd…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.2 Az.DataShare Core,Desk {Get-AzDataShare, Get-AzDataShareAccount…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 5.4.0 Az.DesktopVirtualization Core,Desk {Disconnect-AzWvdUserSession, Expand-AzW…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.0 Az.DevCenter Core,Desk {Connect-AzDevCenterAdminCatalog, Connec…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.3 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDt…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.3.0 Az.Dns Core,Desk {Add-AzDnsRecordConfig, Get-AzDnsRecordS…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.0 Az.DnsResolver Core,Desk {Get-AzDnsForwardingRuleset, Get-AzDnsFo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.0 Az.ElasticSan Core,Desk {Add-AzElasticSanVolumeGroupNetworkRule,…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.1.0 Az.EventGrid Core,Desk {Disable-AzEventGridPartnerTopic, Enable…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 5.0.1 Az.EventHub Core,Desk {New-AzEventHubAuthorizationRuleSASToken…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.11.1 Az.FrontDoor Core,Desk {Disable-AzFrontDoorCustomDomainHttps, E…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.1.1 Az.Functions Core,Desk {Get-AzFunctionApp, Get-AzFunctionAppAva…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 6.3.0 Az.HDInsight Core,Desk {Add-AzHDInsightClusterIdentity, Add-AzH…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.HealthcareApis Core,Desk {Get-AzHealthcareApisService, Get-AzHeal…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.7.7 Az.IotHub Core,Desk {Add-AzIotHubCertificate, Add-AzIotHubCo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 6.3.0 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Add-AzKeyVau…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.3.1 Az.Kusto Core,Desk {Add-AzKustoClusterLanguageExtension, Ad…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.1 Az.LoadTesting Core,Desk {Get-AzLoad, New-AzLoad, Remove-AzLoad, …
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.5.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccount, Get-AzIntegra…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.4 Az.MachineLearning Core,Desk {Add-AzMlWebServiceRegionalProperty, Exp…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.0 Az.MachineLearningServices Core,Desk {Get-AzMLServiceQuota, Get-AzMLServiceUs…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.4.3 Az.Maintenance Core,Desk {Get-AzApplyUpdate, Get-AzConfigurationA…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.1 Az.ManagedServiceIdentity Core,Desk {Get-AzFederatedIdentityCredential, Get-…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.0.1 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, Get-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Invoke-AzMarket…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.2 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMe…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.5.0 Az.Migrate Core,Desk {Get-AzMigrateDiscoveredServer, Get-AzMi…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 6.0.0 Az.Monitor Core,Desk {Add-AzLogProfile, Add-AzMetricAlertRule…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.1 Az.MySql Core,Desk {Get-AzMySqlConfiguration, Get-AzMySqlCo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 7.11.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationC…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.2 Az.NetworkCloud Core,Desk {Deploy-AzNetworkCloudCluster, Disable-A…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.0 Az.Nginx Core,Desk {Get-AzNginxCertificate, Get-AzNginxConf…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.3 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificati…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.2.1 Az.OperationalInsights Core,Desk {Disable-AzOperationalInsightsIISLogColl…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.0 Az.Oracle Core,Desk {Add-AzOracleCloudVMClusterVM, Get-AzOra…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.6.5 Az.PolicyInsights Core,Desk {Get-AzPolicyAttestation, Get-AzPolicyEv…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.2 Az.PostgreSql Core,Desk {Get-AzPostgreSqlConfiguration, Get-AzPo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.0 Az.PowerBIEmbedded Core,Desk {Resume-AzPowerBIEmbeddedCapacity, Suspe…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.1.0 Az.PrivateDns Core,Desk {Add-AzPrivateDnsRecordConfig, Get-AzPri…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 7.3.0 Az.RecoveryServices Core,Desk {Add-AzRecoveryServicesAsrReplicationPro…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.10.0 Az.RedisCache Core,Desk {Export-AzRedisCache, Get-AzRedisCache, …
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.1 Az.RedisEnterpriseCache Core,Desk {Export-AzRedisEnterpriseCache, Get-AzRe…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.Relay Core,Desk {Get-AzRelayAuthorizationRule, Get-AzRel…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.1 Az.ResourceGraph Core,Desk {Search-AzGraph, Get-AzResourceGraphQuer…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.1 Az.ResourceMover Core,Desk {Add-AzResourceMoverMoveResource, Get-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 7.7.0 Az.Resources Core,Desk {Export-AzResourceGroup, Export-AzTempla…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.7.0 Az.Security Core,Desk {Add-AzSecurityAdaptiveNetworkHardening,…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.1.2 Az.SecurityInsights Core,Desk {Get-AzSentinelAlertRule, Get-AzSentinel…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 4.0.1 Az.ServiceBus Core,Desk {New-AzServiceBusAuthorizationRuleSASTok…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.3.4 Az.ServiceFabric Core,Desk {Add-AzServiceFabricClientCertificate, A…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.2 Az.SignalR Core,Desk {Get-AzSignalR, Get-AzSignalRKey, Get-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 6.0.0 Az.Sql Core,Desk {Add-AzSqlDatabaseToFailoverGroup, Add-A…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.3.1 Az.SqlVirtualMachine Core,Desk {Assert-AzSqlVMEntraAuth, Get-AzAvailabi…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.4.1 Az.StackHCI Core,Desk {Add-AzStackHCIVMAttestation, Disable-Az…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.0.5 Az.StackHCIVM Core,Desk {Add-AzStackHCIVMVirtualMachineDataDisk,…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 8.0.0 Az.Storage Core,Desk {Add-AzRmStorageContainerLegalHold, Add-…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.4.0 Az.StorageMover Core,Desk {Get-AzStorageMover, Get-AzStorageMoverA…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.3.1 Az.StorageSync Core,Desk {Get-AzStorageSyncCloudEndpoint, Get-AzS…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.1 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsCluster, Get-AzStr…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.0.0 Az.Support Core,Desk {Get-AzSupportChatTranscript, Get-AzSupp…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.0.10 Az.Synapse Core,Desk {Add-AzSynapseDataFlowDebugSessionPackag…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.2.2 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpo…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 3.2.2 Az.Websites Core,Desk {Add-AzWebAppAccessRestrictionRule, Add-…
2024-12-04T07:17:23Z [Information] OUTPUT:
2024-12-04T07:17:23Z [Information] OUTPUT: Directory: C:\Program Files (x86)\SiteExtensions\Functions\4.1036.3\workers\powershell\7.4\Modules
2024-12-04T07:17:23Z [Information] OUTPUT:
2024-12-04T07:17:23Z [Information] OUTPUT: ModuleType Version PreRelease Name PSEdition ExportedCommands
2024-12-04T07:17:23Z [Information] OUTPUT: ---------- ------- ---------- ---- --------- ----------------
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 0.3.0 Microsoft.Azure.Functions.PowerShe… Core {Get-OutputBinding, Get-DurableTaskResul…
2024-12-04T07:17:23Z [Information] OUTPUT: Manifest 1.2.5 Microsoft.PowerShell.Archive Desk {Compress-Archive, Expand-Archive}
2024-12-04T07:17:23Z [Information] OUTPUT: Script 1.4.8.1 PackageManagement Desk {Find-Package, Get-Package, Get-PackageP…
2024-12-04T07:17:23Z [Information] OUTPUT: Script 2.2.5 PowerShellGet Desk {Find-Command, Find-DSCResource, Find-Mo…
2024-12-04T07:17:23Z [Information] OUTPUT: Binary 2.0.3 ThreadJob Desk Start-ThreadJob

Error output

I am having the exact same issue , did you manage to resolve it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Functions needs-author-feedback More information is needed from author to address the issue. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants