This message was deleted.
# general
s
This message was deleted.
m
Hi @magnificent-sugar-64951,
pulumi import
should not only update your stack (json file) but also print code that you can insert into your program. Another alternative is to use import directly in your code. Both are documented here.
m
@melodic-tomato-39005 pulumi import doesn't print the code, that's another issue
and this is pulumi preview
this is import
m
Oh, I see. It’s an empty import because you pointed Pulumi to your existing stack with
-f
. But in your case, you want to import new resources from Azure into your stack. You would use this syntax:
Copy code
pulumi import aws:s3/bucket:Bucket infra-logs company-infra-logs
m
this is preview
Type Name Plan Info pulumipulumiStack aks-k8s-dev ~ ├─ azure-nativenetworkVirtualNetwork virtualNetwork update [diff: -subnets] ~ └─ azure-nativecontainerserviceManagedCluster managedCluster update [diff: -autoScalerProfile]
so in that case import for azure aks is
pulumi import azure-nativenetworkVirtualNetwork
pulumi import azure-nativecontainerserviceManagedCluster
right?
so we can get what need to be import using pulumi preview command , isn't it?
sorry hv to go to pick the kid
will be back in 30min
thanks Thomas for the help
🙂
m
You need three arguments:
pulumi import [type] [name] [id]
. I think your
types
are correct. The
name
is your choice. The
id
is the full Azure id.
np 🙂
m
oki got it