Showing posts with label Microsoft Azure. Show all posts
Showing posts with label Microsoft Azure. Show all posts

Tuesday, February 14, 2017

Adding custom property in Azure Broken Message object.

The below code is sample piece of code to add custom property in azure broken message object

Get the custom property value

Tuesday, January 3, 2017

Move service bus data to DeadLetter Queue in Azure

In Micorsoft azure, Service bus is one of the most powerful concept in azure cloud computing. Service bus must be constant size called 64KB.

Below i have listed the options to move the data's to DeadLetter Queue manually.
  1. Set "Default Message Time to Live" in seconds and Check the checkbox move expired messages to DeadLetter Queue
  2. We could move the message of the queue using broken message object. Here is below example.

Monday, December 5, 2016

Azure Cloud service problem "The current service model is out of sync"

Azure has providing lot of could compute technique, one of the most reliable is Azure Cron program called Azure cloud services. Develop, package and deploy powerful applications and services to the cloud with Azure Cloud Services.

There are features advantages on azure cloud services
  1.       Support for Java, Node.js, PHP, Python, .NET and Ruby
  2.       Automatic operating system and application patching
  3.       Auto scale to meet demand and save money

In Azure cloud service, we usually facing the problem called “The current service model is out of sync”. This issue will occur on few scenarios.
  


  • Either ServiceDefinition(.csdef) file content is not match with ServiceConfiguration(.cscfg) files
Solution:
We should check the service definition file and configuration files, to make sure the xml tags are matches on both files. If some tags are missing on any one of the, we should added them into another file.
  • Your project was not closed properly.
Solution:
Step 1: Open the solution file in Visual Studio.
Step 2: There you can see the cloud service project.
Step 3: Select the cloud service project and right them, Click on “Unload Project”
Step 4: Now again select the cloud service project load them into solution.
Step 5: Now cloud service should run fine now.

Tuesday, February 2, 2016

Posting packets from Azure Storage to Service Bus using C#

Microsoft Azure is one of the leading cloud computing environment. Using the below script we are posting raw packets from storage to Service Bus.


Tuesday, January 5, 2016

Rest API Connection in C# - Using RESTSHARP Library

Rest Client connection using C#. In this post, I have explained the very simple solution using RestSharp Library. In RestSharp library, we have RestClient and RestRequest classes. RestClient will help us to establish the connection using API URL, RestRequest object will act as the intermediate between RestClient and API HOST. Using RestRequest, we will define the header and Request Method.