Skip to content
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

[Search] Add 2023-11-01 support #27632

Merged
merged 20 commits into from
Oct 23, 2023
Merged

Conversation

mattgotteiner
Copy link
Member

Related command

az search

Description

  • Add 2023-11-01 support
  • Add semantic search support

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Oct 19, 2023

️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.11
️✔️3.9
️✔️ams
️✔️latest
️✔️3.11
️✔️3.9
️✔️apim
️✔️latest
️✔️3.11
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.11
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️aro
️✔️latest
️✔️3.11
️✔️3.9
️✔️backup
️✔️latest
️✔️3.11
️✔️3.9
️✔️batch
️✔️latest
️✔️3.11
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.11
️✔️3.9
️✔️billing
️✔️latest
️✔️3.11
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.11
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.11
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️config
️✔️latest
️✔️3.11
️✔️3.9
️✔️configure
️✔️latest
️✔️3.11
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.11
️✔️3.9
️✔️container
️✔️latest
️✔️3.11
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.11
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.11
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️dla
️✔️latest
️✔️3.11
️✔️3.9
️✔️dls
️✔️latest
️✔️3.11
️✔️3.9
️✔️dms
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.11
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.11
️✔️3.9
️✔️find
️✔️latest
️✔️3.11
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.11
️✔️3.9
️✔️identity
️✔️latest
️✔️3.11
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.11
️✔️3.9
️✔️lab
️✔️latest
️✔️3.11
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️maps
️✔️latest
️✔️3.11
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.11
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.11
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.11
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.11
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.11
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.11
️✔️3.9
️✔️profile
️✔️latest
️✔️3.11
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.11
️✔️3.9
️✔️redis
️✔️latest
️✔️3.11
️✔️3.9
️✔️relay
️✔️latest
️✔️3.11
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️role
️✔️latest
️✔️3.11
️✔️3.9
️✔️search
️✔️latest
️✔️3.11
️✔️3.9
️✔️security
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.11
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.11
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.11
️✔️3.9
️✔️sql
️✔️latest
️✔️3.11
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.11
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.11
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️util
️✔️latest
️✔️3.11
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Oct 19, 2023

❌AzureCLI-BreakingChangeTest
❌search
rule cmd_name rule_message suggest_message
1008 - ParaPropAdd search service create cmd search service create update parameter aad_auth_failure_mode: added property choices=['http401WithBearerChallenge', 'http403'] please remove property choices=['http401WithBearerChallenge', 'http403'] for parameter aad_auth_failure_mode of cmd search service create
1008 - ParaPropAdd search service create cmd search service create update parameter auth_options: added property choices=['aadOrApiKey', 'apiKeyOnly'] please remove property choices=['aadOrApiKey', 'apiKeyOnly'] for parameter auth_options of cmd search service create
1008 - ParaPropAdd search service create cmd search service create update parameter hosting_mode: added property choices=['default', 'highDensity'] please remove property choices=['default', 'highDensity'] for parameter hosting_mode of cmd search service create
1008 - ParaPropAdd search service create cmd search service create update parameter identity_type: added property choices=['None', 'SystemAssigned'] please remove property choices=['None', 'SystemAssigned'] for parameter identity_type of cmd search service create
1010 - ParaPropUpdate search service create cmd search service create update parameter location: updated property type from custom_type to string please change property type from string to custom_type for parameter location of cmd search service create
1008 - ParaPropAdd search service create cmd search service create update parameter no_wait: added property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes'] please remove property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes'] for parameter no_wait of cmd search service create
1008 - ParaPropAdd search service create cmd search service create update parameter public_network_access: added property choices=['disabled', 'enabled'] please remove property choices=['disabled', 'enabled'] for parameter public_network_access of cmd search service create
1010 - ParaPropUpdate search service create cmd search service create update parameter sku: updated property choices from ['Basic', 'Free', 'Standard', 'Standard2', 'Standard3'] to ['basic', 'free', 'standard', 'standard2', 'standard3', 'storage_optimized_l1', 'storage_optimized_l2'] please change property choices from ['basic', 'free', 'standard', 'standard2', 'standard3', 'storage_optimized_l1', 'storage_optimized_l2'] to ['Basic', 'Free', 'Standard', 'Standard2', 'Standard3'] for parameter sku of cmd search service create
1008 - ParaPropAdd search service update cmd search service update update parameter aad_auth_failure_mode: added property choices=['http401WithBearerChallenge', 'http403'] please remove property choices=['http401WithBearerChallenge', 'http403'] for parameter aad_auth_failure_mode of cmd search service update
1008 - ParaPropAdd search service update cmd search service update update parameter auth_options: added property choices=['aadOrApiKey', 'apiKeyOnly'] please remove property choices=['aadOrApiKey', 'apiKeyOnly'] for parameter auth_options of cmd search service update
1008 - ParaPropAdd search service update cmd search service update update parameter identity_type: added property choices=['None', 'SystemAssigned'] please remove property choices=['None', 'SystemAssigned'] for parameter identity_type of cmd search service update
1008 - ParaPropAdd search service update cmd search service update update parameter no_wait: added property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes'] please remove property choices=['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes'] for parameter no_wait of cmd search service update
1008 - ParaPropAdd search service update cmd search service update update parameter public_network_access: added property choices=['disabled', 'enabled'] please remove property choices=['disabled', 'enabled'] for parameter public_network_access of cmd search service update
⚠️ 1006 - ParaAdd search service create cmd search service create added parameter semantic_search
⚠️ 1006 - ParaAdd search service create cmd search service create added parameter tags
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter aad_auth_failure_mode: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter aad_auth_failure_mode: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter auth_options: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter auth_options: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter disable_local_auth: added property aaz_type=bool
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter disable_local_auth: added property type=bool
⚠️ 1010 - ParaPropUpdate search service create cmd search service create update parameter disable_local_auth: updated property choices from ['false', 'true'] to ['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes']
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter hosting_mode: added property aaz_default=default
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter hosting_mode: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter hosting_mode: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter identity_type: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter identity_type: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter ip_rules: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter ip_rules: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter location: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter no_wait: added property aaz_type=bool
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter no_wait: added property nargs=?
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter no_wait: added property type=bool
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter partition_count: added property aaz_default=1
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter partition_count: added property aaz_type=int
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter partition_count: added property default=1
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter partition_count: added property type=int
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter public_network_access: added property aaz_default=enabled
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter public_network_access: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter public_network_access: added property type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter replica_count: added property aaz_default=1
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter replica_count: added property aaz_type=int
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter replica_count: added property default=1
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter replica_count: added property type=int
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service create cmd search service create update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter search_service_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter search_service_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service create cmd search service create update parameter search_service_name: updated property options from ['--name', '-n'] to ['--name', '--search-service-name', '-n']
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter sku: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service create cmd search service create update parameter sku: added property type=string
⚠️ 1004 - CmdPropRemove search service delete cmd search service delete removed property confirmation
⚠️ 1008 - ParaPropAdd search service delete cmd search service delete update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service delete cmd search service delete update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service delete cmd search service delete update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd search service delete cmd search service delete update parameter search_service_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service delete cmd search service delete update parameter search_service_name: added property id_part=name
⚠️ 1008 - ParaPropAdd search service delete cmd search service delete update parameter search_service_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service delete cmd search service delete update parameter search_service_name: updated property options from ['--name', '-n'] to ['--name', '--search-service-name', '-n']
⚠️ 1008 - ParaPropAdd search service show cmd search service show update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service show cmd search service show update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service show cmd search service show update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd search service show cmd search service show update parameter search_service_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service show cmd search service show update parameter search_service_name: added property id_part=name
⚠️ 1008 - ParaPropAdd search service show cmd search service show update parameter search_service_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service show cmd search service show update parameter search_service_name: updated property options from ['--name', '-n'] to ['--name', '--search-service-name', '-n']
⚠️ 1006 - ParaAdd search service update cmd search service update added parameter semantic_search
⚠️ 1006 - ParaAdd search service update cmd search service update added parameter tags
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter aad_auth_failure_mode: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter aad_auth_failure_mode: added property type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter auth_options: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter auth_options: added property type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter disable_local_auth: added property aaz_type=bool
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter disable_local_auth: added property type=bool
⚠️ 1010 - ParaPropUpdate search service update cmd search service update update parameter disable_local_auth: updated property choices from ['false', 'true'] to ['0', '1', 'f', 'false', 'n', 'no', 't', 'true', 'y', 'yes']
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter identity_type: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter identity_type: added property type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter ip_rules: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter ip_rules: added property type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter no_wait: added property aaz_type=bool
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter no_wait: added property nargs=?
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter no_wait: added property type=bool
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter partition_count: added property aaz_type=int
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter partition_count: added property type=int
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter properties_to_add: added property aaz_type=AAZGenericUpdateAddArg
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter properties_to_remove: added property aaz_type=AAZGenericUpdateRemoveArg
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter properties_to_set: added property aaz_type=AAZGenericUpdateSetArg
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter public_network_access: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter public_network_access: added property type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter replica_count: added property aaz_type=int
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter replica_count: added property type=int
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service update cmd search service update update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter search_service_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter search_service_name: added property id_part=name
⚠️ 1008 - ParaPropAdd search service update cmd search service update update parameter search_service_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service update cmd search service update update parameter search_service_name: updated property options from ['--name', '-n'] to ['--name', '--search-service-name', '-n']
⚠️ 1008 - ParaPropAdd search service wait cmd search service wait update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service wait cmd search service wait update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service wait cmd search service wait update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd search service wait cmd search service wait update parameter search_service_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd search service wait cmd search service wait update parameter search_service_name: added property id_part=name
⚠️ 1008 - ParaPropAdd search service wait cmd search service wait update parameter search_service_name: added property type=string
⚠️ 1010 - ParaPropUpdate search service wait cmd search service wait update parameter search_service_name: updated property options from ['--name', '-n'] to ['--name', '--search-service-name', '-n']

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 19, 2023

Search

g.generic_update_command('update', supports_no_wait=True, custom_func_name='update_search_service', setter_name='begin_create_or_update', setter_arg_name='service')
g.custom_command('create', 'create_search_service', supports_no_wait=True)
# g.generic_update_command('update', supports_no_wait=True, custom_func_name='update_search_service', setter_name='begin_create_or_update', setter_arg_name='service')
# g.custom_command('create', 'create_search_service', supports_no_wait=True)
g.wait_command('wait')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to remove the wait command

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@kairu-ms
Copy link
Contributor

Please fix the CI issues

@mattgotteiner mattgotteiner changed the title [Search] Add 2023-11-01 support for az cli [Search] Add 2023-11-01 support Oct 19, 2023
@mattgotteiner
Copy link
Member Author

@kairu-ms any idea how to change your active subscription for azdev test? az account set --subscription xxx doesn't seem to work

@kairu-ms
Copy link
Contributor

@kairu-ms any idea how to change your active subscription for azdev test? az account set --subscription xxx doesn't seem to work

You can modify subscription id in this file directly
image

@mattgotteiner
Copy link
Member Author

@kairu-ms any idea how to change your active subscription for azdev test? az account set --subscription xxx doesn't seem to work

You can modify subscription id in this file directly image

worked, thanks

Copy link
Contributor

@kairu-ms kairu-ms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format your PR title. You can follow this guideline

@kairu-ms kairu-ms merged commit 388fb82 into Azure:dev Oct 23, 2023
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants