简体   繁体   English

如何在 Azure Synapse 专用池中检索证书定义?

[英]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.

相关问题 用户在 Azure Synapse 专用 SQL 池中执行的查询? - Queries executed in Azure Synapse dedicated SQL Pool by User? 通过不检测重复但有欺骗来分组。 奇怪 SQL 服务器 - Azure Synapse 数据库专用 SQL 池 - Group by not detecting duplicates but there are dupes. Strange SQL Server - Azure Synapse database dedicated SQL pool Azure 突触,如何在 SQL 查询中传递日期参数? - Azure synapse, how do I pass date parameter in SQL query? 如何在 Azure Synapse Serverless 池中为 Lake 数据库创建视图 - How to create view in Azure Synapse Serverless pool for a Lake Database 如何在 Synapse Analytics 无服务器 SQL 池中对行进行随机抽样? - How to do random sampling of rows in Synapse Analytics serverless SQL pool? Azure 突触,SQL 池作为数据流中的源 - Azure synapse, SQL pool as a source in dataflow 在 Azure Synapse 专用/无服务器 SQL 池中使用增量表 - Using Delta Tables in Azure Synapse Dedicated/Serverless SQL Pools Azure Synapse Union - 如何合并表而不是添加行 - Azure Synapse Union - How do I merge tables instead of adding rows 如何在 Azure Synapse 中找到 HASH DISTRIBUTION 中使用的列? - How do I find the column used in a HASH DISTRIBUTION within Azure Synapse? 如何在 Azure Synapse 无服务器 SQL 池中使用 CETAS 创建外部表时添加自动递增列? - How to add auto incremented columns while creating External Tables using CETAS in Azure Synapse serverless SQL Pool?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM