I need some direction on the right way to `pulumi ...
# azure
I need some direction on the right way to
pulumi import
an Azure SQL Server. I'm following the docs at: https://www.pulumi.com/registry/packages/azure-native/api-docs/azuredata/sqlserver/ The example import there is:
Copy code
pulumi import azure-native:azuredata:SqlServer testsqlserver /subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.AzureData/SqlServerRegistrations/testsqlregistration/sqlServers/testsqlserver
Note in particular the portion following
. In the Azure portal for the Azure SQL Server instance I'm trying to import, I can't find anything that includes
or anything following that. The closest I can find is the "Resource ID", which for me looks like:
Copy code
I could try to synthesize what's shown in the Pulumi docs example, but I don't now what value I should use (or where I would find it) for the example value
. Any guidance or suggestions?? Thanks.
I should add that I get this error when I try to do the import using the "Resource ID" as I noted above:
Copy code
Service returned an error. Status=400 Code="NoRegisteredProviderFound" Message="No registered resource provider found for location 'eastus2' and API version '2019-07-24-preview' for type 'servers'.
I may have jumped the gun... It looks like perhaps I should be using this Pulumi Azure Native type: https://www.pulumi.com/registry/packages/azure-native/api-docs/sql/server/ I will say that the import results are pretty disappointing. It doesn't even include the
property as seen specified in this Pulumi example code: https://github.com/pulumi/examples/blob/master/azure-cs-appservice/AppServiceStack.cs