This message was deleted.
# general
s
This message was deleted.
b
the provider version is also stored in your state, so someone with a new provider could have run an
up
on your stack?
r
Completely clean and local state šŸ˜• . Worth mentioning that the random provider’s latest release is 3.0.2 if I’m understanding the releases correctly.. So 3.3.0 is invalid AFAIK
b
the only place the provider version is stored is in your
requirements.txt
and then inside the state, i'd recommend exporting it and examining
r
Copy code
āÆ pulumi stack export
{
    "version": 3,
    "deployment": {
        "manifest": {
            "time": "0001-01-01T00:00:00Z",
            "magic": "",
            "version": ""
        }
    }
}
Nada
b
can you share your code?
r
@billowy-army-68599 apologies for the delay, I was trying to create an example that has the same issue. I’ve found out what triggers it. It’s setting opts to an object shared by others. I’m not going to pretend I know what’s going on under the hood… This fails with the exception:
Copy code
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',
)

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:
Copy code
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.
In this case the Random provider somehow is given the version of the azuread plugin
b
that was my suspicion, sorry this is so painful. If you wouldn't mind opening an issue for this, it would be appreciated