Skip to content

Commit 50f29ce

Browse files
authored
Merge pull request #112282 from moabuham/patch-1
Update how-to-azure-ad.md
2 parents ab43a7e + 2cda42e commit 50f29ce

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

articles/mysql/flexible-server/how-to-azure-ad.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,21 @@ mysql -h mydb.mysql.database.azure.com \
220220
--password=`az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken`
221221
```
222222

223+
**Example (PowerShell):**
224+
225+
```
226+
mysql -h mydb.mysql.database.azure.com \
227+
228+
--enable-cleartext-plugin \
229+
--password=$(az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken)
230+
231+
232+
mysql -h mydb.mysql.database.azure.com \
233+
234+
--enable-cleartext-plugin \
235+
--password=$((Get-AzAccessToken -ResourceUrl https://ossrdbms-aad.database.windows.net).Token)
236+
```
237+
223238
## Connect to Azure Database for MySQL - Flexible Server using MySQL Workbench
224239

225240
- Launch MySQL Workbench and Select the Database option, then select **Connect to database**.

0 commit comments

Comments
 (0)