Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.51k stars 4.94k forks source link

`purview` - add API to configure `kafkaConfigurations` #24571

Open myc2h6o opened 1 year ago

myc2h6o commented 1 year ago

Hi team,

The API to configure the Kafka configuration (with Event Hub) seems missing, would you be able to take a look and add it? Please let me know if I'm missing anything.

API url I captured from Azure Portal to configure the Kafka configuration: https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.Purview/accounts/yicma2/kafkaConfigurations?api-version=2021-12-01 However it's missing in this repo. even the api version is not there under https://github.com/Azure/azure-rest-api-specs/tree/main/specification/purview/resource-manager/Microsoft.Purview

Ref: document: https://learn.microsoft.com/azure/purview/configure-event-hubs-for-kafka#configure-event-hubs-to-publish-messages-to-microsoft-purview

navba-MSFT commented 1 year ago

@myc2h6o Apologies for the late reply. Thanks for reaching out to us and reporting this issue. Could you please confirm if the below configuration is what you are looking for ?

https://github.com/Azure/azure-rest-api-specs/blob/237afa17929313c909f72f2fea59f4437e305c99/specification/purview/resource-manager/Microsoft.Purview/stable/2021-07-01/purview.json#L1296-L1314

myc2h6o commented 1 year ago

@navba-MSFT according to the document: https://learn.microsoft.com/azure/purview/configure-event-hubs-for-kafka#configure-event-hubs the managed event hub (managedResources.eventHubNamespace) is not able to be added back

If you disable the managed Event Hubs resource you won't be able to re-enable a managed Event Hub resource. You will only be able to configure your own Event Hubs.

What I'm looking for is the API to configure user-managed event hub, which is done with the below url I captured from Azure Portal https://management.azure.com/subscriptions/***/resourceGroups/***/providers/Microsoft.Purview/accounts/yicma2/kafkaConfigurations?api-version=2021-12-01

navba-MSFT commented 1 year ago

@myc2h6o Thanks for clarifying.

I am adding Service team to look into this further.