question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manage Azure Relay from dotnet core 3.1 with shared access policy

See original GitHub issue

Query/Question Is it possible to manage Azure Relay with a shared access policy connection string with Manage claim on dotnet core 3.1?

Environment:

  • Name and version of the Library package used: Microsoft.Azure.Management.Relay 2.0.2
  • Hosting platform or OS and .NET runtime version: Microsoft.AspNetCore.App 3.1.9
  • IDE and version : Visual Studio 16.7.7

I’m upgrading relay management code from classic service bus management library WindowsAzure.ServiceBus to the new relay management library. Previously we issued a shared access secret based on a policy that included Manage claim and configured our existing app with a service bus connection string. Using the classic full framework library we could manage WCF relays, even in a new Azure Relay namespace.

I’ve tried acquiring a token using Microsoft.Azure.Relay.TokenProvider.CreateSharedAccessSignatureTokenProvider(keyName, key) but this token is of course a SharedAccessSignature token intended for the service bus namespace endpoint and not Azure Resource Manager.

Is there a similar library like the service bus Microsoft.Azure.ServiceBus.Management.ManagementClient(connectionString) that can be used to manage Azure Relay on dotnet standard?

My reason for asking is that we have legacy code that we don’t want to issue certificates and create app registrations for to be able to acquire token from AAD. This legacy code should also be restricted to only manage service bus and relay resources.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jfggdlcommented, Oct 30, 2020

@joaroyen, we should be getting back to you soon. Thanks for your question.

0reactions
joaroyencommented, Nov 2, 2020

Thanks for the response. Not exactly what we wanted to hear, and I believe we will distribute certificate and use the Microsoft.Azure.Management.Relay library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Relay authentication and authorization
There are two ways to authenticate and authorize access to Azure Relay resources: Azure Active Directory (Azure AD) and Shared Access Signatures ...
Read more >
Azure Relay Hybrid Connections protocol guide
This article describes the client-side interactions with the Hybrid Connections relay for connecting clients in listener and sender roles.
Read more >
How to secure a Web API built with ASP.NET Core using ...
Navigate to the Azure portal and select the Azure AD B2C service. Select the App Registrations blade on the left, then select New...
Read more >
Azure App Service Hybrid Connections
Learn how to create and use hybrid connections in Azure App Service to access resources in disparate networks.
Read more >
Azure Relay Hybrid Connections - WebSockets in .NET
Create a Relay namespace by using the Azure portal. · Sign in to the Azure portal. · On the Relay page, select Shared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found