Skip to content

Commit f008839

Browse files
committed
Fix changelog and minor changes for comments
1 parent d9592f4 commit f008839

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

src/ResourceManager/AnalysisServices/ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
- Additional information about change #1
1919
-->
2020
## Current Release
21+
* Enable Gateway assocaite/disassociate operations on AS.
2122

2223
## Version 0.6.7
2324
* Set minimum dependency of module to PowerShell 5.0
24-
* Enable Gateway assocaite/disassociate operations on AS.
2525

2626
## Version 0.6.6
2727
* Updated to the latest version of the Azure ClientRuntime

src/ResourceManager/AnalysisServices/Commands.AnalysisServices.Test/ScenarioTests/AsTests.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,11 @@ function Test-AnalysisServicesServerLoginWithSPN
615615

616616
<#
617617
.SYNOPSIS
618-
Tests Analysis Services server lifecycle Failure scenarios (Create, Update, Get, Delete).
618+
Tests Analysis Services server gateway scenarios (associate/dissociate).
619+
The assocaited gateway is a unified gateway, which required pre-setup.
620+
1. Install on-premise gateway on target host https://www.microsoft.com/en-us/download/details.aspx?id=53127
621+
2. Follow installation instruction to create azure on-premise gateway resource associating to the host.
622+
Afterward, use the gateway resource to associate with the AAS for testing.
619623
#>
620624
function Test-AnalysisServicesServerGateway
621625
{

src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Commands/SetAzureRmAnalysisServicesServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public override void ExecuteCmdlet()
160160

161161
if (DisassociateGateway.IsPresent)
162162
{
163-
GatewayResourceId = "-";
163+
GatewayResourceId = AnalysisServicesClient.DissasociateGateway;
164164
}
165165

166166
AnalysisServicesServer updatedServer = AnalysisServicesClient.CreateOrUpdateServer(ResourceGroupName, Name, location, Sku, Tag, Administrator, currentServer, BackupBlobContainerUri, ReadonlyReplicaCount, DefaultConnectionMode, setting, GatewayResourceId);

src/ResourceManager/AnalysisServices/Commands.AnalysisServices/Models/AnalysisServicesClient.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public class AnalysisServicesClient
3333
private readonly AnalysisServicesManagementClient _client;
3434
private readonly Guid _subscriptionId;
3535
private readonly string _currentUser;
36+
public const string DissasociateGateway = "-";
3637

3738
public AnalysisServicesClient(IAzureContext context)
3839
{
@@ -89,7 +90,7 @@ public AnalysisServicesServer CreateOrUpdateServer(
8990
}
9091

9192
GatewayDetails gatewayDetails = null;
92-
if (gatewayResourceId == "-")
93+
if (gatewayResourceId == DissasociateGateway)
9394
{
9495
gatewayDetails = new GatewayDetails();
9596
}

0 commit comments

Comments
 (0)