2016-12-29 17 views

回答

0

另外,您可以使用下面的請求主體來更改層。這是使用在鏈接中提到的服務管理API之上

請求方法:PUT

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}?api-version=2016-03-01 

請求體

{ 
  "Location": [Resource Location], 
  "Tags": null, 
  "Properties": {    
    "NamespaceType": "NotificationHub" 
  }, 
"sku":{ 
    "name":"Standard" 
  }  
} 

以下是你可以用它來更新層次的PowerShell腳本示例。你需要安裝azure powershell sdk。

$skuTier = "Standard" 
Set-AzureRmNotificationHubsNamespace -ResourceGroup $ResourceGroup -Namespace $namespaceName -Location $location -Tags $tags -skuTier $skuTier -Force 
+0

還是我得到的錯誤。 –

+0

Set-AzureRmNotificationHubsNamespace:找不到與參數名稱'skuTier'匹配的參數。 在線:1 char:127 + ...「West US」-skuTier $ skuTier -Force + ~~~~~~~~ + CategoryInfo:InvalidArgument:(:) [Set-AzureRmNotificationHubsNamespace],ParameterBindingException + FullyQualifiedErrorId:NamedParameterNotFound,Microsoft.Azure.Commands.NotificationHubs.Commands.Namespace.SetAzureNotificationHubsNamesp –