Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

How to Monitor Azure ServiceBus DeadLetter Queue Messages

$
0
0

We have an Azure Service Bus which has multiple queues and we would like to get monitoring and alerts setup on the DeadLetter Queue Messages so that an action can be taken on them.

I understand that this feature was not available earlier and was planned later. Is this implemented now?

Any pointers would be helpful.

Thanks,

Ashwin


Azure Service Bus - Unauthorized access. 'Send' claim(s) are required to perform this operation

$
0
0

I am trying to access `Azure Service Bus` `Queue` from my `Windows Service` application.
I am following [this](https://github.com/Azure/azure-service-bus/blob/master/samples/DotNet/Microsoft.ServiceBus.Messaging/RoleBasedAccessControl/Program.cs) sample.

I want to protect this `Azure Service Bus` using `Azure Service Principal`  Below are the steps I have implemented

 1. Register an application named `pc-shutdown-producer` in `Azure Ad`
    representing my `Windows Service`
 2. I have created my Azure `service bus namespace` named `shutdowncomputer` 
 3. Inside `Access control (IAM)`, I have added `Role Assignment` with below values
       - Role - `Azure Service Bus Data Owner`
       - Assign access to - `pc-shutdown-producer`

As per my knowledge above configuration will let `pc-shutdown-producer` application to manage all the resources in the servicebus namespace.
 4. Apart from this, I have also provided `pc-shutdown-producer` delegated API Permissions to access the service bus namespace.

Below is my C# code.

 public async Task Init()
    		{
    			string authority = $"https://login.windows.net/{TenantId}";
    			ITokenProvider tokenProvider = TokenProvider.CreateAzureActiveDirectoryTokenProvider(AuthenticationCallback, authority);
    			var endpoint = new Uri($"sb://shutdowncomputer.servicebus.windows.net/");
    			var entityPath = "shutdownrequest";
    			var qc = new QueueClient(endpoint.ToString(), entityPath, tokenProvider);
    			Message m = new Message();
    			m.Body = Encoding.ASCII.GetBytes("{id: 1, name: 'hemant'}");
    			m.ContentType = "application/json";
    			try
    			{
    				await qc.SendAsync(m);
    			}
    			catch (Exception ex)
    			{
    				//I am getting exception here. 
    				//Unauthorized access. 'Send' claim(s) are required to perform this operation.
    				throw ex;
    			}
    		}
    		private async Task<string> AuthenticationCallback(string audience, string authority, object state)
    		{
    			string accessToken = string.Empty;
    			IConfidentialClientApplication app = ConfidentialClientApplicationBuilder.Create(AppId)
    				.WithAuthority(authority)
    				.WithClientSecret(Password)
    				.Build();
    			var serviceBusAudience = new Uri("https://servicebus.azure.net");
    			List<string> claims = new List<string>();
    			claims.Add($"{serviceBusAudience}/.default");
    			try
    			{
    				var result = await app.AcquireTokenForClient(claims.ToArray()).ExecuteAsync();
    				accessToken = result.AccessToken;
    			}
    			catch (Exception ex)
    			{
    				//No issue here.
    				Console.WriteLine(ex.Message);
    			}
    			//Successfully able to retrieve a token.
    			return accessToken ;
    		}

Upon executing `Init()` , I am getting below exception message.

`Unauthorized access. 'Send' claim(s) are required to perform this operation. Resource: 'sb://shutdowncomputer.servicebus.windows.net/shutdownrequest'. TrackingId:52c0eedcf19d4513a8ec105943859764_G12, SystemTracker:gateway7, Timestamp:2020-05-11T06:59:01`

Thanks


Regards, Hemant Shelar

What is best practice for collecting audit and logs to Azure SQL?

$
0
0

1) I need to store all message to Azure SQL for audit purpose

2) I need to store all errors to Azure SQL for monitoring and reporting purpose

What are best practices? What configuration is needed and what tools are needed?


Kenny_I

Increasing pricing tier to Premium not possible in fly?

$
0
0

I have standard edition and I see from portal that premium is not available. 

Is this in-built feature that once deployed as standard, you cannot upgrade to premium?


Kenny_I

How to multiple subscriber can subscribe same message?

$
0
0

I would like to subscribe topic with Function A.

I would like to also subscribe same topic with Function B.

Is this possible that both subscriber gets same message once?

How to configure so that message do not deleted after Function A have received the message?


Kenny_I

Pricing of Geo-disaster recovery?

RabbitMQ Shovel to Azure Service Bus

$
0
0
How can I create a shovel on rabbit to move messages to my azure service bus?

Event Hub Capture Faild

$
0
0
We sent a message from Azure Function to Event Hubs, captured Event Hub events, and saved it as a file in Blob Storage.

I checked the captured file and it was not saving the message that was supposed to be sent to EventHub.

Why is this?

ServiceBus: Initial delay for consuming

$
0
0

Hi,

Is it possible with ServiceBus to configure a queue that the messages in it would only appear visible to the customers after certain amount of time?

I am aware of sending scheduled messages, but I am more interested in the integration scenarios. For example, when I subscribe the queue to the Blob Storage and I want to receive events like BlobCreated, but with a few seconds delay.

How would one configure the queue or the integration for such a scenario?

Regards,
Alexey.


MCP, MCAD

[Announcement] Microsoft Q&A to replace all English Azure MSDN forums

$
0
0

Azure Service Bus Insights forum will be migrating to a new home on Microsoft Q&A !

 

We’ve listened to your feedback on how we can enhance the forum experience. Microsoft Q&A allows us to add new functionality and enables easier access to all the technical resources most useful to you, like Microsoft Docs and Microsoft Learn. 

 

Now until May 29th , 2020 

 

 

From May 30th  until June 10th, 2020: 

 

  • New posts – Post any new questions in the Azure Service Bus forum’s new home on Microsoft Q&A. The current forum will not allow any new questions. 
  • Existing posts – Interact here with existing content, answer questions, provide comments, etc. 

 

June 10th , 2020 onwards: 

 

  • This forum will be closed to all new and existing posts and all interactions will be in Microsoft Q&A

 

We are excited about moving to Microsoft Q&A and seeing you there. 

Learn More 

Encrypting is not default

$
0
0

I would like to understand what does Encryption at rest actually mean?

1) Encryption is option and not default

2) Where data in rest is stored? Is it possible to see from Azure portal?

3) What is advantage of doing followings?  https://docs.microsoft.com/en-us/azure/service-bus-messaging/configure-customer-managed-key


Kenny_I

Can message be removed from "Azure Event Hubs" after consumer / listener process the message ?

$
0
0

My question is around use case of Azure Event Hubs: 

1) To avoid duplicate message processing  - Does Azure Event Hubs provide capability where once one message read & processed by one consumer / listener then the message is removed from "Azure Event Hubs namespace" ? 

2) Is it possible to use Azure Event Hubs in same way as IBM MQ / RabbitMQ where we put message and once consumer / listener listen to message , successfully process then the message is removed form IBM MQ / RabbitMQ Queue or put back to the queue only when the message couldn't be processed successfully ?   

3) If this is not the capability then which messaging service of Azure should be used ?  Do we need to use "Azure Service Bus" ? in this case ? 

SSPR invalid password when clicking link

$
0
0

Hi All, 

We have implemented SSPR , when clicking the forgotten password link it says invalid password when trying from the current signed in user , but if i switch users at lock screen and then select the link it works as expected. 

Is this due to using a different credential provider, we have global protect vpn pre-auth logon enabled and it has this as preferred credential provider from what i can see in registry. 

Thanks 

How can I return a message back to a queue and increase its DeliveryCount?

$
0
0

Hi, 
I'm consuming messages in an Azure Service Bus Queue, from my external application.

But when a fault happens in my application, I want to push back the message to the queue (so the queue should identify that its the same old message and accept it and increase its DeliveryCount).

How can I do that?
Currently, when I push the message back, the queue identify it as a new one. How can I convince the queue that it is the same old message?

Please note I'm sending the message from JMS (amqp) call. I'm not able to use a client SDK from my application.

Thank you.



[Announcement] Azure Service Bus Forum Migrated to Microsoft Q&A

$
0
0

All MSDN Azure Forums have moved to Microsoft Q&A platform to help our community members to find  faster answers.

 Can I still post here?

We request that our community members ask new questions on the Microsoft Q&A platform only. Continue to engage with existing posts on this MSDN Forum until June 10th , 2020, after which  this MSDN Forum will be closed and will be in read only mode eventually. 

 What is Microsoft Q&A ? 

To help ease you through this transition, please read Microsoft Q&A graduates to General Availability.

 How do I use Microsoft Q&A?

Microsoft Q&A uses tags instead of forums for each service.  Please find the list of Azure Services supported on Microsoft Q&A Platform.

  Where can I find Azure Service Bus questions on Microsoft Q&A?  

For Azure Service Bus specific questions, please navigate here

 What tag should I use for asking Azure Service Bus question on Microsoft Q&A?

 Please use azure-service-bus tag. 





How to subscribe topic of IBM MQ?

$
0
0

What option are available if I want to get data from MQ Topic (not queue) to Service Bus?

Authentication includes a certificate.


Kenny_I

Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>