-
Notifications
You must be signed in to change notification settings - Fork 64
Account setup script failing in Cloud Shell #707
Description
Created a new cloud shell, run the command and this error is given;
`Installing dependencies...
Finished installing dependencies.
Getting account setup script...
Finished getting account setup script.
Running account setup script...
Getting credentials.
Your credentials class does not support session injection. Performance will not be at the maximum.
Traceback (most recent call last):
File "/home/jack/.local/lib/python3.5/site-packages/msrest/pipeline/requests.py", line 65, in send
self._creds.signed_session(session)
File "/home/jack/.local/lib/python3.5/site-packages/azure/common/credentials.py", line 78, in signed_session
return credentials.signed_session(session)
TypeError: signed_session() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "account_setup.py", line 332, in
tenant_ids = [tenant.id for tenant in subscription_client.tenants.list()]
File "account_setup.py", line 332, in
tenant_ids = [tenant.id for tenant in subscription_client.tenants.list()]
File "/home/jack/.local/lib/python3.5/site-packages/msrest/paging.py", line 143, in next
self.advance_page()
File "/home/jack/.local/lib/python3.5/site-packages/msrest/paging.py", line 129, in advance_page
self._response = self._get_next(self.next_link)
File "/home/jack/.local/lib/python3.5/site-packages/azure/mgmt/subscription/operations/tenants_operations.py", line 81, in internal_paging
request, header_parameters, **operation_config)
File "/home/jack/.local/lib/python3.5/site-packages/msrest/service_client.py", line 336, in send
pipeline_response = self.config.pipeline.run(request, **kwargs)
File "/home/jack/.local/lib/python3.5/site-packages/msrest/pipeline/init.py", line 197, in run
return first_node.send(pipeline_request, **kwargs) # type: ignore
File "/home/jack/.local/lib/python3.5/site-packages/msrest/pipeline/init.py", line 150, in send
response = self.next.send(request, **kwargs)
File "/home/jack/.local/lib/python3.5/site-packages/msrest/pipeline/requests.py", line 68, in send
request.context.session = session = self._creds.signed_session()
File "/home/jack/.local/lib/python3.5/site-packages/azure/common/credentials.py", line 78, in signed_session
return credentials.signed_session(session)
TypeError: signed_session() takes 1 positional argument but 2 were given`