Questions tagged [pulumi-azure]

40 questions
0
votes
1 answer

Pulumi Azure Native - How to manage multiple Azure Subscriptions using Python?

I have 2 Azure Subscriptions(say Subscription A & B) already created, service principal is also configured. I want to configure diagnostics in Subscription A so that I can send data to a workspace in Subscription B. I'm using Pulumi as IaC tool, how…
Amrit
  • 2,295
  • 4
  • 25
  • 42
0
votes
0 answers

Is it possible to update a resource in Pulumi after creating it (in the same script)?

I am creating a new Azure Active Directory Application Registration in pulumi using typescript as outlined here: https://www.pulumi.com/registry/packages/azuread/api-docs/application/ My code looks roughly as follows: const current =…
SBFrancies
  • 3,987
  • 2
  • 14
  • 37
0
votes
0 answers

Pulumi import Az StorageAccount without defaults

I'm trying to import an existing azure-native StorageAccount into Pulumi. I've used the command given in the docs and it works, but it creates a ton of properties with their default values. I'm trying to get rid of them but I can't seem to do it for…
jods
  • 4,581
  • 16
  • 20
0
votes
1 answer

Issue while upgrading the azure aks cluster from 1.23.8 to 1.24.6 and getting error - CustomPrivateDNSZoneMissingPermissionError

I was trying to upgrade the AKS cluster using C#/Pulumi to upgrade the aks cluster version from 1.23.8 to 1.24.6. Getting below error enter image description here I have tried assigning PrivateDNSZonecontributor, contributor, Networkcontributor…
Praveen
  • 1
  • 2
0
votes
0 answers

Pulumi - delete before replace but only if deleting is necessary

In pulumi you can use the deleteBeforeReplace parameter to indicate that a resource should be deleted and recreated rather than updated in place. I need to make a change to a resource that requires it to be deleted and then recreated (updating…
SBFrancies
  • 3,987
  • 2
  • 14
  • 37
0
votes
1 answer

Isn't Pulumi Azure API support too old / how fast are new API versions implemented?

I am thinking about using Pulumi for Azure and was curious how up to date the API support is. I checked the storage account as an example. Pulumi: API Version 2021-02-01 latest version according to Microsoft docs: API version 2022-09-01 Isn't that…
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
0
votes
1 answer

Pulumi: How to programmatically set an Azure Function's authorization Level

How can I programmatically set an Azure Function's authorization level? Pulumi exposes a 'FunctionAppAuthSettingsArgs'. However, I am unable to resolve what's required to set the actual authorization level. Context: I am unable to invoke Azure…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
0 answers

Pulumi Automation Api, Outputs, Azure, Python

kinda of a newbie. I want to create pulumi automation stacks via FastApi Post webservice in Azure. Been able to do it. Now I want to get the values or outputs from the first stack created and use them in a webservice to see the information. I read…
0
votes
1 answer

Creation of azure_native frontdoor fails with "Frontdoor location must be global."

migrating my frontdoor from the to the azure-native package I am facing a strange error message that I cannot make sense of: azure-native:network:FrontDoor (frontDoor): error: Code="BadRequest" Message="Frontdoor location must be global." I…
0
votes
0 answers

Updating Pulumi-Stacks after rotating Azure-Secrets

We use Pulumi to create our Infrastructure in Azure. This Infractructure includes different Resources that contain secrets (Blobstorage, Cosmos, etc.) Now we have the need to rotate the primary keys of those resources. I noticed that the…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
0
votes
1 answer

Pulumi import existing Azure ResourceGroup to Azure Core

We have a Resource Group in Azure. We created this resource using the following code: private Pulumi.Azure.Core.ResourceGroup CreateResourceGroup(string resourceGroupName) { return new Pulumi.Azure.Core.ResourceGroup(resourceGroupName, …
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
0
votes
0 answers

pulumi python set Public Network Access to Disabled for KeyVaults and Container Registry

Trying to set "Public Network Access" to "Disabled" for both keyvault and container registry. I was able to set it for AppService, CosmosDB etc, but I couldn't find the way to set it for both the service I mention above. Check the azure portal…
HanyPie
  • 11
  • 1
0
votes
1 answer

Pulumi: How can a Function App reference a connection string from a SQL Server Database declaration?

Using Pulumi, how can a Function App reference a connection string from a SQL Server Database declaration? I've tried building the following SQL connection string: var sqlServer = server as Pulumi.Azure.Sql.SqlServer; var connectionString =…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
0 answers

Pulumi: Instead of using Output.Tuple, how can I reference a single parameter to access a future value?

Instead of using Output.Tuple to access a future value of a resource (yet to be created), how can I use only a single parameter to accomplish the same thing? Note: I tried using Output.Create and observed a resource not found exception. Code: var…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118
0
votes
1 answer

Pulumi: How to update AppSettings of an AppFunction

How can I update the AppSettings of a FunctionApp resource in Pulumi? Context: After retrieving the connection string from a recently declared Service Bus Namespace resource, I now need to update the AppSettings property of a recently declared…
Scott Nimrod
  • 11,206
  • 11
  • 54
  • 118