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.

AzureVMCluster uses deprecated method to get the subscription ID

See original GitHub issue

Currently AzureVMCluster infers the Azure subscription ID with a deprecated method: https://github.com/Azure/azure-sdk-for-python/blob/12fb3daae6a69d99ff67a64ed52a1fb99671836b/sdk/core/azure-common/azure/common/credentials.py#L17-L28

It’d be nice to avoid that. I think that we could add a subscription_id argument to AzureVM.__init__. We might even want to make it required like resource_group. This would match the behavior of the underlying azure.mgmt libraries we call into, which all have the subscription ID as a required argument rather than trying to infer it.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jacobtomlinsoncommented, Sep 9, 2022

Also it’s good you have you around here @TomAugspurger!

0reactions
jacobtomlinsoncommented, Sep 9, 2022

Yeah that sounds great, would be nice to do this if we can. Totally agree that being able to set this via config makes sense too.

Thanks for looking at this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove Deprecated User Accounts across multiple ...
Deprecated accounts are the accounts that were once deployed to a subscription for some trial/pilot initiative or some other purpose and are ...
Read more >
Commits · dask/dask-cloudprovider - GitHub
Avoid deprecated method to get subscription ID This removes the use of a deprecated method from azure-cli-core to get the default subscription ID....
Read more >
Enable Monitoring of Deprecated Accounts - Trend Micro
Rule ID: SecurityCenter-021. Ensure that all the deprecated accounts within your Azure cloud subscription(s) are monitored so that Microsoft Azure Security ...
Read more >
Deprecated accounts with owner permissions should be ...
Understand Azure AD reporting: https://docs.microsoft.com/azure/active-directory/reports-monitoring/ How to use Azure Identity Access Reviews: ...
Read more >
error: the subscription name doesn't exist - Stack Overflow
or just use -SubscriptionId instead of -SubscriptionName. ... WARNING: Current and Default parameters have been deprecated.
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