straight-intern-54129
06/28/2021, 9:13 PMpulumi import
to import an existing Azure resource group. I'm trying to specify the resource group as the --parent
but am getting error: an inline resource must be specified if no import file is used.
Is there an example of importing an Azure resource that I can compare against?straight-intern-54129
06/28/2021, 9:24 PMstraight-intern-54129
06/28/2021, 9:25 PMred-match-15116
06/28/2021, 9:34 PMred-match-15116
06/28/2021, 9:34 PMred-match-15116
06/28/2021, 9:35 PMI’m trying to specify the resource group as the--parent
red-match-15116
06/28/2021, 9:35 PMred-match-15116
06/28/2021, 9:36 PMred-match-15116
06/28/2021, 9:38 PMpulumi import [type] [name] [id]
So:
pulumi import azure-native:resources:ResourceGroup myResourceGroup /subscriptions/{subscription-id}/resourceGroups/myResourceGroup
straight-intern-54129
06/28/2021, 9:46 PMstraight-intern-54129
06/28/2021, 9:49 PMpulumi import azure-native:resources:ResourceGroup "/subscriptions/{subscription guid}/resourceGroups/{resource group name}"
but no gostraight-intern-54129
06/28/2021, 9:50 PMid
argumentred-match-15116
06/28/2021, 9:50 PMpulumi import [type] [id]
red-match-15116
06/28/2021, 9:51 PMname
is what you would like to call the resource in your pulumi programstraight-intern-54129
06/28/2021, 9:51 PMstraight-intern-54129
06/28/2021, 9:52 PMstraight-intern-54129
06/28/2021, 9:54 PM