-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle CloudError while iterating on VMs in AzVM
The `CloudError` exception may be raised while iterating on the virtual machines iterator in this line of code: for vm_index, vm in enumerate(virtual_machines_iter): An example of such an error is: msrestazure.azure_exceptions.CloudError: Azure Error: DisallowedOperation Message: The current subscription type is not permitted to perform operations on any provider namespace. Please use a different subscription. This is currently correctly hanled in `AzCloud` because `AzCloud` iterates on each resource iterator inside a `try` block in its `_get_record()` function. A similar approach is used in this fix to resolve this issue.
- Loading branch information
Showing
1 changed file
with
61 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters