Skip to content

[BUG] Notification Hub API doesn't allow to set the registrationTtl property #33476

Open
@neil-yechenwei

Description

@neil-yechenwei

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/notificationhubs/resource-manager/Microsoft.NotificationHubs/stable/2023-09-01/notificationhubs.json#L2714

API Spec version

2023-09-01

Describe the bug

I tried to set registrationTtl while creating/updating Notification Hub but this property doesn't take effect.

request payload:

PUT https://management.azure.com/subscriptions/xxxxxxx/resourceGroups/acctestRGpol-250325143111879778/providers/Microsoft.NotificationHubs/namespaces/acctestnhn-250325143111879778/notificationHubs/acctestnh-250325143111879778

{
    "location": "eastus",
    "properties": {
        "name": "acctestnh-250325143111879778",
        "registrationTtl": "P90D"
    }
}

API response:

{
  "id": "/subscriptions/xxxxxx/resourceGroups/acctestRGpol-250325143111879778/providers/Microsoft.NotificationHubs/namespaces/acctestnhn-250325143111879778/NotificationHubs/acctestnh-250325143111879778",
  "location": "East US",
  "name": "acctestnh-250325143111879778",
  "registrationTtl": "10675199.02:48:05.4775807",
  "resourceGroup": "acctestRGpol-250325143111879778",
  "type": "Microsoft.NotificationHubs/namespaces/notificationHubs"
}

Expected behavior

The registraionTtl property should be set with the specified value.

Actual behavior

The registraionTtl doesn't take effect and it always returns "10675199.02:48:05.4775807".

Reproduction Steps

  1. Create resource group
  2. Create notification hub namespace
  3. Create notification hub with "registrationTtl=P39D"

Environment

PROD

Metadata

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.Notification HubService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions