sparse-intern-71089
02/14/2021, 7:37 PMbillowy-army-68599
up
on your stack?ripe-kite-37642
02/14/2021, 7:50 PMbillowy-army-68599
requirements.txt
and then inside the state, i'd recommend exporting it and examiningripe-kite-37642
02/14/2021, 7:57 PM⯠pulumi stack export
{
"version": 3,
"deployment": {
"manifest": {
"time": "0001-01-01T00:00:00Z",
"magic": "",
"version": ""
}
}
}
Nadabillowy-army-68599
ripe-kite-37642
02/15/2021, 5:41 PMimport pulumi_random
from pulumi_azuread import Application, ServicePrincipal, ServicePrincipalPassword
from pulumi_azure.core import ResourceGroup
from pulumi import ResourceOptions
rg = ResourceGroup(
f'dataaks-rg',
name=f'dataaks-rg',
)
child_opts = ResourceOptions(parent=rg)
app = Application(
"aks-app",
display_name='aks-app',
opts=child_opts,
)
sp = ServicePrincipal(
"aks-sp",
application_id=app.application_id,
opts=child_opts,
)
sp_password = pulumi_random.RandomPassword(
"sp_password",
length=24,
special=True,
override_special="_%@",
opts=child_opts,
)
This does not:
import pulumi_random
from pulumi_azuread import Application, ServicePrincipal, ServicePrincipalPassword
from pulumi_azure.core import ResourceGroup
from pulumi import ResourceOptions
rg = ResourceGroup(
f'dataaks-rg',
name=f'dataaks-rg',
)
app = Application(
"aks-app",
display_name='aks-app',
opts=ResourceOptions(parent=rg),
)
sp = ServicePrincipal(
"aks-sp",
application_id=app.application_id,
opts=ResourceOptions(parent=rg),
)
sp_password = pulumi_random.RandomPassword(
"sp_password",
length=24,
special=True,
override_special="_%@",
opts=ResourceOptions(parent=rg),
)
The difference being ResourceOptions is not shared amongst multiple resources.ripe-kite-37642
02/15/2021, 5:46 PMripe-kite-37642
02/15/2021, 5:46 PMbillowy-army-68599