Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for domain name label scopes #2703

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Feb 4, 2025

Here is the work for supporting the new domain label scopes, see here for more context.

Demos:
Basic_Create
Advanced_Create

Here are the corresponding step changes in the appservice package:
microsoft/vscode-azuretools#1882

"@azure/arm-resources": "^5.0.0",
"@azure/core-client": "^1.7.3",
"@azure/core-rest-pipeline": "^1.11.0",
"@microsoft/vscode-azext-azureappservice": "^3.1.0",
"@microsoft/vscode-azext-azureappservice": "file:../vscode-azuretools/appservice/microsoft-vscode-azext-azureappservice-3.3.1.tgz",
Copy link
Contributor Author

@MicroFish91 MicroFish91 Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll clean up the package.json and package-lock.json after these packages are ready to be imported through npm registry.

uiUtils.listAllIterator(client.webApps.list()).then((sites) => {
for (const site of sites) {
const siteName: string = nonNullProp(site, 'name');
Copy link
Contributor Author

@MicroFish91 MicroFish91 Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a lookahead that checks for duplicate site names and adds a location description in order to help differentiate them, example:

image

@MicroFish91 MicroFish91 marked this pull request as ready for review February 5, 2025 19:47
@MicroFish91 MicroFish91 requested a review from a team as a code owner February 5, 2025 19:47
export class WebAppWithDomainLabelScopeCreateStep extends AzureWizardExecuteStep<IWebAppWizardContext> {
public priority: number = 140;

public async execute(context: IWebAppWizardContext, progress: Progress<{ message?: string; increment?: number }>): Promise<void> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this file is a straight carryover of the WebAppCreateStep file, but I had to make a call manually without the SDK which means I added a GenericClient call to the API endpoint, and I had to slightly amend the site payload shape because it's different than when updating using the SDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant