More

    Azure Service Fabric Mesh tools now available for Visual Studio 2017


    Azure Service Fabric is a market-tested distributed systems platform for running scalable and reliable applications on microservices and containers. Up until now, Service Fabric required you to create and manage the clusters and their nodes using virtual machine scale sets. With today’s announcement of Azure Service Fabric Mesh, you’ll be able to use Service Fabric without managing infrastructure such as VMs, storage, or networking. Additionally, we’ve released Service Fabric Mesh tooling in Visual Studio 2017 to help you build applications.

    Previously, you had to describe your Service Fabric applications with XML manifests, which was complex and tedious. The new resource-based application uses lightweight YAML files to describe your application and the resources that make it up, making it easier to specify and modify these resources. The tools also help you scaffold applications, debug microservices, and publish your application to Mesh.

    Ready to get started? We’ll walk you through how to take advantage of the managed infrastructure and the simplified YAML files for defining your applications.

    Get Started with Service Fabric Mesh tools in Visual Studio 2017

    After you download the Mesh tools, you’ll notice we’ve added a new entry for Service Fabric Mesh Application in the new project dialog.

    Service Fabric Mesh in New Project Dialog, under Visual CSharp, Cloud

    You might notice the new Container OS drop-down. Right now, local Service Fabric developer cluster debugging is Windows-only, but Service Fabric Mesh supports both Linux and Windows containers. Before publishing to Azure, you can change your service to use a Linux-based image by changing the “osType” property in the service.yaml file.

    Service Fabric ASP.NET Core applications have two projects in the solution. The service.yaml file that is included in your main service project describes your service to the Service Fabric runtime. This file contains any endpoints your service will be listening on, environment variables, and other properties, including any resource constraints you want enforced. There’s also a Dockerfile with instructions for the Docker image that gets built for your service when it’s running in Service Fabric. The tools configure the Dockerfile to work with the service you select. Usually you won’t need to worry about this file, but you are free to modify it if you want to use a different base image or include additional dependencies.

    Service Fabric Mesh in Visual Studio

    The second project in this example, HotelApp, is a lightweight project for configuring application-wide settings. By default, the app.yaml and network.yaml files contain basic configuration information. During debugging and publishing, Visual Studio will use the Service Fabric SDK to merge the various YAML files and deploy them, along with your service(s), to Service Fabric.

    Publishing and Debugging your Service Fabric Mesh Application

    You can set breakpoints and debug your code just like any other .NET Core application. When it’s time to publish your application to Azure Service Fabric Mesh, right click the application project and select Publish. This brings up the following dialog where you’ll need to specify a few values to successfully publish your application.

    Service Fabric Mesh Publish dialog showing options like Subscription, Location, and Azure container registry

    Publishing from Visual Studio builds the exe/dll for each service, creates Docker images for the services, pushes them to Azure Container Registry, and deploys the application to Mesh. Once publish is complete, Visual Studio will show you each of the ingress endpoint URLs for each of your services that had one defined.

    You can get more information about these steps by following our Service Fabric Mesh Quickstart.

    Share Your Thoughts

    When you try the new Service Fabric Mesh tooling, we’d love to hear your feedback! Leave a message for us through Visual Studio or add a comment to this blog post. You can get started setting up your development machine here.

    Cristy Gonzalez, Program Manager, Azure Developer Experiences
    Cristy has been a PM at Microsoft since 2013. In that time, she has worked on the Azure SDK, Storage Explorer, Azure Diagnostics, and Azure developer services like DevTest Labs and ACR. She’s currently working on experiences for users getting started with Azure.



    Article Source

    Recent Articles

    Microsoft report shows increasing sophistication of cyber threats

    Today, Microsoft is releasing a new annual report, called the Digital Defense Report, covering cybersecurity trends...

    NEW Microsoft Surface Go 2 – 10.5″ Touch-Screen – Intel Pentium – 4GB Memory – 64GB – Wifi – Platinum (Latest Model)

    Price: (as of - Details) New 10.5” Surface Go 2 is perfect for keeping up and winding down — delivering tablet portability with...

    Huawei Y7 2019 (32GB, 3GB) 6.26″ Dewdrop Display, 4000 mAh Battery, 4G LTE GSM Dual SIM Factory Unlocked Smartphone (Dub-LX3) – International Version, No...

    Price: (as of - Details) EXPAND YOUR VISION, EXPLORE THE FUTURE Wide Dewdrop Display A wide 6.26" Dewdrop display provides a clear and...

    Moto G Stylus | Unlocked | Made for US by Motorola | 4/128GB | 48MP Camera | 2020 | Indigo

    Price: (as of - Details) With its 48 MP, AI-powered triple camera system, moto g stylus captures outstanding shots in every situation. Sharper,...

    Apple iPhone 11, 128GB, Black – Fully Unlocked (Renewed)

    Price: (as of - Details) Just the right amount of everything. A new dual‑camera system captures more of what you see and love. The fastest chip...

    Related Stories

    Stay on op - Ge the daily news in your inbox

    %d bloggers like this: