https://pulumi.com logo
Title
p

proud-dusk-33872

10/28/2021, 11:35 PM
Hi all - trying to better understand how Pulumi works under the good. Given the call
Pulumi.Deployment.Instance.InvokeAsync<ListConfigurationStoreKeysResult>("azure-native:appconfiguration:listConfigurationStoreKeys", ...)
, where is
azure-native:appconfiguration:listConfigurationStoreKeys
coming from? Is there a config/manifest file somewhere that is used to generate all the code that would contain those references? I couldn't find the string reference outside of code files.
b

billowy-army-68599

10/28/2021, 11:59 PM
the SDK product comes from the APi using codegen we create. So we read the API and generate SDK calls. The thing that actually makes the calls themselves is the provider binary in
~/.pulumi/plugins
p

proud-dusk-33872

10/29/2021, 12:03 AM
Ah perfect, thanks.
Is there any reason why things like restarting web apps (https://docs.microsoft.com/en-us/rest/api/appservice/web-apps/restart) isn't mapped to an invokable static class?
(just curious, since it's all generated from the schemas)
b

billowy-army-68599

10/29/2021, 12:05 AM
I'll have to defer to @tall-librarian-49374 or @sparse-park-68967 for that, but it's more than likely because it only has one operation and doesn't create a "resource" You can of course just use the azure SDK in your particular language
p

proud-dusk-33872

10/29/2021, 12:06 AM
Ah ok, that makes sense
Yeah that's the direction I've gone in
Thanks very much
s

sparse-park-68967

10/29/2021, 12:40 AM
yes, we expose some of the get operations but most posts which may mutate state are not exposed. As @billowy-army-68599 mentioned, you could leverage the azure sdk in your language of choice. Its quite easy to initialize an SDK client from within a pulumi program. See https://github.com/pulumi/examples/blob/master/azure-ts-call-azure-sdk/index.ts#L11 for instance.
p

proud-dusk-33872

10/29/2021, 12:51 AM
Legend, thanks