[英]How do I retrieve certificate definition in Azure Synapse dedicated pool?
I have created certificate with following definition.我创建了具有以下定义的证书。 The certificate is created.Is there any option to retrieve certificate definition from system objects?If we can retrieve definition,what is the best way to restrict user to view create certificate definition?
证书已创建。是否有任何选项可以从系统对象中检索证书定义?如果我们可以检索定义,限制用户查看创建证书定义的最佳方法是什么?
I checked sys.sql_modules table but couldn't find anything我检查了 sys.sql_modules 表但找不到任何东西
CREATE CERTIFICATE xxxx_Certificate ENCRYPTION BY PASSWORD = 'pGFD4bb925DGvbd2439587y' WITH SUBJECT = 'YYYY Information', EXPIRY_DATE = '20221231'
; CREATE CERTIFICATE xxxx_Certificate ENCRYPTION BY PASSWORD = 'pGFD4bb925DGvbd2439587y' WITH SUBJECT = 'YYYY Information', EXPIRY_DATE = '20221231'
;
Regards, Rajib问候, 拉吉布
As per my knowledge there is no proper way retrieve Azure key vault secret using T-SQL.据我所知,没有正确的方法使用 T-SQL 检索 Azure key vault secret。 We can retrieve key vault secret using Py spark code in Synapse pool.
我们可以在 Synapse 池中使用 Py spark 代码检索密钥保管库机密。 I created Azure key vault and created secret.
我创建了 Azure 密钥库并创建了密钥。 Image for reference:
图片供参考:
value of secret:秘密的价值:
I created synapse analytics and opened synapse studio and created notebook as mentioned below我创建了突触分析并打开了突触工作室并创建了如下所述的笔记本
I executed below code to retrieve the value of secret.我执行了下面的代码来检索 secret 的值。
from notebookutils import mssparkutils
mssparkutils.credentials.getSecret('<keyvault_name>' , '<secret_name>')
I got the azure key vault value.我得到了 azure 密钥保管库值。
you can follow this way to retrieve secret value from Azure key vault.您可以按照这种方式从 Azure 密钥库中检索秘密值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.