azure-service-fabric

Specific questions about unit-testing Service Fabric Applications using Mocks

六眼飞鱼酱① 提交于 2021-01-05 07:08:41
问题 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: namespace SearchService { internal sealed class SearchServiceClass : StatelessService { //variables defined followed by constructor private string jsonStr; public SearchServiceClass(StatelessServiceContext context) : base(context) { try { var dataPackage = Context.CodePackageActivationContext

Specific questions about unit-testing Service Fabric Applications using Mocks

≯℡__Kan透↙ 提交于 2021-01-05 07:07:49
问题 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: namespace SearchService { internal sealed class SearchServiceClass : StatelessService { //variables defined followed by constructor private string jsonStr; public SearchServiceClass(StatelessServiceContext context) : base(context) { try { var dataPackage = Context.CodePackageActivationContext

Azure Service Bus subscription.close() not working as intended

拟墨画扇 提交于 2020-08-10 18:56:07
问题 I have a scaled out application, where each instance connects to a azure service bus subscription with the same name. The end result being that only a single instance gets to act on any given message because they are all listening to the same subscription. Occasionally the application needs to place an instance into an idle state (service fabric ActiveSecondary replica). When this occurs, I need to close the subscription so that this instance no longer receives messages. If there were 2

How to change the OS on an existing Service Fabric cluster?

谁说我不能喝 提交于 2020-07-22 10:17:29
问题 I'm trying to change my VMSS from: "imageReference": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", "sku": "2016-Datacenter-with-Containers", "version": "latest" } To: "imageReference": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServerSemiAnnual", "sku": "Datacenter-Core-1803-with-Containers-smalldisk", "version": "latest" } The first thing I tried was: Update-AzureRmVmss -ResourceGroupName "DevServiceFabric" -VMScaleSetName "HTTP" -ImageReferenceSku

How to change the OS on an existing Service Fabric cluster?

扶醉桌前 提交于 2020-07-22 10:14:40
问题 I'm trying to change my VMSS from: "imageReference": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", "sku": "2016-Datacenter-with-Containers", "version": "latest" } To: "imageReference": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServerSemiAnnual", "sku": "Datacenter-Core-1803-with-Containers-smalldisk", "version": "latest" } The first thing I tried was: Update-AzureRmVmss -ResourceGroupName "DevServiceFabric" -VMScaleSetName "HTTP" -ImageReferenceSku

Calling WCF over HTTPS in Service Fabric : The request was aborted: Could not create SSL/TLS secure channel

落花浮王杯 提交于 2020-07-09 11:58:13
问题 I'm calling a WCF service over HTTPS. => The certificates are ok. See screenshot: The client certificates are installed under my account and local computer. Both available for export. So I have a piece of code that works in a console application. When I run the console app under Network Service, the service call works. When I paste this code inside a StatefullService (inside service fabric) I get the following exception. I've verified the ServicePointManager.SecurityProtocol It's System.Net

Does Service Fabric application deployment fail, because the certificate does not have a password?

微笑、不失礼 提交于 2020-06-29 05:06:17
问题 I have an Azure pipeline, which works pretty well with a self-signed certificate: It deploys (via ARM templates) Redis, CosmosDB, EventHub, Keyvault, then imports the self-signed certificate into the Keyvault, then deploys SF cluster and configures it with the certificate. Finally the pipeline deploys our team's application with the following task: - task: ServiceFabricDeploy@1 displayName: 'Deploy SF app' inputs: applicationPackagePath: '$(Build.BinariesDirectory)\Release\Applications