@@ -619,23 +619,23 @@ Tests Analysis Services server lifecycle Failure scenarios (Create, Update, Get
619
619
#>
620
620
function Test-AnalysisServicesServerGateway
621
621
{
622
- try
623
- {
624
-
625
- # Updating server
626
- $tagsToUpdate = @ {" TestTag" = " TestUpdate" }
627
- # $serverUpdated = Set-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -Tag $tagsToUpdate -GatewayName 'azsdktest' -GatewayResourceGroupName 'TestRG' -GatewaySubscriptionId 'ba59a556-5034-4bbb-80b4-4c37cf1083e9' -PassThru
622
+ try
623
+ {
624
+
625
+ # Updating server
626
+ $tagsToUpdate = @ {" TestTag" = " TestUpdate" }
627
+ # $serverUpdated = Set-AzureRmAnalysisServicesServer -ResourceGroupName $resourceGroupName -Name $serverName -Tag $tagsToUpdate -GatewayName 'azsdktest' -GatewayResourceGroupName 'TestRG' -GatewaySubscriptionId 'ba59a556-5034-4bbb-80b4-4c37cf1083e9' -PassThru
628
628
$serverUpdated = Set-AzureRmAnalysisServicesServer - ResourceGroupName ' TestRG' - Name ' azsdktest0309' - Tag $tagsToUpdate - DisassociateGateway - PassThru
629
- Assert-NotNull $serverUpdated.Tag " Tag do not exists"
630
- Assert-NotNull $serverUpdated.Tag [" TestTag" ] " The updated tag 'TestTag' does not exist"
631
- Assert-AreEqual $serverUpdated.AsAdministrators.Count 2
632
- Assert-AreEqual 1 $serverUpdated.Sku.Capacity
629
+ Assert-NotNull $serverUpdated.Tag " Tag do not exists"
630
+ Assert-NotNull $serverUpdated.Tag [" TestTag" ] " The updated tag 'TestTag' does not exist"
631
+ Assert-AreEqual $serverUpdated.AsAdministrators.Count 2
632
+ Assert-AreEqual 1 $serverUpdated.Sku.Capacity
633
633
634
- }
635
- finally
636
- {
637
- # cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here.
638
- Invoke-HandledCmdlet - Command {Remove-AzureRmAnalysisServicesServer - ResourceGroupName $resourceGroupName - Name $serverName - ErrorAction SilentlyContinue} - IgnoreFailures
639
- Invoke-HandledCmdlet - Command {Remove-AzureRmResourceGroup - Name $resourceGroupName - ErrorAction SilentlyContinue} - IgnoreFailures
640
- }
634
+ }
635
+ finally
636
+ {
637
+ # cleanup the resource group that was used in case it still exists. This is a best effort task, we ignore failures here.
638
+ Invoke-HandledCmdlet - Command {Remove-AzureRmAnalysisServicesServer - ResourceGroupName $resourceGroupName - Name $serverName - ErrorAction SilentlyContinue} - IgnoreFailures
639
+ Invoke-HandledCmdlet - Command {Remove-AzureRmResourceGroup - Name $resourceGroupName - ErrorAction SilentlyContinue} - IgnoreFailures
640
+ }
641
641
}
0 commit comments