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

KQL get all CVE's in an array – Debian

I'm running the following KQL query in Azure Graph Explorer securityresources | where type == "microsoft.security/assessments/subassessments" | extend assessmentKey = extract(".*assessments/(.+?)/.*",1, id) | where assessmentKey == "dbd0cb49-b563-45e7-9724-889e799fa648" This returns my raws with [Results][1] If I click on See details I…

VIEW QUESTION
Back To Top
Search