@@ -62,43 +62,46 @@ def _build_arguments_schema(cls, *args, **kwargs):
6262 # define Arg Group "Identity"
6363
6464 _args_schema = cls ._args_schema
65- _args_schema .mi_system_assigned = AAZStrArg (
66- options = ["--system-assigned " , "--mi-system-assigned " ],
65+ _args_schema .identity_type = AAZStrArg (
66+ options = ["--type " , "--identity-type " ],
6767 arg_group = "Identity" ,
68- help = "Set the system managed identity." ,
69- blank = "True" ,
68+ help = "Type of managed service identity." ,
69+ default = "SystemAssigned" ,
70+ enum = {"None" : "None" , "SystemAssigned" : "SystemAssigned" , "SystemAssigned,UserAssigned" : "SystemAssigned,UserAssigned" , "UserAssigned" : "UserAssigned" },
7071 )
71- _args_schema .mi_user_assigned = AAZListArg (
72- options = ["--user-assigned" , "--mi- user-assigned" ],
72+ _args_schema .user_assigned_identities = AAZDictArg (
73+ options = ["--user-assigned" , "--user-assigned-identities " ],
7374 arg_group = "Identity" ,
74- help = "Set the user managed identities." ,
75- blank = [],
75+ help = "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." ,
7676 )
7777
78- mi_user_assigned = cls ._args_schema .mi_user_assigned
79- mi_user_assigned .Element = AAZStrArg ()
78+ user_assigned_identities = cls ._args_schema .user_assigned_identities
79+ user_assigned_identities .Element = AAZObjectArg (
80+ nullable = True ,
81+ blank = {},
82+ )
8083
81- # define Arg Group "KeyVaultProperties "
84+ # define Arg Group "Key Properties "
8285
8386 _args_schema = cls ._args_schema
8487 _args_schema .key_name = AAZStrArg (
8588 options = ["--key-name" ],
86- arg_group = "KeyVaultProperties " ,
89+ arg_group = "Key Properties " ,
8790 help = "The name of the key associated with the Log Analytics cluster." ,
8891 )
8992 _args_schema .key_rsa_size = AAZIntArg (
9093 options = ["--key-rsa-size" ],
91- arg_group = "KeyVaultProperties " ,
94+ arg_group = "Key Properties " ,
9295 help = "Selected key minimum required size." ,
9396 )
9497 _args_schema .key_vault_uri = AAZStrArg (
9598 options = ["--key-vault-uri" ],
96- arg_group = "KeyVaultProperties " ,
99+ arg_group = "Key Properties " ,
97100 help = "The Key Vault uri which holds they key associated with the Log Analytics cluster." ,
98101 )
99102 _args_schema .key_version = AAZStrArg (
100103 options = ["--key-version" ],
101- arg_group = "KeyVaultProperties " ,
104+ arg_group = "Key Properties " ,
102105 help = "The version of the key associated with the Log Analytics cluster." ,
103106 )
104107
@@ -131,16 +134,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
131134 help = "The cluster's billing type." ,
132135 enum = {"Cluster" : "Cluster" , "Workspaces" : "Workspaces" },
133136 )
134- _args_schema .is_availability_zones_enabled = AAZBoolArg (
135- options = ["--is-zone-enabled" , "--is-availability-zones-enabled" ],
136- arg_group = "Properties" ,
137- help = "Sets whether the cluster will support availability zones. This can be set as true only in regions where Azure Data Explorer support Availability Zones. This Property can not be modified after cluster creation. Default value is 'true' if region supports Availability Zones." ,
138- )
139- _args_schema .is_double_encryption_enabled = AAZBoolArg (
140- options = ["--enable-d-encrypt" , "--is-double-encryption-enabled" ],
141- arg_group = "Properties" ,
142- help = "Configures whether cluster will use double encryption. This Property can not be modified after cluster creation. Default value is 'true'" ,
143- )
144137 _args_schema .replication = AAZObjectArg (
145138 options = ["--replication" ],
146139 arg_group = "Properties" ,
@@ -167,13 +160,14 @@ def _build_arguments_schema(cls, *args, **kwargs):
167160 _args_schema .sku_capacity = AAZIntArg (
168161 options = ["--sku-capacity" ],
169162 arg_group = "Sku" ,
170- help = "The capacity reservation level in Gigabytes for this cluster ." ,
163+ help = "The capacity of the SKU. It can be decreased only after 31 days ." ,
171164 enum = {"100" : 100 , "1000" : 1000 , "10000" : 10000 , "200" : 200 , "2000" : 2000 , "25000" : 25000 , "300" : 300 , "400" : 400 , "500" : 500 , "5000" : 5000 , "50000" : 50000 },
172165 )
173166 _args_schema .sku_name = AAZStrArg (
174167 options = ["--sku-name" ],
175168 arg_group = "Sku" ,
176- help = "The SKU (tier) of a cluster." ,
169+ help = "The name of the SKU." ,
170+ default = "CapacityReservation" ,
177171 enum = {"CapacityReservation" : "CapacityReservation" },
178172 )
179173 return cls ._args_schema
@@ -292,18 +286,16 @@ def content(self):
292286
293287 identity = _builder .get (".identity" )
294288 if identity is not None :
295- identity .set_prop ("userAssigned " , AAZListType , ".mi_user_assigned " , typ_kwargs = {"flags" : {"action " : "create" }})
296- identity .set_prop ("systemAssigned " , AAZStrType , ".mi_system_assigned" , typ_kwargs = { "flags" : { "action" : "create" }} )
289+ identity .set_prop ("type " , AAZStrType , ".identity_type " , typ_kwargs = {"flags" : {"required " : True }})
290+ identity .set_prop ("userAssignedIdentities " , AAZDictType , ".user_assigned_identities" )
297291
298- user_assigned = _builder .get (".identity.userAssigned " )
299- if user_assigned is not None :
300- user_assigned .set_elements (AAZStrType , "." )
292+ user_assigned_identities = _builder .get (".identity.userAssignedIdentities " )
293+ if user_assigned_identities is not None :
294+ user_assigned_identities .set_elements (AAZObjectType , "." , typ_kwargs = { "nullable" : True } )
301295
302296 properties = _builder .get (".properties" )
303297 if properties is not None :
304298 properties .set_prop ("billingType" , AAZStrType , ".billing_type" )
305- properties .set_prop ("isAvailabilityZonesEnabled" , AAZBoolType , ".is_availability_zones_enabled" )
306- properties .set_prop ("isDoubleEncryptionEnabled" , AAZBoolType , ".is_double_encryption_enabled" )
307299 properties .set_prop ("keyVaultProperties" , AAZObjectType )
308300 properties .set_prop ("replication" , AAZObjectType , ".replication" )
309301
0 commit comments