Service-Fabric | public repo that I use to share out PowerShell Modules | Azure library

 by   ChackDan PowerShell Version: Current License: No License

kandi X-RAY | Service-Fabric Summary

kandi X-RAY | Service-Fabric Summary

Service-Fabric is a PowerShell library typically used in Cloud, Azure applications. Service-Fabric has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

This is a public repo that I use to share out PowerShell Modules, ARM templates and other helpful documents, that I have had customers ask me for and the ones that I have personally found to be very helpful with using Microsoft Azure service fabric.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              Service-Fabric has a low active ecosystem.
              It has 64 star(s) with 209 fork(s). There are 13 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 4 open issues and 7 have been closed. On average issues are closed in 8 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of Service-Fabric is current.

            kandi-Quality Quality

              Service-Fabric has no bugs reported.

            kandi-Security Security

              Service-Fabric has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              Service-Fabric does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              Service-Fabric releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Service-Fabric
            Get all kandi verified functions for this library.

            Service-Fabric Key Features

            No Key Features are available at this moment for Service-Fabric.

            Service-Fabric Examples and Code Snippets

            No Code Snippets are available at this moment for Service-Fabric.

            Community Discussions

            QUESTION

            Azure Service Fabric supported OS
            Asked 2021-May-06 at 02:38

            Is it possible to get a list of Operating Systems supported by Azure Service Fabric cluster in the PowerShell or Azure CLI?

            Azure CLI documentation

            Official Azure CLI documentation provides list of available OS: --os {UbuntuServer1604, WindowsServer1709, WindowsServer1709withContainers, WindowsServer1803withContainers, WindowsServer1809withContainers, WindowsServer2012R2Datacenter, WindowsServer2016Datacenter, WindowsServer2016DatacenterwithContainers, WindowsServer2019Datacenter, WindowsServer2019DatacenterwithContainers}

            Azure Portal

            Portal has updated list of OS:

            Service Fabric documentation

            Official documentation provides a table of supported OS versions. link

            Problems

            The documentation looks outdated and it is difficult to determine the value of a parameter for the Azure CLI command from the parameter name.

            I want to use "WindowsServer datacenter-core-1909-with-containers" but can't figure out the --os parameter value to achieve it.

            ...

            ANSWER

            Answered 2021-May-06 at 02:38

            Unfortunately, PowerShell and CLI both don't support OS WindowsServer datacenter-core-1909-with-containers, it is clear in the doc.

            For the latest powershell New-AzServiceFabricCluster:

            For the latest CLI az sf cluster create:

            Source https://stackoverflow.com/questions/67403125

            QUESTION

            Does Service Fabric keep actor information indefinitely?
            Asked 2021-Apr-26 at 06:39

            For GDPR reasons, I need to ensure that I don't store customer data which I no longer need. When looking at Service Fabric Actors, I am uncertain what "garbage collection" really means.

            ...

            ANSWER

            Answered 2021-Apr-26 at 06:39

            Garbage collection (in this context) means that an Actor object is removed from memory to free up resources. If the Actor has StatePersistence.Persisted its state will be written to disk on each replica of the underlying ActorService. Even if you're not explicitly storing anything in the StateManager, a record of the Actor (using ActorId as key) will exist.

            It's up to you as a developer to manage the lifecycle of Actor state. Deleting an Actor explicitly, also deletes its state.

            Garbage collection of deactivated actors only cleans up the actor object, but it does not remove data that is stored in an actor's State Manager. When an actor is reactivated, its data is again made available to it through the State Manager. In cases where actors store data in State Manager and are deactivated but never reactivated, it may be necessary to clean up their data.

            More info here.

            Source https://stackoverflow.com/questions/67017386

            QUESTION

            ApplicationInsights end-2-end breaks on ServiceFabric ApiGateway
            Asked 2021-Feb-05 at 09:17

            All,

            I have some problem setting up end-2-end transaction monitoring in ApplicationInsights, it seems to break the end-2-end view on my ServiceFabric ApiGateway service (.net CORE). This results in 2 traces in AppInsights instead of 1 (which I want ;-).

            Ok my setup:

            So an external API (.net core) which communicates to a ApiGateway (.net core stateless service) in a SF cluster via HTTP. Within the SF cluster all service (stateless full .net) communication is via Remoting V2.

            I setup ApplicationInsights using ex. : https://github.com/yantang-msft/service-fabric-application-insights-example

            In ApplicationInsights I see 2 traces (which should be one), being:

            • a trace containing External API & ApiGateWay and the request to the stateless service
            • a trace containing communication between the stateless services (which are multiple)

            It looks like the "Operation Id" is not reused when sending the message from the APIGateway down. Is AppInsights i can see the "Operation Id" differ.

            Does anyone have a idea? An I missing something? Should I set the operation id on the outgoing request in the ApiGateway (and how can I do that ;-))

            ...

            ANSWER

            Answered 2021-Feb-05 at 09:17

            After some contact (https://github.com/microsoft/ApplicationInsights-ServiceFabric/issues/115) the issue became clear.

            It's because of the new version of AppInsight is using a new protocol, which is in the .net version of the library. You can force AppInsights to use the "old" protocol and then the end to end trace works again. You can to this by setting the ActivityIDformat property to legacy one like below. (somewhere in app startup)

            Source https://stackoverflow.com/questions/66011506

            QUESTION

            Service Fabric Docker on Mac Only Exposes a Single Port
            Asked 2021-Jan-20 at 23:53

            I am attempting to try out Service Fabric on my local MacBook Pro running Docker Desktop. I'm following along with Microsoft's documentation located here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started-mac

            When I go to launch the Docker container, I'm calling this command

            ...

            ANSWER

            Answered 2021-Jan-20 at 23:53

            https://github.com/docker/for-mac/issues/5247

            So... it turns out to be a bug with IPv6, Mac, and Docker.

            Source https://stackoverflow.com/questions/65802296

            QUESTION

            How do you Mock CodePackageActivationContext for Config and Data Package using ServiceFabric.Mocks Nuget package
            Asked 2020-Dec-21 at 07:50

            This is a followup question to Specific questions about unit-testing Service Fabric Applications using Mocks

            I am using Xunit along with ServiceFabric.Mocks to Unit Test my application. My Service Fabric application looks like this:

            ...

            ANSWER

            Answered 2020-Dec-21 at 07:50

            You're on the right track!

            • Step 1.

            The classes ConfigurationSection and ConfigurationProperty are in SF namespace System.Fabric.Description. Add a using for the namespace

            • Step 2.

            Please upgrade to ServiceFabric.Mocks v4.2.8. This adds support to mock the DataPackage property on MockCodePackageActivationContext. See this page for an example.

            • Step 3.

            Use the created context as a constructor argument. Change this code:

            Source https://stackoverflow.com/questions/65349715

            QUESTION

            Specific questions about unit-testing Service Fabric Applications using Mocks
            Asked 2020-Dec-20 at 08:27

            This question is a follow up to: Writing UnitTests for a Service Fabric Application Class

            My application definition is of the type - simplified it to solve the most basic of problems I am facing:

            ...

            ANSWER

            Answered 2020-Dec-17 at 10:31

            You can use below piece of code to mock the line:

            Source https://stackoverflow.com/questions/65334180

            QUESTION

            Azure CLI script variables giving errors
            Asked 2020-Nov-10 at 09:23

            ANSWER

            Answered 2020-Nov-10 at 09:23

            I see you use the Shell script, it's more appropriate to run in Linux. For Windows, the PowerShell script is more suitable. And in Windows, the variables need to be set like this:

            Source https://stackoverflow.com/questions/64765616

            QUESTION

            How to use Service Fabric service with AspNet Core WebApi and Autofac and run TestServer
            Asked 2020-Oct-15 at 11:52

            I can't figure out how to use an AspNet Core 3.1 Web Api with Service Fabric and Autofac, and also how to have it ready for a TestServer to run for integration/functional testing.

            The documentation is very incomplete.

            Autofac documentation shows how to modify Program.cs to build autofac container, but it does not mention anything about the Startup.cs class that all the web api have: https://autofaccn.readthedocs.io/en/latest/integration/servicefabric.html

            Also the only example that Autofac has for service fabric is not a web api: https://github.com/autofac/Examples/tree/master/src/ServiceFabricDemo

            There are other questions without valid answers: Service Fabric AspNet Core 3.1 Autofac WebHostBuilder

            Does anybody have any example on how to achieve this?

            I can achieve the following (please see my GitHub repository with the sample)

            • Service fabric with stateless AspNet Core WebApi project (dotnet core 3.1)
            • Using Microsoft Dependency Injection to register services
            • Using TestServer to run integration tests on the http endpoint, and able to overwrite dependency injection registrations in a clean way without having to create another Startup class

            I want the exact same, but using Autofac as DI container.

            UPDATE 1: I can't add Autofac to a WebHostBuilder and the ConfigureServices(IServiceCollection services) must be void as per AspNet Core 3.1+, so this is where I'm stuck. How to replace MS Dependency Injection in my sample

            ...

            ANSWER

            Answered 2020-Oct-15 at 11:52

            Event after the bounty there is not an answer to this. Maybe it's not possible as service fabric requires WebHost and not generic host.

            In any case, I managed to have it working with older versions. Here's my repository where I show a sample on how to run AspNetCore2.1 with DotNetCore2.1 (LTS) and Autofac under Service Fabric. I use the webhost builder, not the generic one.

            https://gitlab.com/sunnyatticsoftware/training/sasw-aspnetcore-testing/-/tree/master/aspnetcore2_1_autofac_servicefabric

            Still, it'd be nice to eventually have a valid answer to the question.

            Source https://stackoverflow.com/questions/64260534

            QUESTION

            How to push events to a C# client from an Azure Service Fabric Service?
            Asked 2020-Sep-23 at 10:02

            I am trying to push an event from something happening in one of my services, hosted on a Service Fabric Cluster, to a C# client application.

            Whilst communicating events within my cluster seems possible, (I am looking at using this https://service-fabric-pub-sub.socreate.it/), I cannot find a way to relay events from my Service's API Gateway back to the client application (after they have subscribed).

            I have tried to look into setting up web sockets, and looked at Signal R, but I am not sure that these are the correct tools for what I am trying to achieve. Any suggestions of where to start looking would be a great help!

            Thanks in advance!

            ...

            ANSWER

            Answered 2020-Sep-23 at 10:02

            The Pub Sub library you're looking at, is for messaging inside the cluster, without introducing external dependencies.

            If you want to send messages to applications outside of the cluster, you should use a message queue, like Azure Service Bus Queues.

            For receiving messages from the C# client within the cluster, you can use this library or source code, that implements a ICommunicationListener.

            Source https://stackoverflow.com/questions/64013296

            QUESTION

            Error AADSTS50105 if the user is member of a group that is a member of another group
            Asked 2020-Sep-03 at 15:20

            We have successfully set up AAD authentication for an existing Service Fabric cluster using this documentation. However, we have some issues when it comes to assigning groups to the application:

            • Connect with a user that has the admin role directly assigned ✔
            • Connect with a user that is member of a group which is directly assigned to the admin role ✔
            • Connect with a user that is member of a group which is member of the group which is directly assigned to the admin role ❌

            Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS50105: The signed in user '{EmailHidden}' is not assigned to a role for the application

            ...

            ANSWER

            Answered 2020-Sep-03 at 15:20

            Nested groups are not supported for group based assignments.

            https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-saasapps

            Group-based assignment is supported only for security groups. Nested group memberships are not supported for group-based assignment to applications at this time.

            Source https://stackoverflow.com/questions/63691485

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install Service-Fabric

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/ChackDan/Service-Fabric.git

          • CLI

            gh repo clone ChackDan/Service-Fabric

          • sshUrl

            git@github.com:ChackDan/Service-Fabric.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link