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.

How to create new Azure Subscription using Python SDK?

See original GitHub issue

I cannot figure out how to create a new Azure Subscription using the Azure Pthon SDK. There does not appear to be an example anywhere on the internets.

I don’t know which module to import.

  • Is it azure.mgmt.subscription or azure.mgmt.resource?
import azure.mgmt.subscription
from azure.mgmt.resource import SubscriptionClient

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
amitjattancommented, May 3, 2022

But above provided samples, doesn’t have any methods on how to create the subscriptions using new MCA

1reaction
anuragdalmiacommented, Jan 31, 2022

Closing this issue out since samples were provided in the above thread. Let us know if there are any other questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Azure SDK for Python
This is the Microsoft Azure Subscription Management Client Library. This package has been tested with Python 3.7+. For a more complete view ...
Read more >
Python code to create subscriptions in Azure - Stack Overflow
There is python SDK here can be used to create the subscription. First, you need to install the package using pip install azure-mgmt....
Read more >
azure.mgmt.subscription.models module - NET
The created subscription object. Parameters. subscription_link (str) – The link to the new subscription. Use this link to check the status of subscription...
Read more >
azure-mgmt-subscription - PyPI
Microsoft Azure SDK for Python. This is the Microsoft Azure Subscription Management Client Library. This package has been tested with Python 3.7+. For...
Read more >
Subscriptions - | Azure SDK for Python
azure -mgmt-subscription. (Resource Management - Subscription). 3.1.1. Other versions. Back to top Azure SDK for Python.
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