Change variable naming sb to eh
This commit is contained in:
Родитель
bf4ca64b78
Коммит
5ec25a465f
|
@ -92,11 +92,11 @@
|
|||
"location": "[resourceGroup().location]",
|
||||
"storageVersion": "2016-01-01",
|
||||
"storageId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageName'))]",
|
||||
"sbVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehOutName": "[concat(parameters('suiteName'), '-ehout')]",
|
||||
"ehRuleOutName": "[concat(parameters('suiteName'), '-ehruleout')]",
|
||||
"sbKeyName": "RootManageSharedAccessKey",
|
||||
"sbResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"ehResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"saVersion": "2015-10-01",
|
||||
"docDBVersion": "2015-04-08",
|
||||
"docDBResourceId": "[resourceId('Microsoft.DocumentDb/databaseAccounts', parameters('docDBName'))]",
|
||||
|
@ -178,7 +178,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[parameters('sbName')]",
|
||||
"type": "Microsoft.Eventhub/namespaces",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -191,7 +191,7 @@
|
|||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -204,7 +204,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehRuleOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -375,7 +375,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -479,7 +479,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehRuleOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -567,7 +567,7 @@
|
|||
},
|
||||
"ehConnectionString": {
|
||||
"type": "string",
|
||||
"value": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]"
|
||||
"value": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -161,11 +161,11 @@
|
|||
"location": "[resourceGroup().location]",
|
||||
"storageVersion": "2016-01-01",
|
||||
"storageId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageName'))]",
|
||||
"sbVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehOutName": "[concat(parameters('sbName'), '-ehout')]",
|
||||
"ehRuleOutName": "[concat(parameters('sbName'), '-ehruleout')]",
|
||||
"sbKeyName": "RootManageSharedAccessKey",
|
||||
"sbResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"ehResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"saVersion": "2015-10-01",
|
||||
"webVersion": "2015-04-01",
|
||||
"bingMapsName": "[concat(parameters('suiteName'), '-map')]",
|
||||
|
@ -271,7 +271,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[parameters('sbName')]",
|
||||
"type": "Microsoft.Eventhub/namespaces",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -284,7 +284,7 @@
|
|||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -297,7 +297,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehRuleOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -468,7 +468,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -572,7 +572,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehRuleOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -720,10 +720,10 @@
|
|||
"device.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"device.TableName": "DeviceList",
|
||||
"eventHub.HubName": "[variables('ehOutName')]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"eventHub.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"RulesEventHub.Name": "[variables('ehRuleOutName')]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"ObjectTypePrefix": "",
|
||||
"MapApiQueryKey": "[listSecrets(variables('bingMapsName'), variables('bingMapsVersion')).QueryKey]",
|
||||
"SolutionName": "[variables('webSiteName')]"
|
||||
|
@ -782,10 +782,10 @@
|
|||
"device.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"device.TableName": "DeviceList",
|
||||
"eventHub.HubName": "[variables('ehOutName')]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"eventHub.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"RulesEventHub.Name": "[variables('ehRuleOutName')]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"ObjectTypePrefix": "",
|
||||
"MapApiQueryKey": "[listSecrets(variables('bingMapsName'), variables('bingMapsVersion')).QueryKey]",
|
||||
"SolutionName": "[variables('webSiteName')]"
|
||||
|
@ -829,7 +829,7 @@
|
|||
},
|
||||
"ehConnectionString": {
|
||||
"type": "string",
|
||||
"value": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]"
|
||||
"value": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -168,11 +168,11 @@
|
|||
"location": "[resourceGroup().location]",
|
||||
"storageVersion": "2016-01-01",
|
||||
"storageId": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageName'))]",
|
||||
"sbVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehVersion": "[providers('Microsoft.Eventhub', 'namespaces').apiVersions[0]]",
|
||||
"ehOutName": "[concat(parameters('sbName'), '-ehout')]",
|
||||
"ehRuleOutName": "[concat(parameters('sbName'), '-ehruleout')]",
|
||||
"sbKeyName": "RootManageSharedAccessKey",
|
||||
"sbResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"ehResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', parameters('sbName'), variables('sbKeyName'))]",
|
||||
"saVersion": "2015-10-01",
|
||||
"webVersion": "2015-04-01",
|
||||
"webJobPlanName": "[concat(parameters('suiteName'), '-jobsplan')]",
|
||||
|
@ -260,7 +260,7 @@
|
|||
]
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[parameters('sbName')]",
|
||||
"type": "Microsoft.Eventhub/namespaces",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -273,7 +273,7 @@
|
|||
},
|
||||
"resources": [
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -286,7 +286,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "[variables('sbVersion')]",
|
||||
"apiVersion": "[variables('ehVersion')]",
|
||||
"name": "[variables('ehRuleOutName')]",
|
||||
"type": "eventHubs",
|
||||
"location": "[variables('location')]",
|
||||
|
@ -457,7 +457,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -561,7 +561,7 @@
|
|||
"Properties": {
|
||||
"EventHubName": "[variables('ehRuleOutName')]",
|
||||
"ServiceBusNamespace": "[parameters('sbName')]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryKey]",
|
||||
"SharedAccessPolicyKey": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryKey]",
|
||||
"SharedAccessPolicyName": "[variables('sbKeyName')]",
|
||||
"PartitionKey": "PartitionId"
|
||||
},
|
||||
|
@ -707,10 +707,10 @@
|
|||
"device.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"device.TableName": "DeviceList",
|
||||
"eventHub.HubName": "[variables('ehOutName')]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"eventHub.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"RulesEventHub.Name": "[variables('ehRuleOutName')]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"ObjectTypePrefix": "",
|
||||
"MapApiQueryKey": "[parameters('bingMapsApiKey')]",
|
||||
"SolutionName": "[variables('webSiteName')]"
|
||||
|
@ -768,10 +768,10 @@
|
|||
"device.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"device.TableName": "DeviceList",
|
||||
"eventHub.HubName": "[variables('ehOutName')]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"eventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"eventHub.StorageConnectionString": "[concat('DefaultEndpointsProtocol=https;EndpointSuffix=', parameters('storageEndpointSuffix'), ';AccountName=', parameters('storageName'), ';AccountKey=', listkeys(variables('storageId'), variables('storageVersion')).keys[0].value)]",
|
||||
"RulesEventHub.Name": "[variables('ehRuleOutName')]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]",
|
||||
"RulesEventHub.ConnectionString": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]",
|
||||
"ObjectTypePrefix": "",
|
||||
"MapApiQueryKey": "[parameters('bingMapsApiKey')]",
|
||||
"SolutionName": "[variables('webSiteName')]"
|
||||
|
@ -815,7 +815,7 @@
|
|||
},
|
||||
"ehConnectionString": {
|
||||
"type": "string",
|
||||
"value": "[listkeys(variables('sbResourceId'), variables('sbVersion')).primaryConnectionString]"
|
||||
"value": "[listkeys(variables('ehResourceId'), variables('ehVersion')).primaryConnectionString]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче