skip to Main Content

Azure – Could not load file or assembly 'Microsoft.Extensions.Logging, Version=7.0.0.0, Culture=neutral, The system cannot find the file specified

I am trying to include serilog in my Azure function App project (.net 6), My Startup.cs public override void Configure(IFunctionsHostBuilder builder) { Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.AzureAnalytics(workspaceId: "xxxxxxxxxxxxxxxxxxxxxxx", authenticationId: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx") .CreateLogger(); builder.Services.AddLogging(lb => lb.AddSerilog(Log.Logger,true)); ConfigureServices(builder.Services); } private void ConfigureServices(IServiceCollection…

VIEW QUESTION

PowerShell command to Create the target resource settings object for a VM in Azure

I am trying to run PowerShell script to Create the target resource settings object for a VM. But it's throwing error : PS /home/user> $targetResourceSettingsObj = New-Object Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings New-Object: Cannot find type [Microsoft.Azure.PowerShell.Cmdlets.ResourceMover.Models.Api202101.VirtualMachineResourceSettings]: verify that the assembly containing this type…

VIEW QUESTION

Azure – Synapse workspace upload package

We have set up a pipeline to upload the libraries/packages to synpase workspace using Azure commands az synapse workspace-package upload --workspace-name testsw --package C:/python.whl I tried appending --overwrite just to overwrite the existing library but it threw error. Do we…

VIEW QUESTION
Back To Top
Search