Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def identity_show(client, resource_group_name, account_name):
def deployment_begin_create_or_update(
client, resource_group_name, account_name, deployment_name,
model_format, model_name, model_version,
scale_settings_scale_type, scale_settings_capacity):
scale_settings_scale_type, scale_settings_capacity=None):
"""
Create a deployment for Azure Cognitive Services account.
"""
Expand All @@ -294,7 +294,8 @@ def deployment_begin_create_or_update(
dpy.properties.model.version = model_version
dpy.properties.scale_settings = DeploymentScaleSettings()
dpy.properties.scale_settings.scale_type = scale_settings_scale_type
dpy.properties.scale_settings.capacity = scale_settings_capacity
if scale_settings_capacity is not None:
dpy.properties.scale_settings.capacity = scale_settings_capacity

return client.begin_create_or_update(resource_group_name, account_name, deployment_name, dpy, polling=False)

Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Darwin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ azure-mgmt-batchai==7.0.0b1
azure-mgmt-billing==6.0.0
azure-mgmt-botservice==0.3.0
azure-mgmt-cdn==12.0.0
azure-mgmt-cognitiveservices==13.1.0
azure-mgmt-cognitiveservices==13.2.0
azure-mgmt-compute==27.0.0
azure-mgmt-consumption==2.0.0
azure-mgmt-containerinstance==9.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.Linux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ azure-mgmt-batchai==7.0.0b1
azure-mgmt-billing==6.0.0
azure-mgmt-botservice==0.3.0
azure-mgmt-cdn==12.0.0
azure-mgmt-cognitiveservices==13.1.0
azure-mgmt-cognitiveservices==13.2.0
azure-mgmt-compute==27.0.0
azure-mgmt-consumption==2.0.0
azure-mgmt-containerinstance==9.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/requirements.py3.windows.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ azure-mgmt-batchai==7.0.0b1
azure-mgmt-billing==6.0.0
azure-mgmt-botservice==0.3.0
azure-mgmt-cdn==12.0.0
azure-mgmt-cognitiveservices==13.1.0
azure-mgmt-cognitiveservices==13.2.0
azure-mgmt-compute==27.0.0
azure-mgmt-consumption==2.0.0
azure-mgmt-containerinstance==9.1.0
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
'azure-mgmt-billing==6.0.0',
'azure-mgmt-botservice~=0.3.0',
'azure-mgmt-cdn==12.0.0',
'azure-mgmt-cognitiveservices~=13.1.0',
'azure-mgmt-cognitiveservices~=13.2.0',
'azure-mgmt-compute~=27.0.0',
'azure-mgmt-consumption~=2.0',
'azure-mgmt-containerinstance~=9.1.0',
Expand Down