This message was deleted.
# azure
s
This message was deleted.
m
Can you use for vault the
2022-07-01
api, there you have the property
publicNetworkAccess
Same for Container registry:
2021-09-01
and use
publicNetworkAccess
b
Hi @User, Sorry if thats a silly question, what do you mean by 2022-07-01 or 2021-09-01 API ? Do you mean there is a separate python pulumi library version ? I didnt aware there is a way to change the API in the code.
this is how I call the pulumi library in the code
from pulumi import Config, export
from pulumi_azure_native import keyvault
from resources.resource_group import resourceGroup
from pulumi_azure_native import cache
from resources.redis import redis, hostname
from resources.cosmos_db import connectionString
from resources.app_services import backendApi
mainParams = Config().require_object("main-params")
vaultParams = Config().require_object("vault-params")
environment = mainParams["environment"]
vault = keyvault.Vault(
vaultParams["name"],
vault_name=vaultParams["name"],
location=resourceGroup.location
Solved!
from pulumi_azure_native.containerregistry.v20210901 import (
Registry,
SkuArgs,
list_registry_credentials_output,
PublicNetworkAccess,
)
m
Awesome YhanL! 🎉