Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Azure Impact Reporting is currently in Preview. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
This guide outlines solutions to common errors faced when creating an Impact Reporting Connector.
The bash script fails immediately after starting
Ensure that the script has execution permissions. Use this command to make it executable.
chmod +x create-impact-reporting-connector.sh
In the bash script, Azure sign-in fails (az sign-in command not working)
Ensure Azure CLI is installed and updated to the latest version. Try manually logging in using az login
to check for any more prompts or errors.
Error "Subscription ID or file path with list of subscription IDs required"
- Bash: Make sure you're providing either
--subscription-id
or--file-path
argument when executing the script. Don't provide both. - Powershell: Make sure to provide either the
-SubscriptionId
parameter or the-FilePath
parameter when invoking the script. Don't provide both.
Error "Failed to find file: [file_path]"
- Bash: Verify the file path provided with
--file-path
exists and is accessible. Ensure the correct path is used. - Powershell: Verify the file path provided with
-FilePath
exists and is accessible. Ensure to use the correct path and the file isn't locked or in use by another process.
Script fails to execute with permission errors
Ensure you have Contributor permission to log into Azure, register resource providers, and create connectors in the Azure subscriptions. You also need to have User Access Administrator
permission to create and assign custom roles.
Script execution stops unexpectedly without completing
Check if the Azure PowerShell module is installed and up to date. Use Update-Module -Name Az
to update the Azure PowerShell module. Ensure $ErrorActionPreference
is set to Continue
temporarily to bypass noncritical errors.
Namespace or feature registration takes too long or fails
These operations can take several minutes. Ensure your Azure account has the Contributor access on the subscriptions. Rerun the script once the required access is granted. Reach out to the Impact Reporting connectors team if the issue persists.
Custom role creation or assignment fails
Ensure the Azure Service Principal
AzureImpactReportingConnector
exists by typing it into the Azure resource search box as shown in the image, if not wait for a few minutes for it to get created. If it doesn't get created even after an hour, reach out to the Impact Reporting connectors team.Verify your account has
User Access Administrator
permission to create roles and assign them.
Connector creation takes too long
It can take about 15-20 minutes for the namespace registration to allow the connector resource creation to take place. After 30 minutes if the script is still running, cancel its execution and rerun it. If this second run also gets stuck, reach out to the Impact Reporting connectors team.
Connector creation fails
Ensure that the
Microsoft.Impact
resource provider is registered. You can register the subscription in two ways -- From the Azure portal, navigate to your
Subscription -> Resource Providers
. - Search for
Microsoft.Impact
and register. - Bash: run
az provider show -n "Microsoft.Impact" -o json --query "registrationState"
. - PowerShell: run
Get-AzResourceProvider -ProviderNamespace Microsoft.Impact
.
- From the Azure portal, navigate to your
Ensure that the feature flags: AllowImpactReporting and
AzureImpactReportingConnector
are registered against the feature:Microsoft.Impact
.- Bash
az feature list -o json --query "[?contains(name, 'Microsoft.Impact/AllowImpactReporting')].{Name:name,State:properties.state}"
az feature list -o json --query "[?contains(name, 'Microsoft.Impact/AzureImpactReportingConnector')].{Name:name,State:properties.state}"
- PowerShell
Get-AzProviderFeature -ProviderNamespace "Microsoft.Impact" -FeatureName AzureImpactReportingConnector"
Get-AzProviderFeature -ProviderNamespace "Microsoft.Impact" -FeatureName AllowImpactReporting
- Bash
Ensure that you have Contributor access to the subscriptions
This covers the common scenarios encountered while onboarding the connector. For issues not covered here, reach out to the Impact Reporting connectors team.