https://github.com/imod/azure-nextgen-migration
example project showing pulumi migration problems
https://github.com/imod/azure-nextgen-migration
Last synced: 12 months ago
JSON representation
example project showing pulumi migration problems
- Host: GitHub
- URL: https://github.com/imod/azure-nextgen-migration
- Owner: imod
- Created: 2021-03-17T23:08:04.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-17T23:23:17.000Z (over 5 years ago)
- Last Synced: 2025-06-10T06:39:14.008Z (about 1 year ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# azure-nextgen-migration
example project showing pulumi migration problem from `azure-nextgen` to `azure-native`: https://github.com/pulumi/pulumi-azure-native/issues/674
this project is setup with pulumi azure nextgen:
"@pulumi/azure-nextgen": "^0.4.0"
"@pulumi/pulumi": "^2.17.2"
running `pulumi up` will create the following stack:
```
Current stack is dev:
Owner: imod
Last updated: 11 seconds ago (2021-03-18 00:01:23.736431 +0100 CET)
Pulumi version: v2.17.2
Current stack resources (7):
TYPE NAME
pulumi:pulumi:Stack azure-nextgen-migration-dev
├─ azure-nextgen:resources/latest:ResourceGroup rgwxyz
│ └─ custom:azure:MyResourcesGroup myresources
│ ├─ custom:azure:MyInsights myinsights
│ │ └─ azure-nextgen:insights/v20150501:Component myinsights
│ └─ azure-nextgen:storage/latest:StorageAccount mysa
└─ pulumi:providers:azure-nextgen default_0_4_0
```
Updating the project to:
"@pulumi/azure-native": "^0.7.1"
"@pulumi/pulumi": "^2.22.0"
will show the following update preview:
```
Previewing update (dev)
View Live: https://app.pulumi.com/imod/azure-nextgen-migration/dev/previews/1717ba79-5635-440c-9ed3-f349d690a223
Type Name Plan Info
pulumi:pulumi:Stack azure-nextgen-migration-dev 2 war
├─ azure-native:resources/latest:ResourceGroup rgwxyz [
│ └─ custom:azure:MyResourcesGroup myresources
+ │ ├─ azure-native:storage/latest:StorageAccount mysa create
│ └─ custom:azure:MyInsights myinsights
+ │ └─ azure-native:insights/v20150501:Component myinsights create
- ├─ azure-nextgen:insights/v20150501:Component myinsights delete
- └─ azure-nextgen:storage/latest:StorageAccount mysa delete
```
As you can see, it wants to delete the all the resources which have a custom component as a parent.