列出arm模板中的PowerBI工作区集合键
当使用ARM模板部署各种Azure组件时,您可以使用一些功能。其中一个被调用,您可以使用它通过输出返回在部署期间(例如,在部署存储帐户时)创建的密钥列出arm模板中的PowerBI工作区集合键,powerbi,powerbi-embedded,arm-template,azure-resource-manager,Powerbi,Powerbi Embedded,Arm Template,Azure Resource Manager,当使用ARM模板部署各种Azure组件时,您可以使用一些功能。其中一个被调用,您可以使用它通过输出返回在部署期间(例如,在部署存储帐户时)创建的密钥 在部署Power BI workspace集合时,有没有办法获取密钥?根据您提到的,如果我们想使用listKeys功能,那么我们需要知道resourceName和ApiVersion 从中,我们可以获得资源名称 Microsoft.PowerBI/workspacecolections/{workspacecolectionname}和API版本“
在部署Power BI workspace集合时,有没有办法获取密钥?根据您提到的,如果我们想使用listKeys功能,那么我们需要知道resourceName和ApiVersion 从中,我们可以获得资源名称
Microsoft.PowerBI/workspacecolections/{workspacecolectionname}
和API版本“2016-01-29”
所以请尝试使用下面的编码,它对我来说是正确的
"outputs": {
"exampleOutput": {
"value": "[listKeys(resourceId('Microsoft.PowerBI/workspaceCollections', parameters('workspaceCollections_tompowerBItest')), '2016-01-29')]",
"type": "object"
}
检查从Azure门户创建的PowerBI服务
我使用的整个手臂模板:
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspaceCollections_tompowerBItest": {
"defaultValue": "tomjustforbitest",
"type": "string"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.PowerBI/workspaceCollections",
"sku": {
"name": "S1",
"tier": "Standard"
},
"tags": {},
"name": "[parameters('workspaceCollections_tompowerBItest')]",
"apiVersion": "2016-01-29",
"location": "South Central US"
}
],
"outputs": {
"exampleOutput": {
"value": "[listKeys(resourceId('Microsoft.PowerBI/workspaceCollections', parameters('workspaceCollections_tompowerBItest')), '2016-01-29')]",
"type": "object"
}
}
}