skip to Main Content

Azure – Optimize PowerShell code to avoid calling the cmdlet multiple times inside calculated properties?

I am looking to optimize the code below to avoid calling the same command twice under the calculated properties. https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azvm https://learn.microsoft.com/en-us/powershell/module/az.compute/get-azvmsize Get-AzVM | Select-Object-Object Name, @{ l = 'osdiskingb'; e = { ($_.StorageProfile.OsDisk.DiskSizeGB) } }, ` @{ l = 'memory';…

VIEW QUESTION

The connection to the sink database is failed. Detailed error message is: Login failed for user '<token-identified principal>'AzureSynapse Link forSQL

I'm trying to create an Azure Synapse Link for Azure SQL Database, using the steps from here: https://learn.microsoft.com/en-us/azure/synapse-analytics/synapse-link/connect-synapse-link-sql-database After I create the link connection and I want to start it I receive the following error: The connection to the sink…

VIEW QUESTION

How to set up azure keyvault for spring boot app?

There was some dependency incompatibility occurring because we were using an older version of azure keyvault (azure-keyvault-secrets-spring-boot-starter 2.2.1) but it got updated and we are upgrading it to azure-spring-boot-starter-keyvault-secrets 4.0.0. Now the keyvault isn't being connected maybe because the application.yml…

VIEW QUESTION

Create a new AzureAD user and add to distribution list

I'm running a script to add a new user to Azure AD $AzureADConnection = Connect-AzureAD $AdminEmail = $AzureADConnection.Account.Id Connect-ExchangeOnline -UserPrincipalName $AdminEmail -ShowProgress $false $ADUserParameters = @{ DisplayName = $DisplayName GivenName = $FirstName SurName = $LastName UserPrincipalName = $UserPrincipalName MailNickName =…

VIEW QUESTION
Back To Top
Search