Skip to content

Commit

Permalink
Add premium tier in help and fix a bug (#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackliu authored Jul 26, 2022
1 parent b0ebdda commit af9f9f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webpubsub/azext_webpubsub/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def load_arguments(self, _):
c.argument('webpubsub_name', webpubsub_name_type, options_list=['--name', '-n'])

with self.argument_context('webpubsub create') as c:
c.argument('sku', help='The sku name of the webpubsub service. Allowed values: Free_F1, Standard_S1')
c.argument('sku', help='The sku name of the webpubsub service. Allowed values: Free_F1, Standard_S1, Premium_P1')
c.argument('unit_count', help='The number of webpubsub service unit count', type=int)

with self.argument_context('webpubsub update') as c:
c.argument('sku', help='The sku name of the webpubsub service. Allowed values: Free_F1, Standard_S1')
c.argument('sku', help='The sku name of the webpubsub service. Allowed values: Free_F1, Standard_S1, Premium_P1')
c.argument('unit_count', help='The number of webpubsub service unit count', type=int)

with self.argument_context('webpubsub key regenerate') as c:
Expand Down
1 change: 1 addition & 0 deletions src/webpubsub/azext_webpubsub/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def webpubsub_set(client, webpubsub_name, resource_group_name, parameters):

def update_webpubsub(instance, tags=None, sku=None, unit_count=None):
sku = sku if sku else instance.sku.name
unit_count = unit_count if unit_count else instance.sku.capacity
instance.sku = ResourceSku(name=sku, capacity=unit_count)

if tags is not None:
Expand Down

0 comments on commit af9f9f1

Please sign in to comment.