diff --git a/src/OpenTelemetry.ResourceDetectors.Azure/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.ResourceDetectors.Azure/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt
index 6388753f6e..e3dbfb40fc 100644
--- a/src/OpenTelemetry.ResourceDetectors.Azure/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt
+++ b/src/OpenTelemetry.ResourceDetectors.Azure/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt
@@ -1,3 +1,3 @@
OpenTelemetry.ResourceDetectors.Azure.AppServiceResourceDetector
OpenTelemetry.ResourceDetectors.Azure.AppServiceResourceDetector.AppServiceResourceDetector() -> void
-OpenTelemetry.ResourceDetectors.Azure.AppServiceResourceDetector.Detect() -> OpenTelemetry.Resources.Resource?
\ No newline at end of file
+OpenTelemetry.ResourceDetectors.Azure.AppServiceResourceDetector.Detect() -> OpenTelemetry.Resources.Resource!
diff --git a/src/OpenTelemetry.ResourceDetectors.Azure/AppServiceResourceDetector.cs b/src/OpenTelemetry.ResourceDetectors.Azure/AppServiceResourceDetector.cs
index 3ab8352c10..88f5597e4f 100644
--- a/src/OpenTelemetry.ResourceDetectors.Azure/AppServiceResourceDetector.cs
+++ b/src/OpenTelemetry.ResourceDetectors.Azure/AppServiceResourceDetector.cs
@@ -27,7 +27,7 @@ namespace OpenTelemetry.ResourceDetectors.Azure;
public sealed class AppServiceResourceDetector : IResourceDetector
{
///
- public Resource? Detect()
+ public Resource Detect()
{
List>? attributeList = null;