Last active
April 6, 2018 17:50
-
-
Save esell/2a1c0afaafd0b35990326e12749fa513 to your computer and use it in GitHub Desktop.
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
# /etc/salt/cloud.providers.d/azure.conf | |
azure: | |
driver: azurearm | |
master: salt | |
subscription_id: my_sub_id | |
client_id: my_client_id | |
secret: my_client_secret | |
tenant: my_tenant_id | |
location: westus | |
resource_group: saltFun | |
network: salt-Fun-vnet | |
# trimmed result of: sudo salt-cloud -l debug --list-images azure | |
[ERROR ] Failed to get the output of 'azurearm.avail_images()': Parameter 'subscription_id' must be str. | |
Traceback (most recent call last): | |
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 874, in image_list | |
data[alias][driver] = self.clouds[fun]() | |
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/azurearm.py", line 381, in avail_images | |
compconn = get_conn(client_type='compute') | |
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/azurearm.py", line 323, in get_conn | |
client_type=client_type, **conn_kwargs | |
File "/usr/lib/python2.7/dist-packages/salt/utils/azurearm.py", line 176, in get_client | |
base_url=cloud_env.endpoints.resource_manager, | |
File "/usr/local/lib/python2.7/dist-packages/azure/mgmt/compute/compute_management_client.py", line 75, in __init__ | |
self.config = ComputeManagementClientConfiguration(credentials, subscription_id, base_url) | |
File "/usr/local/lib/python2.7/dist-packages/azure/mgmt/compute/compute_management_client.py", line 41, in __init__ | |
raise TypeError("Parameter 'subscription_id' must be str.") | |
TypeError: Parameter 'subscription_id' must be str. | |
[DEBUG ] LazyLoaded nested.output | |
azure: | |
---------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment