From dac5064a127429c0926b03adfd7a78a21547c4e1 Mon Sep 17 00:00:00 2001 From: seth poop Date: Wed, 23 Oct 2024 16:06:32 -0600 Subject: [PATCH] Added SignalR package --- .../BookStoreApp.Blazor.Server.UI.csproj | 2 + .../signalr1.arm.json | 71 +++++++++++++++++++ ...Dependencies.BookStoreAppBlazorServer.json | 12 ++++ .../Properties/serviceDependencies.json | 9 +++ 4 files changed, 94 insertions(+) create mode 100644 BookStoreApp.Blazor.Server.UI/Properties/ServiceDependencies/BookStoreAppBlazorServer/signalr1.arm.json create mode 100644 BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.BookStoreAppBlazorServer.json create mode 100644 BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.json diff --git a/BookStoreApp.Blazor.Server.UI/BookStoreApp.Blazor.Server.UI.csproj b/BookStoreApp.Blazor.Server.UI/BookStoreApp.Blazor.Server.UI.csproj index 6a810c4..3eda97c 100644 --- a/BookStoreApp.Blazor.Server.UI/BookStoreApp.Blazor.Server.UI.csproj +++ b/BookStoreApp.Blazor.Server.UI/BookStoreApp.Blazor.Server.UI.csproj @@ -8,8 +8,10 @@ + + diff --git a/BookStoreApp.Blazor.Server.UI/Properties/ServiceDependencies/BookStoreAppBlazorServer/signalr1.arm.json b/BookStoreApp.Blazor.Server.UI/Properties/ServiceDependencies/BookStoreAppBlazorServer/signalr1.arm.json new file mode 100644 index 0000000..50269ef --- /dev/null +++ b/BookStoreApp.Blazor.Server.UI/Properties/ServiceDependencies/BookStoreAppBlazorServer/signalr1.arm.json @@ -0,0 +1,71 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "BookStoreAppResourceGroup", + "metadata": { + "_parameterType": "resourceGroup", + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "westus2", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource group. Resource groups could have different location than resources." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "_parameterType": "location", + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('BookStoreAppBlazorServerUI', subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "sku": { + "name": "Free_F1", + "tier": "Free", + "size": "F1", + "capacity": 1 + }, + "location": "[parameters('resourceLocation')]", + "name": "BookStoreAppBlazorServerUI", + "type": "Microsoft.SignalRService/SignalR", + "apiVersion": "2018-10-01" + } + ] + } + } + } + ], + "metadata": { + "_dependencyType": "signalr.azure" + } +} \ No newline at end of file diff --git a/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.BookStoreAppBlazorServer.json b/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.BookStoreAppBlazorServer.json new file mode 100644 index 0000000..8a85fcc --- /dev/null +++ b/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.BookStoreAppBlazorServer.json @@ -0,0 +1,12 @@ +{ + "dependencies": { + "signalr1": { + "serviceConnectorResourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/Microsoft.Web/sites/BookStoreAppBlazorServer/providers/Microsoft.ServiceLinker/linkers/AzureSignalRConnectionString_D4A2D057D8", + "secretStore": "AzureAppSettings", + "resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/Microsoft.SignalRService/SignalR/BookStoreAppBlazorServerUI", + "type": "signalr.azure", + "connectionId": "Azure:SignalR:ConnectionString", + "dynamicId": null + } + } +} \ No newline at end of file diff --git a/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.json b/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.json new file mode 100644 index 0000000..455b44a --- /dev/null +++ b/BookStoreApp.Blazor.Server.UI/Properties/serviceDependencies.json @@ -0,0 +1,9 @@ +{ + "dependencies": { + "signalr1": { + "type": "signalr", + "connectionId": "Azure:SignalR:ConnectionString", + "dynamicId": null + } + } +} \ No newline at end of file