【Azure Notification Hub】创建Notification Hub失败,提示 unrecognized arguments: --sku Free

简介: 【Azure Notification Hub】创建Notification Hub失败,提示 unrecognized arguments: --sku Free

问题描述

用Azure CLI命令创建 Notification Hub,报错不识别的参数 --Free SKU

问题解答

经测试发现,在创建Notification Hub前,需要创建 Notification Hub Namespace,而在创建Namespace时候,需要指定资源的定价层(如: --sku Free),所以当在Namespace下创建Notification Hub时,就不在需要指定 --SKU参数。

正确的创建 CLI命令为:

#1: 创建notification hub namespace 
az notification-hub namespace create --resource-group test --name testnhns001 --location chinaeast --sku Free
#2: 创建notification hub
az notification-hub create --resource-group test --namespace-name testnhns001 --name testnhub01 --location chinaeast

 

参考文档

使用 Azure CLI 创建 Azure 通知中心 : https://docs.azure.cn/zh-cn/notification-hubs/create-notification-hub-azure-cli

相关文章
|
11天前
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub的解决之法
An exception occurred while retrieving properties for Event Hub: logicapp. Error Message: 'ClientSecretCredential authentication failed: AADSTS90002: Tenant 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Che
|
10天前
|
数据中心
【Azure Service Bus】创建 ServiceBus 的Terraform脚本报错GetAuthorizationRule: Invalid input
为了最佳的体验,需要确保使用最新 Terraform azurerm 组件!
|
26天前
|
C++
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub
|
26天前
|
Java 容器
【Azure 媒体服务】记使用 Media Service 的官网示例代码 Audio Analyzer 出现卡顿在 Creating event processor host .. 直到 Timeout 问题
【Azure 媒体服务】记使用 Media Service 的官网示例代码 Audio Analyzer 出现卡顿在 Creating event processor host .. 直到 Timeout 问题
|
1月前
|
C++
【Azure Logic App】使用Event Hub 连接器配置 Active Directory OAuth 认证无法成功连接到中国区Event Hub
在尝试使用Azure Logic App创建由Event Hub触发的工作流时,配置了Active Directory OAuth认证但仍遇到认证失败的问题。错误信息提示找不到指定的租户ID。尽管已设置了正确的Azure中国环境Authority,认证请求似乎仍指向全球Azure环境。这可能是Logic App服务本身的局限导致。作为替代方案,可采用Connection String或Managed Identity方式进行认证,两者均可正常工作。此外,通过Azure Function App复现此问题,进一步验证这是服务层面而非配置问题。相关文档和教程可在Azure官方文档中找到。
|
26天前
|
JSON Go 数据格式
【Azure 环境】Notification Hub无法创建Policy : 出现 500 Internal Server Error
【Azure 环境】Notification Hub无法创建Policy : 出现 500 Internal Server Error
|
26天前
|
消息中间件 存储 Kafka
【Azure 事件中心】适用Mirror Maker生产数据发送到Azure Event Hub出现发送一段时间后Timeout Exception: Expiring 18 record(s) for xxxxxxx: 79823 ms has passed since last append
【Azure 事件中心】适用Mirror Maker生产数据发送到Azure Event Hub出现发送一段时间后Timeout Exception: Expiring 18 record(s) for xxxxxxx: 79823 ms has passed since last append
|
26天前
|
JSON 开发工具 数据格式
【Azure Event Hub】Event Hub的Process Data页面无法通过JSON格式预览数据
【Azure Event Hub】Event Hub的Process Data页面无法通过JSON格式预览数据
|
26天前
|
C# 开发工具
【Azure Notification Hub】如何手动删除 Notification Hub 中已注册的设备
【Azure Notification Hub】如何手动删除 Notification Hub 中已注册的设备
|
26天前
|
消息中间件 API C#
【Azure API 管理】APIM添加Log-to-eventhub的策略后,一些相关APIM与Event Hub的问题
【Azure API 管理】APIM添加Log-to-eventhub的策略后,一些相关APIM与Event Hub的问题