You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more details about creating Azure SignalR Service, see the [tutorial](https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-azure-functions-javascript#create-an-azure-signalr-service-instance).
@@ -42,41 +47,41 @@ It's a quick try of this sample. You will create an Azure SignalR Service and an
42
47
#!/bin/bash
43
48
44
49
# Function app and storage account names must be unique.
45
-
storageName=mystorageaccount$RANDOM
46
-
functionAppName=myserverlessfunc$RANDOM
47
-
region=westeurope
48
-
50
+
storageName=mystorageaccount
51
+
functionAppName=myserverlessfunc
52
+
region=eastus
53
+
49
54
# Create a resource group.
50
-
az group create --name myResourceGroup --location $region
55
+
az group create --name $resourceGroup --location $region
51
56
52
57
# Create an Azure storage account in the resource group.
53
58
az storage account create \
54
59
--name $storageName \
55
60
--location $region \
56
-
--resource-group myResourceGroup \
61
+
--resource-group $resourceGroup \
57
62
--sku Standard_LRS
58
63
59
64
# Create a serverless function app in the resource group.
60
65
az functionapp create \
61
66
--name $functionAppName \
62
67
--storage-account $storageName \
63
68
--consumption-plan-location $region \
64
-
--resource-group myResourceGroup \
69
+
--resource-group $resourceGroup \
65
70
--functions-version 3
66
71
```
67
72
68
73
3. Publish the sample to the Azure Function you created before.
0 commit comments