File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -989,7 +989,10 @@ Function Remove-AzsActivationResource{
989989 [String ] $PrivilegedEndpoint ,
990990
991991 [Parameter (Mandatory = $false )]
992- [String ] $AzureStackAdminSubscriptionId
992+ [String ] $AzureStackAdminSubscriptionId ,
993+
994+ [Parameter (Mandatory = $false )]
995+ [String ] $AzureEnvironmentName = " AzureStack"
993996 )
994997
995998 $ErrorActionPreference = [System.Management.Automation.ActionPreference ]::Stop
@@ -1005,7 +1008,7 @@ Function Remove-AzsActivationResource{
10051008
10061009 $AzureStackStampInfo = Invoke-Command - Session $session - ScriptBlock { Get-AzureStackStampInformation }
10071010 Log- Output " Logging in to AzureStack administrator account. TenantId: $ ( $AzureStackStampInfo.AADTenantID ) Environment: 'AzureStack'"
1008- Login- AzureRmAccount - TenantId $AzureStackStampInfo.AADTenantID - Environment ' AzureStack '
1011+ Login- AzureRmAccount - TenantId $AzureStackStampInfo.AADTenantID - Environment $AzureEnvironmentName
10091012 $azureStackContext = Get-AzureRmContext
10101013
10111014 $azureStackContextDetails = @ {
You can’t perform that action at this time.
0 commit comments