Do not do Authorization in playback mode
@@ -96,6 +96,9 @@ class MgmtMSIComputeTest(AzureMgmtTestCase):
# Get the Principal id of that VM
msi_principal_id = vm_result.identity.principal_id
+ # Do not do the Authorization part in playback, since it has nothing to do with Compute
+ if not self.is_playback():
+
# Get the Role ID of Contributor of a Resource Group
role_name = 'Contributor'
roles = list(self.authorization_client.role_definitions.list(
