Conditions | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
1 | from azure.mgmt.resource.resources import ( |
||
8 | def run(self, subscription_id): |
||
9 | credentials = self.credentials |
||
10 | |||
11 | resource_client = ResourceManagementClient( |
||
12 | ResourceManagementClientConfiguration( |
||
13 | credentials, |
||
14 | subscription_id)) |
||
15 | |||
16 | resource_groups = resource_client.resource_groups.list() |
||
17 | return [group.name for group in resource_groups] |
||
18 |