Azure / Azure/azure-cli

Notification Hub - Can't update Google API key

Open
#23,644 4 comments 0 reactions 0 assignees View on GitHub
customer-reported feature-request Notification Hub Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Issue**
We're using an Azure CLI script to update the Google API key of this Notification Hub. However, `az notification-hub credential gcm update` started randomly "failing". This Azure CLI command doesn't seem to have a timeout; it just spins forever.

`az notification-hub credential gcm update --resource-group $resourceGroup --notification-hub-name $notificationHub --namespace-name $hubNamespace --google-api-key $googleKey`

We've contacted Azure support about this and they told us that, to perform this operation, Azure contacts Google's servers to validate those gcm credentials. This is a synchronous operation. Google is taking 85 seconds to perform that validation, and Azure is timing out after 60 seconds, so the request doesn't get through.

**Suggestion**
Adding a timeout parameter or simply timeout after ~60 seconds, instead of running forever.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.