Commit bca30bf 1 parent 14b6c38 commit bca30bf Copy full SHA for bca30bf
File tree 2 files changed +3
-10
lines changed
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
param (
2
2
[String ] [Parameter (Mandatory = $true )] $TemplatePath ,
3
3
[String ] [Parameter (Mandatory = $true )] $ClientId ,
4
- [String ] [Parameter (Mandatory = $true )] $ClientSecret ,
4
+ [String ] [Parameter (Mandatory = $false )] $ClientSecret ,
5
5
[String ] [Parameter (Mandatory = $true )] $Location ,
6
6
[String ] [Parameter (Mandatory = $true )] $ImageName ,
7
7
[String ] [Parameter (Mandatory = $true )] $ImageResourceGroupName ,
13
13
[String ] [Parameter (Mandatory = $false )] $VirtualNetworkRG ,
14
14
[String ] [Parameter (Mandatory = $false )] $VirtualNetworkSubnet ,
15
15
[String ] [Parameter (Mandatory = $false )] $AllowedInboundIpAddresses = " []" ,
16
- [hashtable ] [Parameter (Mandatory = $False )] $Tags = @ {}
16
+ [hashtable ] [Parameter (Mandatory = $false )] $Tags = @ {}
17
17
)
18
18
19
19
if (-not (Test-Path $TemplatePath ))
Original file line number Diff line number Diff line change 1
1
param (
2
- [Parameter (Mandatory = $true )] [string ] $TempResourceGroupName ,
3
- [Parameter (Mandatory = $true )] [string ] $SubscriptionId ,
4
- [Parameter (Mandatory = $true )] [string ] $ClientId ,
5
- [Parameter (Mandatory = $true )] [string ] $ClientSecret ,
6
- [Parameter (Mandatory = $true )] [string ] $TenantId
2
+ [Parameter (Mandatory = $true )] [string ] $TempResourceGroupName
7
3
)
8
4
9
- az login -- service- principal -- username $ClientId -- password= $ClientSecret -- tenant $TenantId | Out-Null
10
- az account set -- subscription $SubscriptionId | Out-Null
11
-
12
5
$groupExist = az group exists -- name $TempResourceGroupName
13
6
if ($groupExist -eq " true" ) {
14
7
Write-Host " Found a match, deleting temporary files"
You can’t perform that action at this time.
0 commit comments