Skip to content

Commit 90b2638

Browse files
committed
Changed function app deps and login
1 parent 081273c commit 90b2638

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

function_app/profile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Remove this if you are not planning on using MSI or Azure PowerShell.
1414
if ($env:MSI_SECRET -and (Get-Module -ListAvailable Az.Accounts)) {
1515
Write-Output "Authenticating PowerShell using Managed Identity..."
16-
# Disable-AzContextAutosave -Scope Process | Out-Null
16+
Disable-AzContextAutosave -Scope Process | Out-Null
1717
Connect-AzAccount -Identity
1818
}
1919
elseif ($env:ARM_TENANT_ID -and $env:ARM_SUBSCRIPTION_ID -and $env:ARM_CLIENT_ID -and $env:ARM_CLIENT_SECRET) {

function_app/requirements.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# See https://aka.ms/functionsmanageddependency for additional information.
33
#
44
@{
5-
# 'Az' = '5.*'
5+
'Az' = '5.*'
66
# Only need Account and Compute cmdlets for VMSS and VM status checks
7-
'Az.Accounts' = '2.*'
8-
'Az.Compute' = '4.*'
7+
# 'Az.Accounts' = '2.*'
8+
# 'Az.Compute' = '4.*'
99
}

0 commit comments

Comments
 (0)