big-sugar-92932
01/21/2022, 8:26 PMclever-sunset-76585
01/21/2022, 9:21 PMIdentity
property. There should be a similar property in the Azure Classic provider too.big-sugar-92932
01/21/2022, 9:23 PMclever-sunset-76585
01/21/2022, 9:31 PMexamples
repo at https://github.com/pulumi/examples. Try searching for appservice
or msi
. They might help you down the right path.
Specifically knowing these things about what you are trying to do would be helpful
• Are you trying import an existing resource that was created through some other way and trying to get its principal ID?
• Does the existing app service use an identity?big-sugar-92932
01/21/2022, 11:32 PMclever-sunset-76585
01/22/2022, 12:19 AMgetWebApp
(https://www.pulumi.com/registry/packages/azure-native/api-docs/web/getwebapp/). The link is for the Azure Native provider but if you are the Azure Classic provider there should be a similar one in that provider too.
Lastly, I highly recommend going through the Get Started tutorial for Azure if you haven’t done that already.getWebApp
should have an identity
property that will give you the managed system identity that the app service is using.big-sugar-92932
01/22/2022, 12:47 AMclever-sunset-76585
01/22/2022, 12:50 AM