I was trying to deploy a certificate using azure cli with a valid password. If the password contains a special character, you get the following error when running import.

  az keyvault certificate import --vault-name $vaultname `
                               -n $certificateName `
                               -f $pfxFilePath `
                               --password $env:PWD
                               
  az keyvault certificate import: error: argument --password: expected one argument

This is a current open issue here. Go upvote it!