Azure
StackState Self-hosted v4.5.x
Last updated
StackState Self-hosted v4.5.x
Last updated
This page describes StackState v4.5.x. The StackState 4.5 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.5 version range to upgrade to a more recent release.
Microsoft Azure is a cloud computing service created by Microsoft for building, testing, deploying, and managing applications and services. This StackPack enables in-depth monitoring of the following Azure resource types:
Azure is a StackState curated integration.
The StackState Azure Agent is a collection of Azure functions that connect to the Azure APIs at a configured interval to collect information about available resources.
TimedStart
triggers data collection every 2 hours.
EventHubChangesFunction
collects the deltas.
SendToStackState
pushes retrieved data to StackState.
StackState translates incoming data into topology components and relations.
The StackState Azure plugin pulls available telemetry data per resource on demand from Azure, for example when a component is viewed in the StackState UI or when a health check is run on the telemetry stream.
StackState maps retrieved telemetry (metrics) onto the associated Azure components and relations.
To set up the StackState Azure integration, you need to have:
PowerShell version >= 5.0 or Bash.
The Azure CLI.
A Resource Group where the StackState resources can be deployed. We recommend that you create a separate resource group for all the resources related to StackState.
An Azure Service Principal (SPN) for the StackState Azure Agent with the following permissions:
Contributor
role for the StackPack Resource Group to deploy and delete resources.
Reader
role for each of the subscriptions the StackPack instance will monitor.
If StackState is installed on premise and behind a firewall, the IP addresses used by Azure monitor (docs.microsoft.com) need to be reachable.
Install the Azure StackPack from the StackState UI StackPacks > Integrations screen. You will need to provide the following parameters:
Azure instance name - the user-defined name of the Azure instance shown in configurations such as views.
Client Id - the client id of the Azure Service Principal.
Client Secret - the client secret used to authenticate the client.
Tenant Id - the Id of the Azure Tenant / Active Directory.
To enable the Azure integration and begin collecting data from Azure, you will need to deploy the StackState Azure Agent to your Azure instance. The StackState Azure agent is a collection of Azure functions that connect to Azure REST API endpoints. You can deploy one or more StackState Azure Agents, each will collect data from resources related to the configured Reader
roles in the Azure Service Principle.
Download the manual installation zip file. This is included in the Azure StackPack and can be accessed at the link provided in StackState after you install the Azure StackPack.
Make sure you have created a resource group in one of your subscriptions where the StackState Azure Agent can be deployed.
Run one of the install scripts below, specifying the Client Id
and Client Secret
- these are the appId
and password
from the Service Principal you created before installing the Azure StackPack.
You can also specify two additional (positional) arguments after the <Azure resourceGroupName>
:
The StackPack Instance URL (topology identifier), default {tenant ID}_{first 25 chars of client ID}
.
The Azure function App name, default {tenant ID}_{first 25 chars of client ID}
.
Note that the install script is optimized to run with Azure CLI versions 2.24.0 and earlier. When running with Azure CLI versions 2.24.1 and above, you may see deprecation warnings.
You can check the status of the Azure integration in Azure resource group. Open the FunctionApp and check the available metrics or the full list of Functions from the left menu. The status of all functions should be Enabled.
When a new version of the Azure StackPack is available in your instance of StackState, you will be prompted to upgrade in the StackState UI on the page StackPacks > Integrations > Azure. For a quick overview of recent StackPack updates, check the StackPack versions shipped with each StackState release.
For considerations and instructions on upgrading a minor or patch release of a StackPack, see how to upgrade a StackPack.
To upgrade to a new major release of the Azure StackPack:
Completely remove the StackState Azure resources, either in Azure directly or using the provided deprovisioning script, and uninstall the current StackPack. For details see uninstall the Azure StackPack.
Install the new version from the page StackPacks > Integrations > Azure.
Install the new StackState Azure resources using the install script, see deploy the StackState Azure agent.
The Azure integration does not retrieve any Events data.
Metrics data is pulled on demand directly from Azure by the StackState Azure plugin, for example when a component is viewed in the StackState UI or when a health check is run on the telemetry stream. Retrieved metrics are mapped onto the associated topology component.
Each Azure integration retrieves topology data for resources associated with the associated Azure Service Principal.
The Azure integration does not retrieve any Traces data.
The Azure integration uses the following Azure REST API endpoints, scroll right for the SDK details:
There are a number of methods in the TopologyDurableFunction
class:
When the Azure integration is enabled, a view will be created in StackState for each instance of the StackPack. Each view shows components filtered by the Azure instance_name
tag and is named Azure_[instance_name].
Troubleshooting steps can be found in the StackState support Knowledge base guide to troubleshoot the StackState Azure StackPack.
The Azure StackPack can be uninstalled by clicking the Uninstall button from the StackState UI StackPacks > Integrations > Azure screen. This will remove all Azure specific configuration in StackState. You can also stop and delete the created resources (within the resource group specified when running the manual installation). They have been labeled with the tag StackState
.
To do so, you can use the scripts in the manual installation zip file you downloaded when installing the StackState Azure agent. You can download this file again at anytime from the StackState UI StackPacks > Integrations > Azure screen.
Azure StackPack v4.2.0 (2021-12-15)
Feature: Added two options to installation script:
to specify Azure function name for the integration
to specify stackpack instance URL (topology identifier)
Azure StackPack v4.1.1 (2021-04-02)
Improvement: Enable auto grouping on generated views.
Improvement: Common bumped from 2.2.3 to 2.5.1
Improvement: Update documentation.
Improvement: StackState min version bumped to 4.3.0
Azure StackPack v4.0.1 (2020-08-18)
Feature: Introduced the Release notes pop up for customer
Azure StackPack v4.0.0 (2020-08-04)
Bugfix: Fix and make Component mapping function per instance to support multi-instance properly.
Improvement: Deprecated stackpack specific layers and introduced a new common layer structure.
Azure StackPack v3.0.1 (2020-06-10)
Improvement: Added urn:host based identifiers for Azure VM's
Azure StackPack v3.0.0 (2020-05-19)
Feature: Added multi-instance support for the Azure StackPack
Data | Description |
---|---|
Resource | Endpoint | SDK (Version) |
---|---|---|
Function | Descrtipion |
---|---|