Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Get-AzureSBNamespace in the context of Principal Authentication #3391

Closed
RDalziel opened this issue Jan 10, 2017 · 4 comments
Closed
Assignees

Comments

@RDalziel
Copy link

Hey Folks, wondering if anyone can shed some light here. I'm looking to remove any usage of credentials on our release templates and trying to figure out how to run Get-AzureSBNamespace within a RM Context.

Locally, running "Login-AzureRMAccount" and hitting Get-AzureSBNamespace everything returns fine. However on the build server (using the same Initialize-Azure functions as the AzurePowershell tasks) i'm getting issues trying to hit this command.

On the hosted agents - get

"No default subscription has been designated. Use Select-AzureSubscription -Default to set the default subscription."

Anyone have any pointers here?

@RDalziel
Copy link
Author

Update - I've managed to get in via the following APIs https://docs.microsoft.com/en-us/rest/api/servicebus/ Getting an Access token to management.azure.com using the principals key and ID.

Still got problems on the hosted agents, but progress at least!

@vincent1173
Copy link
Contributor

vincent1173 commented Jan 16, 2017

@RDalziel , We cannot run Get-AzureSBNamespace within RM Context, it required Azure Classic Connection.
It runs on local box because an instance of AzureSubscription is already saved in the machine.
You can view the instance by running Get-AzureSubscription.

@vincent1173
Copy link
Contributor

vincent1173 commented Jan 18, 2017

@RDalziel , Is the issue resolved ?
** Closing this thread as there is no response.
Please open this thread, if the issue still persists.

@RDalziel
Copy link
Author

RDalziel commented Feb 6, 2017

Apologies, was on holiday!

I managed to figure it out with the API, however since then i've moved onto using the new(ish) RM Powershell command as it cuts my code a considerable amount!

"Get-AzureRmServiceBusNamespaceKey"

DmitriiBobreshev added a commit that referenced this issue Aug 30, 2022
…rm (#3391) (#16743)

* Implement fallback on UseNode and NodeTools tasks to work with os-x arm (#3391)

-- implemented fallback in UseNode task to download x64 version is arm not available
-- implemented fallback in NodeTools task to download x64 version is arm not available
-- Fixed tests and version checks, because of bug when you set 10.x version it might install 15.10.0 instead of 10.x.x

* Implement fallback on UseNode and NodeTools tasks to work with os-x arm (#3391)

-- added localization

* Implement fallback on UseNode and NodeTools tasks to work with os-x arm (#3391)

-- Fixed localization

* Implement fallback on UseNode and NodeTools tasks to work with os-x arm (#3391)

-- Set resource path for localization files

Co-authored-by: Dmitry Bobreshev <bobresh95@gmail.com>
Co-authored-by: Kirill Ivlev <102740624+kirill-ivlev@users.noreply.github.com>
Co-authored-by: AndreyIvanov42 <93121155+AndreyIvanov42@users.noreply.github.com>
Co-authored-by: Maxim Zaytsev <v-mazayt@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants