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
4. In the Cloud Shell, if you see an option to select between **Bash** and **PowerShell**, select **Bash**.
62
-
5. If you are using the Cloud Shell for the first time, create a storage account by selecting **Create storage**. Azure Cloud Shell requires an Azure storage account to store some files.
64
+
1. Create a storage account by selecting **Create storage**. Azure Cloud Shell requires an Azure storage account to store some files.
63
65
64
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/create-storage-cloud-shell.png" alt-text="Create storage for Cloud Shell":::
65
-
6. Wait until the Cloud Shell is initialized.
66
+
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/create-storage-cloud-shell.png" alt-text="Create storage for Cloud Shell":::
5. Keep this tab or window open so that you can verify that the data is created at the end of the tutorial.
154
157
155
-
### Update the function runtime version
158
+
## Publish the Azure Functions app
159
+
First, get the publish profile for the Functions app from the Azure portal. Then, use the publish profile to publish the Azure Functions project or app from Visual Studio.
156
160
157
-
1. Open another tab in the web browser, and navigate to [Azure portal](https://portal.azure.com).
158
-
1. In the Azure portal, select **Resource groups** on the left menu.
159
-
1. Select the resource group in which the function app exists.
160
-
1. Select the **function app** in the list of resources in the resource group.
161
-
1. Select **Configuration** under **Settings** on the left menu.
162
-
1. Switch to the **Function runtime settings** tab in the right pane.
163
-
1. Update the **runtime version** to **~3**.
161
+
### Get the publish profile
164
162
165
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/function-runtime-version.png" alt-text="Update function runtime version":::
166
-
6. Select **Save** on the toolbar.
167
-
1. On the **Save changes** confirmation popup, select **Continue**.
163
+
1. On the **Resource Group** page, select the **Azure Functions app** in the list of resources.
168
164
169
-
## Publish the Azure Functions app
165
+
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/select-function-app.png" alt-text="Screenshot showing the selection of the function app in the list of resources for a resource group.":::
166
+
1. On the **Function App** page for your app, select **Get publish profile** on the command bar.
167
+
168
+
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/get-publish-profile.png" alt-text="Screenshot showing the selection of the **Get Publish Profile** button on the commandbar of the function app page.":::
169
+
1. Download and save the file into the **FunctionEGDDumper** folder of the **EventHubsCaptureEventGridDemo** folder.
170
+
171
+
### Use the publish profile to publish the Functions app
170
172
171
173
1. Launch Visual Studio.
172
174
2. Open the **EventHubsCaptureEventGridDemo.sln** solution that you downloaded from the [GitHub](https://github.com/Azure/azure-event-hubs/tree/master/samples/e2e/EventHubsCaptureEventGridDemo) as part of the prerequisites. You can find it in the `/samples/e2e/EventHubsCaptureEventGridDemo` folder.
173
175
3. In Solution Explorer, right-click **FunctionEGDWDumper** project, and select **Publish**.
174
-
4. If you see the following screen, select **Start**.
175
-
176
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/start-publish-button.png" alt-text="Start button in the Publish section.":::
177
-
5. In the **Publish** dialog box, select **Azure** for **Target**, and select **Next**.
178
-
6. Select **Azure Function App (Windows)**, and select **Next**.
179
-
7. On the **Functions instance** tab, select your Azure subscription, expand the resource group, and select you function app, and then select **Finish**. You need to sign into your Azure account if you haven't already done so.
176
+
4. In the following screen, select **Start** or **Add a publish profile**.
177
+
5. In the **Publish** dialog box, select **Import Profile** for **Target**, and select **Next**.
180
178
181
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/publish-select-function-app.png" alt-text="Select your function app":::
182
-
8. On the **Publish** page, in the **Service Dependencies** section, select **Configure** for **Storage**.
183
-
184
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/publish-storage-configure-link.png" alt-text="Select configure link for storage service dependency":::
185
-
1. On the **Configure dependency** page, follow these steps:
186
-
1. select the **storage account** you created earlier, and then select **Next**.
1. Clear the **Permissions for remote access** and **Secrets store** option, and then select **Finish**.
193
-
194
-
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/dependency-storage-changes-summary.png" alt-text="Review summary of changes":::
179
+
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/import-profile.png" alt-text="Screenshot showing the selection **Import Profile** on the **Publish** dialog box.":::
180
+
1. On the **Import profile** tab, select the publish settings file that you saved earlier in the **FunctionEGDWDumper** folder, and then select **Finish**.
195
181
1. When Visual Studio has configured the profile, select **Publish**.
2. In the tab that has the **Azure Function** page open, select **Functions** on the left menu. Confirm that the **EventGridTriggerMigrateData** function shows up in the list. If you don't see it, try publishing from Visual Studio again, and then refresh the page in the portal.
199
183
200
184
:::image type="content" source="media/event-grid-event-hubs-functions-synapse-analytics/confirm-function-creation.png" alt-text="Confirm function creation":::
@@ -245,7 +229,7 @@ You've finished setting up your event hub, dedicate SQL pool (formerly SQL Data
245
229
1. Right-click **WindTurbineDataGenerator** project, and select **Set as Startup project**.
246
230
1. In the WindTurbineDataGenerator project, open **program.cs**.
247
231
1. Replace `<EVENT HUBS NAMESPACE CONNECTION STRING>` with the connection string you copied from the portal.
248
-
1. Replace `<EVENT HUB NAME>` with the name of the event hub.
232
+
1. If you have used a different name for the event hub other than `hubdatamigration`, replace `<EVENT HUB NAME>` with the name of the event hub.
0 commit comments