sparse-intern-71089
06/15/2022, 3:16 PMtall-librarian-49374
06/15/2022, 3:26 PMlittle-library-54601
06/15/2022, 3:28 PMimport
docs for the resource types, e.g.
https://www.pulumi.com/registry/packages/azure-native/api-docs/insights/diagnosticsetting/#importpowerful-printer-57241
06/15/2022, 3:33 PM{resourceUri}/diagnosticSettings/mysetting
but this fails with
error: Preview failed: autorest/azure: Service returned an error. Status=400 Code="NoRegisteredProviderFound" Message="No registered resource provider found for location 'global' and API version '2017-05-01-preview' for type 'frontdoors'. The supported api-versions are '2018-08-01, 2019-04-01, 2019-05-01, 2019-08-01, 2020-01-01, 2020-04-01, 2020-05-01, 2020-07-01, 2021-06-01'. The supported locations are 'global, centralus, eastus, eastus2, northcentralus, southcentralus, westus, northeurope, westeurope, eastasia, southeastasia, japaneast, japanwest, brazilsouth, australiaeast, australiasoutheast'."
Instead, the URI should be
{resourceUri}/providers/microsoft.insights/diagnosticSettings/mysetting
I tried with Diagnostic Settings on a SQL Database and a Front Door so far.