ansible-collections / azure

Development area for Azure Collections
https://galaxy.ansible.com/azure/azcollection
GNU General Public License v3.0
238 stars 319 forks source link

azure_rm_subscription_deployment #1277

Open coolhome opened 9 months ago

coolhome commented 9 months ago
SUMMARY

Ability to create a deployment at the subscription level.

ISSUE TYPE
COMPONENT NAME

azure_rm_subscription_deployment

ADDITIONAL INFORMATION
Fred-sun commented 9 months ago

@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!

coolhome commented 9 months ago

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 commented 9 months ago

@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