Gather diagnostics using the Azure portal
Important
Diagnostics packages may contain information from your site which may, depending on use, include data such as personal data, customer data, and system-generated logs. When providing the diagnostics package to Azure support, you are explicitly giving Azure support permission to access the diagnostics package and any information that it contains. You should confirm that this is acceptable under your company's privacy policies and agreements.
In this how-to guide, you'll learn how to gather a remote diagnostics package for an Azure Private 5G Core (AP5GC) site using the Azure portal. The diagnostics package can then be provided to Azure support to assist you with issues.
You should always collect diagnostics as soon as possible after encountering an issue and submit them with your support request. See How to open a support request for Azure Private 5G Core.
Prerequisites
You must already have an AP5GC site deployed to collect diagnostics.
Set up a storage account
You need to set up a storage account to store the diagnostics package.
- Create a storage account for diagnostics with the following additional configuration:
- In the Data protection tab, under Access control, select Enable version-level immutability support. This will allow you to specify a time-based retention policy for the account in the next step.
- If you would like the content of your storage account to be automatically deleted after a period of time, configure a default time-based retention policy for your storage account.
- Create a container for your diagnostics.
- Make a note of the Container blob URL. For example:
https://storageaccountname.blob.core.windows.net/diagscontainername
- Navigate to your Storage account.
- Select the ... symbol on the right side of the container blob that you want to use for diagnostics collection.
- Select Container properties in the context menu.
- Copy the contents of the URL field in the Container properties view.
- Create a User-assigned identity and assign it to the storage account created above with the Storage Blob Data Contributor role.
Tip
You may have already created and associated a user-assigned identity when creating the site.
- Navigate to the Packet core control plane resource for the site.
- Select Identity under Settings in the left side menu.
- Select Add.
- Select the user-signed managed identity you created and select Add.
Gather diagnostics for a site
Sign in to the Azure portal.
Navigate to the Packet Core Control Pane overview page of the site you want to gather diagnostics for.
Select Diagnostics Collection under the Help section on the left side. This will open a Diagnostics Collection view.
Enter the Storage account blob URL that was configured for diagnostics storage and append the file name that you want to give the diagnostics. For example:
https://storageaccountname.blob.core.windows.net/diagscontainername/diagsPackageName.zip
Tip
The Storage account blob URL should have been noted during creation. If it wasn't:
- Navigate to your Storage account.
- Select the ... symbol on the right side of the container blob that you want to use for diagnostics collection.
- Select Container properties in the context menu.
- Copy the contents of the URL field in the Container properties view.
Select Diagnostics collection.
The AP5GC online service will generate a package at the provided storage account URL. Once the portal reports that this has succeeded, you'll be able to download the diagnostics package ready to share with Azure support.
- To download the diagnostics package, navigate to the storage account URL, right-click the file and select Download.
- To open a support request and share the diagnostics package with Azure support, see How to open a support request for Azure Private 5G Core.
Troubleshooting
- If diagnostics file collection fails, an activity log will appear in the portal allowing you to troubleshoot via ARM:
- If an invalid container URL was passed, the request will be rejected and report 400 Bad Request. Repeat the process with the correct container URL.
- If the asynchronous part of the operation fails, the asynchronous operation resource is set to Failed and reports a failure reason.
- Check that the same user-assigned identity was added to both the site and storage account.
- Check whether the storage container has an immutability policy configured. If so, either remove the policy or ensure that the storage account has version-level immutability support enabled, as described in Set up a storage account. This is required because the diagnostics file is streamed to the storage account container, so the container must support blob updates. For more information, see Time-based retention policies for immutable blob data.
- If this does not resolve the issue, share the correlation ID of the failed request with AP5GC support for investigation. See How to open a support request for Azure Private 5G Core.
Next steps
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for