Skip to content

Commit

Permalink
[APIM] Fixed apim create when --enable-managed-identity is set to true (
Browse files Browse the repository at this point in the history
#18554)

* fixed --enable-managed-identity for apim create

* fixed ci error and updated test
  • Loading branch information
Alan Feng authored Jun 30, 2021
1 parent 1e7f796 commit 5848826
Show file tree
Hide file tree
Showing 3 changed files with 1,775 additions and 1,880 deletions.
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/apim/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def create_apim(client, resource_group_name, name, publisher_email, sku_name=Sku
)

if enable_managed_identity:
resource['identity'] = ApiManagementServiceIdentity(type="SystemAssigned")
resource.identity = ApiManagementServiceIdentity(type="SystemAssigned")

if resource.sku.name == SkuType.consumption.value:
resource.sku.capacity = 0
Expand Down
Loading

0 comments on commit 5848826

Please sign in to comment.