Use the Cluster Credential Store
You can store credentials in the credential store for a cluster, so they're not passed in clear text in command line parameters or job code. After you create a credential, you can reference it from your job or notebook. When the cluster is deleted, the credential store is deleted as well.
To store credentials in the credential store for a cluster: