azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Tag Azure Subscription via Python SDK?

Open chris-jaec opened this issue 6 years ago • 11 comments

Is it possible to tag a subscription through the Python SDK? If yes, is there some documentation around this? I unfortunately could not find anything in the official Azure docs.

chris-jaec avatar Jun 03 '20 09:06 chris-jaec

Thanks for reaching out @chris-jaec, @nickzhums could you help out here?

kaerm avatar Jun 03 '20 19:06 kaerm

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @anuragdalmia, @shilpigautam, @ramaganesan-rg.

ghost avatar Jun 03 '20 21:06 ghost

Assigning this to @rthorn17 who is driving this. Existing documentation for doing this is [here] (https://docs.microsoft.com/en-us/rest/api/resources/tags/createorupdateatscope#update-tags-on-a-subscription). I will let @rthorn17 talk about support for python SDK.

@ramaganesan-rg to track this appropriately under Management Group

anuragdalmia avatar Jun 04 '20 22:06 anuragdalmia

Removed "Subscription" tag. This should belong in Management Group

ramaganesan-rg avatar Jun 29 '20 21:06 ramaganesan-rg

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.

ghost avatar Jul 14 '20 23:07 ghost

any update on this? would be nice to have this

zepptron avatar Sep 25 '20 13:09 zepptron

Hi team, any updates?

donets420 avatar Oct 19 '20 10:10 donets420

@anuragdalmia @rthorn17 could you guys provide any updates?

nickzhums avatar Oct 19 '20 13:10 nickzhums

Hi Everyone- Refer to https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/resources/v2019_10_01/operations/_tags_operations.py

get_at_scope() create_or_update_at_scope() update_at_scope() delete_at_scope()

These four Tags operations in SDK you can specify scope parameter with the subscription. That way you can manage tags on subscription level.

I don't see any docs on this written yet but I will get this added to backlogs to be done. Thanks

rthorn17 avatar Oct 19 '20 16:10 rthorn17

@rthorn17 - your link to github doesn't work for me. It looks like MS internal?

donets420 avatar Oct 19 '20 20:10 donets420

@rthorn17 - your link to github doesn't work for me. It looks like MS internal?

See if it works now as I just updated it. I don't know why but I was getting an error also with the same link

rthorn17 avatar Oct 19 '20 20:10 rthorn17