|
| 1 | +--- |
| 2 | +title: Manage components in App Spaces |
| 3 | +description: Learn how to manage App Spaces in the Azure portal. |
| 4 | +ms.author: msangapu |
| 5 | +author: msangapu-msft |
| 6 | +ms.service: app-spaces |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 05/20/2024 |
| 9 | +zone_pivot_groups: app-spaces-component-types |
| 10 | +--- |
| 11 | + |
| 12 | +# Manage components in App Spaces |
| 13 | + |
| 14 | +You can manage the components of your App Spaces by selecting the component on the __App Space__ page. |
| 15 | + |
| 16 | +[!include [component types](./includes/component-types-table.md)] |
| 17 | + |
| 18 | +::: zone pivot="static" |
| 19 | +## Deployment |
| 20 | + |
| 21 | +The **Deployment** section in App Spaces provides a detailed log of all deployment activities and utilizes GitHub Actions to automate the deployment process. You can redeploy the application if necessary. The section also includes a **Workflow run** log that tracks the deployment process step-by-step, starting from setting up the job, logging into Azure, checking out the branch, building and pushing the container image to the registry, and completing the job. This detailed workflow, powered by GitHub Actions, ensures transparency and provides insights into the deployment timeline, making it easier to manage and troubleshoot deployments. |
| 22 | +::: zone-end |
| 23 | +::: zone pivot="app" |
| 24 | +## Deployment |
| 25 | +The **Deployment** section in App Spaces provides a detailed log of all deployment activities and utilizes GitHub Actions to automate the deployment process. You can redeploy the application if necessary. The section also includes a **Workflow run** log that tracks the deployment process step-by-step, starting from setting up the job, logging into Azure, checking out the branch, building and pushing the container image to the registry, and completing the job. This detailed workflow, powered by GitHub Actions, ensures transparency and provides insights into the deployment timeline, making it easier to manage and troubleshoot deployments. |
| 26 | +::: zone-end |
| 27 | +::: zone pivot="database" |
| 28 | +::: zone-end |
| 29 | + |
| 30 | +::: zone pivot="static" |
| 31 | +## Logs |
| 32 | +App Spaces provides robust logging capabilities for static app components, which can be filtered over a range of time periods from the last hour to the last 30 days. You can enable logs through the **Log Settings** button, which offers different configuration options. The **Auto** setting automatically collects logs for HTTP requests, global errors, and usage analytics. For more customized tracking, you can choose the **Manual with npm packages** option to set up custom event tracking with IntelliSense. Alternatively, the **Manual with React and Angular plug-ins** option allows you to configure connection strings to define where to send telemetry data by replacing the placeholder `YOUR_CONNECTION_STRING` with the actual connection string. These flexible logging options ensure comprehensive monitoring and analysis tailored to specific needs. |
| 33 | + |
| 34 | +Select **Open in advanced queries** to go to the [Log Analytics workspace](../azure-monitor/logs/log-analytics-workspace-overview.md). |
| 35 | + |
| 36 | +For Application Insights, see [Enable a framework extension for Application Insights JavaScript SDK](https://go.microsoft.com/fwlink/?linkid=2269911). |
| 37 | +::: zone-end |
| 38 | +::: zone pivot="app" |
| 39 | +## Logs |
| 40 | + |
| 41 | +Select system logs to check service-level events, or console logs to debug code. For more information, see [Use queries in Log Analytics](../azure-monitor/logs/queries.md). |
| 42 | + |
| 43 | +Select **Open in advanced queries** to go to the [Log Analytics workspace](../azure-monitor/logs/log-analytics-workspace-overview.md). |
| 44 | +::: zone-end |
| 45 | +::: zone pivot="database" |
| 46 | +::: zone-end |
| 47 | + |
| 48 | +::: zone pivot="static" |
| 49 | +## Metrics |
| 50 | +This tab provides metrics for Static Web Apps, displayed in two primary graphs: **Requests** and **Data Out**. |
| 51 | +- The **Requests** graph tracks the number of HTTP requests made to the static web app, giving insights into traffic and user activity. |
| 52 | +- The **Data Out** graph measures the amount of data transferred from the app to users, which helps in understanding bandwidth usage. You can filter these metrics to view data over various time ranges. |
| 53 | +::: zone-end |
| 54 | +::: zone pivot="app" |
| 55 | +## Metrics |
| 56 | +This tab provides metrics for Azure Container Apps, displayed in three primary graphs: **Requests**, **CPU Usage Nanocores**, and **Memory Working Set Bytes**. |
| 57 | +- The **Requests** graph provides a visual representation of HTTP requests made to the app, offering valuable insights into app traffic and user engagement over time. |
| 58 | +- The **CPU Usage Nanocores** graph illustrates the CPU utilization of the app in nanocores, aiding in monitoring resource consumption and performance optimization. |
| 59 | +- The **Memory Working Set Bytes** graph displays the memory usage of the app, enabling users to track memory utilization trends and identify potential memory-related issues. |
| 60 | +::: zone-end |
| 61 | +::: zone pivot="database" |
| 62 | +::: zone-end |
| 63 | + |
| 64 | +## Settings |
| 65 | + |
| 66 | +::: zone pivot="static" |
| 67 | +The **Settings** tab is divided into four main categories: General, Domains, Routes, and Authentication. |
| 68 | + |
| 69 | +- In the **General** settings, you can specify the component name, ensuring easy identification and management. |
| 70 | +- The **Domains** section provides information about the current domains associated with your app, and you can create new [App Service domains](../app-service/manage-custom-dns-buy-domain.md) as needed. |
| 71 | +- The **Routes** section allows you to [define route rules to restrict access to users based on specific roles or to perform actions such as redirects or rewrites](../static-web-apps/configuration.md#routes). |
| 72 | +- The **Authentication** section is where you set up an authentication provider for your site. The available providers are Google and GitHub. Here, you can configure the client ID, client secret, and the API path for getting roles. After authentication, this API path will be called with the user's claims, and it must return an array of roles to determine which routes the user can access based on the roles defined in the Routes section. Learn more at [Authenticate and authorize Static Web Apps](../static-web-apps/authentication-authorization.yml). |
| 73 | + |
| 74 | + |
| 75 | +::: zone-end |
| 76 | +::: zone pivot="app" |
| 77 | +The **Settings** tab is divided into three categories: General, Environment variables, and Secrets. |
| 78 | + |
| 79 | +- In **General** section, options include defining the component name for easy identification within the app space, specifying the listening port to manage inbound connections, and configuring the ingress settings for controlling network traffic routing to the database. |
| 80 | +- In the **Environment variables** section, you can set up essential environment-specific variables, such as database usernames, connection strings, mount locations, and other parameters crucial for seamless database operations. |
| 81 | +- In the **Secrets** section provides a secure repository for storing sensitive data by inputting key/value pairs. These secrets can be referenced by environment variables, ensuring the protection of confidential information within the database component. |
| 82 | +::: zone-end |
| 83 | +::: zone pivot="database" |
| 84 | +The **Settings** tab is divided into three categories: General, Environment variables, and Secrets. |
| 85 | + |
| 86 | +- In **General** section, options include defining the component name for easy identification within the app space, specifying the listening port to manage inbound connections, and configuring the ingress settings for controlling network traffic routing to the database. |
| 87 | +- In the **Environment variables** section, you can set up essential environment-specific variables, such as database usernames, connection strings, mount locations, and other parameters crucial for seamless database operations. |
| 88 | +- In the **Secrets** section provides a secure repository for storing sensitive data by inputting key/value pairs. These secrets can be referenced by environment variables, ensuring the protection of confidential information within the database component. |
| 89 | +::: zone-end |
| 90 | + |
| 91 | + |
| 92 | +## Info |
| 93 | + |
| 94 | +::: zone pivot="static" |
| 95 | +This tab shows the following details: |
| 96 | + |
| 97 | +| Name | Description | |
| 98 | +|------|-------------| |
| 99 | +| URL | The direct link to your app| |
| 100 | +| Location | The Azure region where your app is hosted| |
| 101 | +| Resource group | The specific resource group managing your app| |
| 102 | +| Pricing | [Pricing details](https://go.microsoft.com/fwlink/?linkid=2260405)| |
| 103 | +| Repository | The GitHub repository used for the app's source code| |
| 104 | +| Branch | The GitHub branch used for the app's source code| |
| 105 | +| Subscription | The Azure subscription under which the app is running| |
| 106 | +| Resource name | The internal name used within Azure App Spaces| |
| 107 | +::: zone-end |
| 108 | +::: zone pivot="app" |
| 109 | + |
| 110 | +This tab shows the following details: |
| 111 | + |
| 112 | +| Name | Description | |
| 113 | +|------|-------------| |
| 114 | +| URL | The direct link to your app| |
| 115 | +| Location | The Azure region where your app is hosted| |
| 116 | +| Resource group | The specific resource group managing your app| |
| 117 | +| Pricing | [Pricing details](https://go.microsoft.com/fwlink/?linkid=2261690)| |
| 118 | +| Repository | The GitHub repository used for the app's source code| |
| 119 | +| Branch | The GitHub branch used for the app's source code| |
| 120 | +| Subscription | The Azure subscription under which the app is running| |
| 121 | +| Resource name | The internal name used within Azure App Spaces| |
| 122 | + |
| 123 | +::: zone-end |
| 124 | +::: zone pivot="database" |
| 125 | + |
| 126 | +This tab shows the following details: |
| 127 | + |
| 128 | +| Name | Description | |
| 129 | +|------|-------------| |
| 130 | +| URL | The direct link to your app| |
| 131 | +| Location | The Azure region where your app is hosted| |
| 132 | +| Resource group | The specific resource group managing your app| |
| 133 | +| Pricing | [Pricing details](https://go.microsoft.com/fwlink/?linkid=2261690)| |
| 134 | +| Subscription | The Azure subscription under which the app is running| |
| 135 | +| Resource name | The internal name used within Azure App Spaces| |
| 136 | + |
| 137 | +::: zone-end |
| 138 | + |
| 139 | +## Related content |
| 140 | + |
| 141 | +- [App Spaces overview](overview.md) |
| 142 | +- [Deploy a starter app in App Spaces](quickstart-deploy-starter-app.md) |
| 143 | +- [Deploy your app in App Spaces](quickstart-deploy-your-app.md) |
0 commit comments