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
# Deploy a Python (Django or Flask) web app with PostgreSQL in Azure
@@ -20,8 +19,6 @@ In this tutorial, you'll deploy a data-driven Python web app (**[Django](https:/
20
19
* An Azure account with an active subscription. If you don't have an Azure account, you [can create one for free](https://azure.microsoft.com/free/python).
21
20
* Knowledge of Python with Flask development or [Python with Django development](/training/paths/django-create-data-driven-websites/)
22
21
23
-
:::zone pivot="deploy-portal"
24
-
25
22
## Sample application
26
23
27
24
Sample Python applications using the Flask and Django framework are provided to help you follow along with this tutorial. To deploy them without running them locally, skip this part.
@@ -519,260 +516,6 @@ If you can't connect to the SSH session, then the app itself has failed to start
519
516
520
517
If you encounter any errors related to connecting to the database, check if the app settings (`AZURE_POSTGRESQL_CONNECTIONSTRING`) have been changed. Without that connection string, the migrate command can't communicate with the database.
521
518
522
-
:::zone-end
523
-
524
-
:::zone pivot="deploy-azd"
525
-
526
-
## Provision and deploy using the Azure Developer CLI
527
-
528
-
Sample Python application templates using the Flask and Django framework are provided for this tutorial. The [Azure Developer CLI](/azure/developer/azure-developer-cli/overview) greatly streamlines the process of provisioning application resources and deploying code on Azure. For a more step-by-step approach using the Azure portal and other tools, toggle to the **Azure portal** approach at the top of the page.
529
-
530
-
The Azure Developer CLI (azd) provides end-to-end support for project initialization, provisioning, deploying, monitoring and scaffolding a CI/CD pipeline to run against real Azure resources. You can use `azd` to provision and deploy the resources for the sample application in an automated and streamlined way.
531
-
532
-
Follow the steps below to setup the Azure Developer CLI and provision and deploy the sample application:
533
-
534
-
1. Install the Azure Developer CLI. For a full list of supported installation options and tools, visit the [installation guide](/azure/developer/azure-developer-cli/install-azd).
1. Run the `azd init` command to initialize the `azd` app template. Include the `--template` parameter to specify the name of an existing `azd` template you wish to use. More information about working with templates is available on the [choose an `azd` template](/azure/developer/azure-developer-cli/azd-templates) page.
551
-
552
-
### [Flask](#tab/flask)
553
-
554
-
For this tutorial, Flask users should specify the [Python (Flask) web app with PostgresSQL](https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app.git) template.
For this tutorial, Django users should specify the [Python (Django) web app with PostgresSQL](https://github.com/Azure-Samples/msdocs-django-postgresql-sample-app.git) template.
1. Run the `azd auth login` command to sign-in to Azure.
569
-
570
-
```bash
571
-
azd auth login
572
-
```
573
-
574
-
1. Run the `azd up` command to provision the necessary Azure resources and deploy the app code. The `azd up` command will also prompt you to select the desired subscription and location to deploy to.
575
-
576
-
```bash
577
-
azd up
578
-
```
579
-
580
-
1. When the `azd up` command finishes running, the URL for your deployed web app in the console will be printed. Click, or copy and paste the web app URL into your browser to explore the running app and verify that it is working correctly. All of the Azure resources and application code were set up for you by the `azd up` command.
581
-
582
-
The name of the resource group that was created is also displayed in the console output. Locate the resource group in the Azure portal to see all of the provisioned resources.
583
-
584
-
:::image type="content" border="False" source="./media/tutorial-python-postgresql-app/azd-resources-small.png" lightbox="./media/tutorial-python-postgresql-app/azd-resources.png" alt-text="A screenshot showing the resources deployed by the Azure Developer CLI.":::
585
-
586
-
The Azure Developer CLI also enables you to configure your application to use a CI/CD pipeline for deployments, setup monitoring functionality, and even remove the provisioned resources if you want to tear everything down. For more information about these additional workflows, visit the project [README](https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app/blob/main/README.md).
587
-
588
-
## Explore the completed azd project template workflow
589
-
590
-
The sections ahead review the steps that `azd` handled for you in more depth. You can explore this workflow to better understand the requirements for deploying your own apps to Azure. When you ran `azd up`, the Azure Developer CLI completed the following steps:
591
-
592
-
> [!NOTE]
593
-
> You can also use the steps outlined in the **Azure portal** version of this flow to gain additional insights into the tasks that `azd` completed for you.
594
-
595
-
### 1. Cloned and initialized the project
596
-
597
-
The `azd init` command cloned the sample app project template to your machine. The project template includes the following components:
598
-
599
-
* **Source code**: The code and assets for a Flask or Django web app that can be used for local development or deployed to Azure.
600
-
* **Bicep files**: Infrastructure as code (IaC) files that are used by `azd` to create the necessary resources in Azure.
601
-
* **Configuration files**: Essential configuration files such as `azure.yaml` that are used by `azd` to provision, deploy and wire resources together to produce a fully fledged application.
602
-
603
-
### 2. Provisioned the Azure resources
604
-
605
-
The `azd up` command created all of the resources for the sample application in Azure using the Bicep files in the [`infra`](https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app/tree/main/infra) folder of the project template. [Bicep](/azure/azure-resource-manager/bicep/overview?tabs=bicep) is a declarative language used to manage Infrastructure as Code in Azure. Some of the key resources and configurations created by the template include:
606
-
607
-
* **Resource group**: A resource group was created to hold all of the other provisioned Azure resources. The resource group keeps your resources well organized and easier to manage. The name of the resource group is based off of the environment name you specified during the `azd up` initialization process.
608
-
* **Azure Virtual Network**: A virtual network was created to enable the provisioned resources to securely connect and communicate with one another. Related configurations such as setting up a private DNS zone link were also applied.
609
-
* **Azure App Service plan**: An App Service plan was created to host App Service instances. App Service plans define what compute resources are available for one or more web apps.
610
-
* **Azure App Service**: An App Service instance was created in the new App Service plan to host and run the deployed application. In this case a Linux instance was created and configured to run Python apps. Additional configurations were also applied to the app service, such as setting the Postgres connection string and secret keys.
611
-
* **Azure Database for PostgreSQL**: A Postgres database and server were created for the app hosted on App Service to connect to. The required admin user, network and connection settings were also configured.
612
-
* **Azure Application Insights**: Application insights was set up and configured for the app hosted on the App Service. This service enables detailed telemetry and monitoring for your application.
613
-
614
-
You can inspect the Bicep files in the [`infra`](https://github.com/Azure-Samples/msdocs-flask-postgresql-sample-app/tree/main/infra) folder of the project to understand how each of these resources were provisioned in more detail. The `resources.bicep` file defines most of the different services created in Azure. For example, the App Service plan and App Service web app instance were created and connected using the following Bicep code:
The `azd up` command also deployed the sample application code to the provisioned Azure resources. The Developer CLI understands how to deploy different parts of your application code to different services in Azure using the `azure.yaml` file at the root of the project. The `azure.yaml` file specifies the app source code location, the type of app, and the Azure Service that should host that app.
735
-
736
-
Consider the following `azure.yaml` file. These configurations tell the Azure Developer CLI that the Python code that lives at the root of the project should be deployed to the created App Service.
Once you are finished experimenting with your sample application, you can run the `azd down` command to remove the app from Azure. Removing resources helps to avoid unintended costs or unused services in your Azure subscription.
769
-
770
-
```bash
771
-
azd down
772
-
```
773
-
774
-
:::zone-end
775
-
776
519
## Frequently asked questions
777
520
778
521
-[How much does this setup cost?](#how-much-does-this-setup-cost)
Copy file name to clipboardExpand all lines: articles/azure-arc/servers/includes/network-requirements.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The table below lists the URLs that must be available in order to install and us
55
55
|`*.waconazure.com`|For Windows Admin Center connectivity|If using Windows Admin Center|Public|
56
56
|`*.blob.core.windows.net`|Download source for Azure Arc-enabled servers extensions|Always, except when using private endpoints| Not used when private link is configured |
57
57
|`dc.services.visualstudio.com`|Agent telemetry|Optional, not used in agent versions 1.24+| Public |
58
-
|`san-af-<region>-prod.azurewebsites.net`| Azure Arc data processing service | For Azure Arc-enabled SQL Server. The Azure Extension for SQL Server uploads inventory and billing information to the data processing service. |Outbound|
58
+
|`san-af-<region>-prod.azurewebsites.net`| Azure Arc data processing service | For Azure Arc-enabled SQL Server. The Azure Extension for SQL Server uploads inventory and billing information to the data processing service. |Public|
59
59
60
60
> [!NOTE]
61
61
> To translate the `*.servicebus.windows.net` wildcard into specific endpoints, use the command `\GET https://guestnotificationservice.azure.com/urls/allowlist?api-version=2020-01-01&location=<region>`. Within this command, the region must be specified for the `<region>` placeholder.
Copy file name to clipboardExpand all lines: articles/azure-maps/web-sdk-migration-guide.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ If you're using CDN ([content delivery network]), update the references to the s
39
39
40
40
### npm
41
41
42
-
Install the latest[npm] package using the following command:
42
+
If you're using[npm], update the to the latest Azure Maps control by running the following command:
43
43
44
44
```shell
45
45
npm install azure-maps-control@latest
@@ -59,10 +59,18 @@ Consider a gradual rollout strategy for the updated version. Release the migrate
59
59
60
60
By following these steps and considering best practices, you can successfully migrate your application from Azure Maps WebSDK v1 to v3. Embrace the new capabilities and improvements offered by the latest version while ensuring a smooth and seamless transition for your users. For more information, see [Azure Maps Web SDK best practices].
61
61
62
+
## Next steps
63
+
64
+
Learn more about the Azure Maps Power BI visual:
65
+
66
+
> [!div class="nextstepaction"]
67
+
> [Use the Azure Maps map control]
68
+
62
69
[Azure Active Directory Authentication]: how-to-secure-spa-users.md
63
70
[Azure Maps Web SDK best practices]: web-sdk-best-practices.md
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/availability-azure-functions.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
title: Review TrackAvailability() test results
3
3
description: This article explains how to review data logged by TrackAvailability() tests
4
4
ms.topic: conceptual
5
-
ms.date: 06/23/2023
5
+
ms.date: 08/20/2023
6
6
---
7
7
8
8
# Review TrackAvailability() test results
9
9
10
-
This article explains how to review [TrackAvailability()](/dotnet/api/microsoft.applicationinsights.telemetryclient.trackavailability) test results in the Azure portal and query the data using [Log Analytics](../logs/log-analytics-overview.md#overview-of-log-analytics-in-azure-monitor).
10
+
This article explains how to review [TrackAvailability()](/dotnet/api/microsoft.applicationinsights.telemetryclient.trackavailability) test results in the Azure portal and query the data using [Log Analytics](../logs/log-analytics-overview.md#overview-of-log-analytics-in-azure-monitor).[Standard tests](availability-standard-tests.md)**should always be used if possible** as they require little investment, no maintenance, and have few prerequisites.
11
11
12
12
## Prerequisites
13
13
@@ -16,9 +16,8 @@ This article explains how to review [TrackAvailability()](/dotnet/api/microsoft.
16
16
> - Access to the source code of a [function app](../../azure-functions/functions-how-to-use-azure-function-app-settings.md) in Azure Functions
17
17
> - Developer expertise capable of authoring [custom code](#basic-code-sample) for [TrackAvailability()](/dotnet/api/microsoft.applicationinsights.telemetryclient.trackavailability), tailored to your specific business needs
18
18
19
-
> [!NOTE]
20
-
> -[TrackAvailability()](/dotnet/api/microsoft.applicationinsights.telemetryclient.trackavailability) requires that you make a developer investment in custom code.
21
-
> -[Standard tests](availability-standard-tests.md)**should always be used if possible** as they require little investment, no maintenance, and have few prerequisites.
19
+
> [!IMPORTANT]
20
+
> [TrackAvailability()](/dotnet/api/microsoft.applicationinsights.telemetryclient.trackavailability) requires making a developer investment in writing and maintanining potentially complex custom code.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/codeless-overview.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,17 @@ ms.reviewer: abinetabate
9
9
10
10
# What is autoinstrumentation for Azure Monitor Application Insights?
11
11
12
-
Autoinstrumentation quickly and easily enables [Application Insights](app-insights-overview.md) to make [telemetry](data-model-complete.md) like metrics, requests, and dependencies available in your [Application Insights resource](create-workspace-resource.md).
12
+
Autoinstrumentation enables [Application Insights](app-insights-overview.md) to make [telemetry](data-model-complete.md) like metrics, requests, and dependencies available in your [Application Insights resource](create-workspace-resource.md). It provides easy access to experiences such as the [application dashboard](overview-dashboard.md) and [application map](app-map.md).
13
+
14
+
If your language and platform are supported, select the corresponding link in the [Supported environments, languages, and resource providers table](#supported-environments-languages-and-resource-providers) for more detailed information. In many cases, autoinstrumentation is enabled by default.
15
+
16
+
## What are the autoinstrumentation advantages?
13
17
14
18
> [!div class="checklist"]
15
-
> - No code changes are required.
16
-
> -[SDK update](sdk-support-guidance.md) overhead is eliminated.
17
-
> - Recommended when available.
19
+
> - Code changes aren't required.
20
+
> - Access to source code isn't required.
21
+
> - Configuration changes aren't required.
22
+
> - Ongoing [SDK update maintenance](sdk-support-guidance.md) is eliminated.
18
23
19
24
## Supported environments, languages, and resource providers
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/monitor-kubernetes.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,7 +93,7 @@ The sections below identify the steps for complete monitoring of your Kubernetes
93
93
#### Enable scraping of Prometheus metrics
94
94
95
95
> [!IMPORTANT]
96
-
> Azure Monitor managed service for Prometheus requires an [Azure Monitor workspace](../essentials/azure-monitor-workspace-overview.md) to support Azure Monitor managed service for Prometheus. For information on design considerations for a workspace configuration, see [Azure Monitor workspace architecture](../essentials/azure-monitor-workspace-overview.md#azure-monitor-workspace-architecture).
96
+
> To use Azure Monitor managed service for Prometheus, you need to have an [Azure Monitor workspace](../essentials/azure-monitor-workspace-overview.md). For information on design considerations for a workspace configuration, see [Azure Monitor workspace architecture](../essentials/azure-monitor-workspace-overview.md#azure-monitor-workspace-architecture).
97
97
98
98
Enable scraping of Prometheus metrics by Azure Monitor managed service for Prometheus from your cluster using one of the following methods:
0 commit comments