-
Notifications
You must be signed in to change notification settings - Fork 4k
Azure powershell SDK changes for Notification Hubs. Added a skuTier parameter for create/update namespace. #3119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @amolr, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
TTYL, AZPRBOT; |
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
@azuresdkci add to whitelist |
@amolr can you address failures |
@amolr Hey Amol, can you add the following tests:
|
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Microsoft.Azure.Test.Framework"> | ||
<Reference Include="Microsoft.Azure.Test.Framework, Version=1.0.6052.28118, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amolr why was this change made?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change got introduced while trying to debug an issue with Abhijeet related to our tests failing
ValueFromPipelineByPropertyName = true, | ||
Position = 4, | ||
HelpMessage = "Sku tier of the namespace")] | ||
public string skuTier { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amolr please rename this to SkuTier
ValueFromPipelineByPropertyName = true, | ||
Position = 4, | ||
HelpMessage = "Sku tier of the namespace")] | ||
public string skuTier { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amolr please rename this to SkuTier
@@ -78,7 +84,7 @@ public override void ExecuteCmdlet() | |||
() => | |||
{ | |||
// Update a namespace | |||
var nsAttribute = Client.UpdateNamespace(ResourceGroup, Namespace, Location, State, Critical, ConvertTagsToDictionary(Tags)); | |||
var nsAttribute = Client.UpdateNamespace(ResourceGroup, Namespace, Location, State, Critical, ConvertTagsToDictionary(Tags), skuTier); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amolr does SkuTier
need to have a default value here like it does in New-AzureNotificationHubsNamespace
? For example, if someone passes in an empty string for SkuTier
, does it need to be set to "free"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it need not have it here
@amolr please update the change log with the changes you have made in this PR |
@amolr Please update the changelog as Cormac suggested, here: https://github.com/Azure/azure-powershell/blob/dev/src/ResourceManager/NotificationHubs/ChangeLog.md Also, please clean up the commits, you have several commits titled 'regenerate wxi file'.. There are instructions for cleaning up commits here: https://github.com/Azure/azure-powershell/blob/dev/documentation/cleaning-up-commits.md |
@amolr still looking for commit cleanup. Please remove the '[Cleup commits]' tag from the title when you have cleaned up the commits. |
LGTM |
Description
The create/update namespace operation for Notification Hubs can now use a SkuTier parameter which sets the Sku level at the namespace level. This change allows the user to set the Sku using the parameter which creating or updating the namespace. In case of create, the skuTier if not specified is free by default.
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines