Skip to content

Commit

Permalink
Removed #Requires -Modules from the PS scripts (Azure#393)
Browse files Browse the repository at this point in the history
Co-authored-by: @skeeler
  • Loading branch information
aporodnov authored Nov 17, 2023
1 parent e5fad99 commit fb13f56
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions scripts/configuration/Get-AlzConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ Param(
[ref]$ConfigVariablesByRef
)

#Requires -Modules powershell-yaml

$ErrorActionPreference = "Stop"

$RepoConfigPath = (Resolve-Path -Path "$RepoRootPath/config/variables/$Environment.yml").Path
Expand Down
2 changes: 0 additions & 2 deletions scripts/configuration/New-AlzConfiguration.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ Param(
[string]$UserConfigPath = "$UserRootPath/ALZ/config"
)

#Requires -Modules powershell-yaml

$ErrorActionPreference = "Stop"

function ValidateParameters {
Expand Down
2 changes: 0 additions & 2 deletions scripts/configuration/New-AlzCredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ Param(
[string]$UserConfigPath = "$UserRootPath/ALZ/config"
)

#Requires -Modules Az

$ErrorActionPreference = "Stop"

function CreateServicePrincipal {
Expand Down
2 changes: 0 additions & 2 deletions scripts/configuration/New-AlzDeployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ Param(
[string]$UserConfigPath = "$UserRootPath/ALZ/config"
)

#Requires -Modules Az, powershell-yaml, PSPasswordGenerator

$ErrorActionPreference = "Stop"

#region Functions
Expand Down
2 changes: 0 additions & 2 deletions scripts/configuration/Remove-AlzCredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ Param(
[string]$UserConfigPath = "$UserRootPath/ALZ/config"
)

#Requires -Modules Az

$ErrorActionPreference = "Stop"

function RemoveServicePrincipal {
Expand Down
2 changes: 0 additions & 2 deletions scripts/configuration/Test-AlzCredential.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ Param(
[string]$UserConfigPath = "$UserRootPath/ALZ/config"
)

#Requires -Modules Az

$ErrorActionPreference = "Stop"

function TestServicePrincipal {
Expand Down
2 changes: 0 additions & 2 deletions scripts/deployments/Functions/EnvironmentContext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
----------------------------------------------------------------------------------
#>

#Requires -Modules powershell-yaml

Import-Module powershell-yaml

Expand Down
2 changes: 0 additions & 2 deletions scripts/deployments/RunWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ Param(
[SecureString]$NvaPassword=$null
)

#Requires -Modules Az, powershell-yaml

$ErrorActionPreference = "Stop"

# In order to use this End to End script, you must configure ARM template configurations for Logging, Networking and Subscriptions.
Expand Down

0 comments on commit fb13f56

Please sign in to comment.