Category: azure

  • Azure function–solving my own code problems–part 35

    1. My fault – the plugins does not exists in output this should be added to the output in order to the plugins to be copied to the output directory <ItemGroup> <None Remove=”plugins\” /> <Content Include=”plugins\**\*.dll” CopyToOutputDirectory=”Always” /> </ItemGroup> 2. Deploying,I should see what it is convenient: context.FunctionDirectory  OR context.FunctionAppDirectory log.LogInformation($”!!! C# Timer trigger function…

  • Loading data regularly–deploy plugins–Azure Function–part 34

    Now I have broken the build. Why ?Because of the docker file – to be optimized on local,I copy ecah csproj one by one and the I do dotnet restore. (If docker had a glob patttern! ) . So each time that I put a new project,the build will fail! Trying now from the Azure…

  • Loading data at regular intervals–Azure function –part 33

    I need to load data at scheduled intervals – it is normal that the exchange rates are published every day. So what options we have in Azure? WebJobs Worker Roles Azure functions After reading a lot,I decide on Azure Functions – it is the new kid on the block and battle tested. More,it has something…

  • Refactoring,AzureConnectionString,rss,asmx–part 28

    Now,I want to see that I can read from the database the exchange rates. For this,in Azure WebAPP I go to Settings => Configuration and add my connection string. But now I have a problem: I must read from the configuration.  So back on DI with InMemory class – I inject from ASP.NET Core the…

  • Adding database in Azure –part 26

    Now getting the database – needed for historic data. When I go to Create New Database in Azure Portal,there are many types of Database (mongo,postgres,many others) – the easy choice,for me,is SqlServer ( even if the tables are not be updated – the exchange rates does not change a lot). There is something that is…

  • Deploy to Azure–part 23

    Create in Azure an AppService infovalutar with InfovalutarRG resource group – can be done like here https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-dotnet or from the Azure Portal ( create AppService – I have put Linux with .NET Core 3.0) Searching how to connect AzureDevOps – the connection should be added from Project Settings (a link at the bottom of the…

  • Docker–fourth part–part 20

    Time to push to docker 1. putting the docker password into the pipeline variables 2. Modifying the yaml 3. Waiting for build Error in Docker:  Incorrect name or password Now,I want to create 2 jobs to isolate Docker from the main build. I encounter some errors in the yaml file . That shows fast in…

  • Bingo for meetings- azure integrations–part 10

    Now it is about Continuous Integrations. We want tests to be run each time we push something to GitHub.  For this we could use Azure DevOps. It is free for GitHub public repositories . We want to configure an azure pipeline to automatically run tests  that we have in Docker. So the pipeline will just…

  • Bingo for meetings- dockerize tests–part 9

    We have now full DDD and tests that should be run for the objects. However,we need a way to automatically have the tests run . The easy way is to dockerize the tests – run in a container,grab the results,display somewhere. First we should have the tests display in a nice form some data.  For…

  • DotNet CLI Tools

    There is a revival of CLI tools. And dotnet is going with the wave. You can find the tools installed with .NET Core here,https://docs.microsoft.com/en-us/dotnet/core/tools/?tabs=netcore2x  and here https://docs.microsoft.com/en-us/dotnet/core/additional-tools/   Usually you do not need those – since Visual Studio is good to have all from the GUI. However,you can make your own tool – and you have the…