mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
Make azure portal work from server area (#10699)
This commit is contained in:
@@ -43,6 +43,8 @@ export class ConnectionProfile extends ProviderConnectionInfo implements interfa
|
||||
this._id = model.id;
|
||||
this.azureTenantId = model.azureTenantId;
|
||||
this.azureAccount = model.azureAccount;
|
||||
this.azureResourceId = model.azureResourceId;
|
||||
this.azurePortalEndpoint = model.azurePortalEndpoint;
|
||||
if (this.capabilitiesService && model.providerName) {
|
||||
let capabilities = this.capabilitiesService.getCapabilities(model.providerName);
|
||||
if (capabilities && capabilities.connection && capabilities.connection.connectionOptions) {
|
||||
@@ -125,6 +127,22 @@ export class ConnectionProfile extends ProviderConnectionInfo implements interfa
|
||||
this.options['azureAccount'] = value;
|
||||
}
|
||||
|
||||
public get azurePortalEndpoint() {
|
||||
return this.options['azurePortalEndpoint'];
|
||||
}
|
||||
|
||||
public set azurePortalEndpoint(value: string | undefined) {
|
||||
this.options['azurePortalEndpoint'] = value;
|
||||
}
|
||||
|
||||
public get azureResourceId() {
|
||||
return this.options['azureResourceId'];
|
||||
}
|
||||
|
||||
public set azureResourceId(value: string | undefined) {
|
||||
this.options['azureResourceId'] = value;
|
||||
}
|
||||
|
||||
public get registeredServerDescription(): string {
|
||||
return this.options['registeredServerDescription'];
|
||||
}
|
||||
@@ -210,7 +228,9 @@ export class ConnectionProfile extends ProviderConnectionInfo implements interfa
|
||||
saveProfile: this.saveProfile,
|
||||
id: this.id,
|
||||
azureTenantId: this.azureTenantId,
|
||||
azureAccount: this.azureAccount
|
||||
azureAccount: this.azureAccount,
|
||||
azurePortalEndpoint: this.azurePortalEndpoint,
|
||||
azureResourceId: this.azureResourceId
|
||||
};
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user