@@ -35,20 +35,19 @@ items:
35
35
startLine : 134
36
36
summary : " Return a SDK client initialized with auth file.\n\n The easiest way to\
37
37
\ obtain this file is to call the following CLI commands:\n\n <!-- literal_block\
38
- \ {\" backrefs\" : [], \" dupnames\" : [], \" xml:space\" : \" preserve\" , \" ids\" : [],\
39
- \ \" classes\" : [\" code\" , \" bash\" ], \" names\" : []} -->\n\n ````\n\n az ad sp\
40
- \ create-for-rbac --sdk-auth\n ````\n\n You can specific the file path directly,\
41
- \ or fill the environment variable AZURE_AUTH_LOCATION.\n File must be UTF-8.\n \
42
- \n This method will fill automatically the following client parameters:\n - credentials\n \
43
- - subscription_id\n - base_url\n\n Parameters provided in kwargs will override parameters\
44
- \ and be passed directly to the client.\n\n <!-- literal_block {\" backrefs\" : [],\
45
- \ \" dupnames\" : [], \" xml:space\" : \" preserve\" , \" ids\" : [], \" classes\" : [\" \
46
- code\" , \" python\" ], \" names\" : []} -->\n\n ````\n\n from azure.common.client_factory\
47
- \ import get_client_from_auth_file\n from azure.mgmt.compute import ComputeManagementClient\n \
48
- \ client = get_client_from_auth_file(ComputeManagementClient)\n ````\n\n Example\
49
- \ of file:\n\n <!-- literal_block {\" backrefs\" : [], \" dupnames\" : [], \" xml:space\" \
50
- : \" preserve\" , \" ids\" : [], \" classes\" : [\" code\" , \" json\" ], \" names\" : []}\
51
- \ -->\n\n ````\n\n {\n \" clientId\" : \" ad735158-65ca-11e7-ba4d-ecb1d756380e\" \
38
+ \ {\" classes\" : [\" code\" , \" bash\" ], \" dupnames\" : [], \" backrefs\" : [], \" xml:space\" \
39
+ : \" preserve\" , \" ids\" : [], \" names\" : []} -->\n\n ````\n\n az ad sp create-for-rbac\
40
+ \ --sdk-auth\n ````\n\n You can specific the file path directly, or fill the\
41
+ \ environment variable AZURE_AUTH_LOCATION.\n File must be UTF-8.\n\n This method\
42
+ \ will fill automatically the following client parameters:\n - credentials\n - subscription_id\n \
43
+ - base_url\n\n Parameters provided in kwargs will override parameters and be passed\
44
+ \ directly to the client.\n\n <!-- literal_block {\" classes\" : [\" code\" , \" python\" \
45
+ ], \" dupnames\" : [], \" backrefs\" : [], \" xml:space\" : \" preserve\" , \" ids\" : [],\
46
+ \ \" names\" : []} -->\n\n ````\n\n from azure.common.client_factory import get_client_from_auth_file\n \
47
+ \ from azure.mgmt.compute import ComputeManagementClient\n client = get_client_from_auth_file(ComputeManagementClient)\n \
48
+ \ ````\n\n Example of file:\n\n <!-- literal_block {\" classes\" : [\" code\" , \" \
49
+ json\" ], \" dupnames\" : [], \" backrefs\" : [], \" xml:space\" : \" preserve\" , \" ids\" \
50
+ : [], \" names\" : []} -->\n\n ````\n\n {\n \" clientId\" : \" ad735158-65ca-11e7-ba4d-ecb1d756380e\" \
52
51
,\n \" clientSecret\" : \" b70bb224-65ca-11e7-810c-ecb1d756380e\" ,\n \
53
52
\ \" subscriptionId\" : \" bfc42d3a-65ca-11e7-95cf-ecb1d756380e\" ,\n \" tenantId\" \
54
53
: \" c81da1d8-65ca-11e7-b1d1-ecb1d756380e\" ,\n \" activeDirectoryEndpointUrl\" \
94
93
\ subscription and CLI default cloud.\n\n This method will fill automatically the\
95
94
\ following client parameters:\n - credentials\n - subscription_id\n - base_url\n \
96
95
\n Parameters provided in kwargs will override CLI parameters and be passed directly\
97
- \ to the client.\n\n <!-- literal_block {\" backrefs \" : [] , \" dupnames \" : [ ], \" \
98
- xml:space \" : \" preserve \" , \" ids \" : [], \" classes \" : [ \" code \" , \" python \" ], \" \
96
+ \ to the client.\n\n <!-- literal_block {\" classes \" : [\" code \" , \" python \" ], \" \
97
+ dupnames \" : [] , \" backrefs \" : [], \" xml:space \" : \" preserve \" , \" ids \" : [ ], \" \
99
98
names\" : []} -->\n\n ````\n\n from azure.common.client_factory import get_client_from_cli_profile\n \
100
99
\ from azure.mgmt.compute import ComputeManagementClient\n client = get_client_from_cli_profile(ComputeManagementClient)\n \
101
100
\ ````\n\n New in version 1.1.6.\n "
@@ -127,14 +126,14 @@ items:
127
126
startLine : 73
128
127
summary : " Return a SDK client initialized with a JSON auth dict.\n\n The easiest\
129
128
\ way to obtain this content is to call the following CLI commands:\n\n <!-- literal_block\
130
- \ {\" backrefs \" : [], \" dupnames \" : [] , \" xml:space \" : \" preserve \" , \" ids \" : [],\
131
- \ \" classes \" : [ \" code \" , \" bash \" ], \" names\" : []} -->\n\n ````\n\n az ad sp\
132
- \ create-for-rbac -- sdk-auth\n ````\n\n This method will fill automatically the\
133
- \ following client parameters:\n - credentials\n - subscription_id\n - base_url\n \
134
- \n Parameters provided in kwargs will override parameters and be passed directly\
135
- \ to the client. \n\n <!-- literal_block {\" backrefs \" : [], \" dupnames\" : [], \" \
136
- xml:space\" : \" preserve\" , \" ids\" : [], \" classes \" : [\" code \" , \" python \" ], \" \
137
- names \" : []} --> \n \n ````\n\n from azure.common.client_factory import get_client_from_auth_file\n \
129
+ \ {\" classes \" : [\" code \" , \" bash \" ], \" dupnames \" : [] , \" backrefs \" : [], \" xml:space \" \
130
+ : \" preserve \" , \" ids \" : [ ], \" names\" : []} -->\n\n ````\n\n az ad sp create-for-rbac \
131
+ \ -- sdk-auth\n ````\n\n This method will fill automatically the following client \
132
+ \ parameters:\n - credentials\n - subscription_id\n - base_url\n\n Parameters provided \
133
+ \ in kwargs will override parameters and be passed directly to the client. \n\n \
134
+ <!-- literal_block {\" classes \" : [\" code \" , \" python \" ], \" dupnames\" : [], \" \
135
+ backrefs \" : [], \" xml:space\" : \" preserve\" , \" ids\" : [], \" names \" : []} --> \n \
136
+ \n ````\n\n from azure.common.client_factory import get_client_from_auth_file\n \
138
137
\ from azure.mgmt.compute import ComputeManagementClient\n config_dict = {\n \
139
138
\ \" clientId\" : \" ad735158-65ca-11e7-ba4d-ecb1d756380e\" ,\n \" clientSecret\" \
140
139
: \" b70bb224-65ca-11e7-810c-ecb1d756380e\" ,\n \" subscriptionId\" : \" bfc42d3a-65ca-11e7-95cf-ecb1d756380e\" \
0 commit comments