Share via

Error when creating a subscription for a CHAT message Event on Communication services

Gabriel Duchateau 0 Reputation points
2023-09-21T10:27:13.07+00:00

When creating an Event subscription for a Chat Message on Communication Services I am getting this error, How can I solve the problem? It does not specify what api-version needs to be updated!

Thanks

Creating System Topic: ComService-POC-Chat-New-Thread

Creation of System Topic has failed with error: The api-version '2021-10-15-preview' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'. Event Subscription will not be created.

Azure Communication Services

1 answer

Sort by: Most helpful
  1. Bryan Trach 17,842 Reputation points Microsoft Employee Moderator
    2023-09-25T02:16:45.9433333+00:00

    @Gabriel Duchateau It seems that the api-version '2021-10-15-preview' is not supported for creating a System Topic for your Event Subscription.

    You can try updating the api-version to one of the supported versions mentioned above. If you are using the Azure portal, you can select the supported version from the dropdown list. If you are using Azure CLI, you can specify the api-version in the command using the --api-version parameter.

    For example, to create a System Topic with api-version '2023-07-01', you can use the following Azure CLI command:

    az eventgrid system-topic create --name <system-topic-name> --resource-group <resource-group-name> --location <location> --sku <sku-name> --api-version 2023-07-01
    
    
    

    Replace <system-topic-name>, <resource-group-name>, <location>, and <sku-name> with your own values.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.