azure icon indicating copy to clipboard operation
azure copied to clipboard

azure_rm_subscription_deployment

Open coolhome opened this issue 2 years ago • 3 comments
trafficstars

SUMMARY

Ability to create a deployment at the subscription level.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

azure_rm_subscription_deployment

ADDITIONAL INFORMATION

coolhome avatar Oct 03 '23 15:10 coolhome

@coolhome There is currently no python SDK support for creating or deleting subscription_id. We will add it later when it is supported. subscription information is now available through the azure_rm_subscription_info.py module!

Fred-sun avatar Oct 07 '23 14:10 Fred-sun

The ability to do tenant and management groups scoped Microsoft.Resource/deployments and deployment stacks deployments could be useful additions.

Tenant: https://learn.microsoft.com/en-us/python/api/azure-mgmt-resource/azure.mgmt.resource.resources.v2022_09_01.operations.deploymentsoperations?view=azure-python#azure-mgmt-resource-resources-v2022-09-01-operations-deploymentsoperations-begin-create-or-update-at-tenant-scope

Mangement Group: https://learn.microsoft.com/en-us/python/api/azure-mgmt-resource/azure.mgmt.resource.resources.v2022_09_01.operations.deploymentsoperations?view=azure-python#azure-mgmt-resource-resources-v2022-09-01-operations-deploymentsoperations-begin-create-or-update-at-management-group-scope

Subscription: https://learn.microsoft.com/en-us/python/api/azure-mgmt-resource/azure.mgmt.resource.resources.v2022_09_01.operations.deploymentsoperations?view=azure-python#azure-mgmt-resource-resources-v2022-09-01-operations-deploymentsoperations-begin-create-or-update-at-subscription-scope

coolhome avatar Oct 08 '23 16:10 coolhome

@Fred-sun for subscription creation/deletion it may be possible today using the python sdk but it's for EA/MCA/MPA customers only. I think really this is two different topics here: Resource Management + Deployments at all scopes

https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/programmatically-create-subscription

coolhome avatar Oct 08 '23 17:10 coolhome