Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Can';t使用NotificationHub&x2B部署arm模板;ApnsCredentials_Azure_Azure Resource Manager_Azure Notificationhub - Fatal编程技术网

Azure Can';t使用NotificationHub&x2B部署arm模板;ApnsCredentials

Azure Can';t使用NotificationHub&x2B部署arm模板;ApnsCredentials,azure,azure-resource-manager,azure-notificationhub,Azure,Azure Resource Manager,Azure Notificationhub,我正在使用arm模板部署Azure NotificationHub 这是 但是我得到了错误,没有详细信息BadRequest { "code": "DeploymentFailed", "details": [ { "code": "BadRequest", "message": { "error": { "message": "Bad Request", "code": "BadReques

我正在使用arm模板部署Azure NotificationHub 这是

但是我得到了错误,没有详细信息
BadRequest

{
  "code": "DeploymentFailed",
  "details": [
     {
      "code": "BadRequest",
      "message": {
         "error": {
           "message": "Bad Request",
           "code": "BadRequest"
         }
      } 
    ]
  }
我在azure portal中测试了我的参数,它可以工作——所以我假设参数是正确的


问题是如何使用ARM部署带有ApnsCredentials的NotificationHub?

以上ARM模板是正确的

我的参数不好。 我通过预览azure门户发送的请求找到了解决方案

我正在使用证书的端点:

  • 沙盒端点:gateway.Sandbox.push.apple.com
  • 生产端点:gateway.push.apple.com
令牌授权的端点不同:

  • 沙盒端点:
  • 生产端点:
您可以在此处找到详细信息:

您是否在notificationHubs中添加了“dependsOn”:[“[parameters('namespaceName')]”?是的,我知道了,只是没有复制到这里。
{
  "code": "DeploymentFailed",
  "details": [
     {
      "code": "BadRequest",
      "message": {
         "error": {
           "message": "Bad Request",
           "code": "BadRequest"
         }
      } 
    ]
  }