# Correct artifact-path joining when an existing Visual Studio project adopts the Az script

> What packageUri adjustment accompanies the documented Az deployment script for an existing Visual Studio resource-group project?

- Canonical URL: https://update.dsesecurity.com/updates/dse-20260909-320-correct-artifact-path-joining-when-an-existing-visual-studio-project-adopts-the-az/
- Publisher: Detection Systems & Engineering (DSE Security)
- Author: DSE Security Editorial Team
- Published: 2026-09-10T00:26:36+00:00
- Modified: 2026-09-10T01:40:03+00:00
- Last reviewed by DSE: 2026-09-09
- Resource type: Guide
- DSE priority: Information
- Topics: IT, Networks & Infrastructure
- Reading time: 2 minutes

## What you need to know

What packageUri adjustment accompanies the documented Az deployment script for an existing Visual Studio resource-group project?

## Potentially affected

Existing Visual Studio Azure Resource Group projects in extended support, moving to the documented Az-module deployment script.

## DSE recommendation

DSE recommends checking the composed package address when adapting the existing project to the Az script.

## Article

## Source facts

Microsoft’s Azure Resource Group project for Visual Studio is in extended support. Its documented Az-module deployment script runs from a PowerShell console rather than Visual Studio’s deployment interface. That script adds a trailing slash to the artifacts location, so the template must not add another slash before its package-folder component. The project must then be rebuilt to populate the staging folder. [Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-visual-studio-deployment-project).

## Applicability

Apply this review to maintenance of an existing project using the documented script. It is not a recommendation to start a new AzureRM deployment workflow. Identify the script actually invoked, the template’s packageUri expression and the package path recorded by the project reference.

## DSE recommendation

DSE recommends checking the composed package address when adapting the existing project to the Az script. Review the separator between the artifacts location and package folder, then confirm that the folder and filename match the staged output. Do not solve a path-joining error by broadening storage access or copying credentials into the template. Keep the migration change limited and reproducible.

## Verification

Rebuild an approved test project and inspect the staging directory before deployment. Verify that the constructed address identifies the intended package, using sanitized evidence that omits any access token. Run the documented console-based deployment and check the resulting application content, not merely resource creation. Preserve the exact script and template versions alongside the tested path construction.

## Official references

[Microsoft Learn](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-visual-studio-deployment-project). Source retrieved September 9, 2026.

## Primary reference

- Name: Create & deploy Visual Studio resource group projects - Azure Resource Manager | Microsoft Learn
- Authority: Microsoft Learn
- URL: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/create-visual-studio-deployment-project
- Source publication date: Not stated by the source

## Citation and use

Preferred citation: “Correct artifact-path joining when an existing Visual Studio project adopts the Az script,” DSE Security, https://update.dsesecurity.com/updates/dse-20260909-320-correct-artifact-path-joining-when-an-existing-visual-studio-project-adopts-the-az/
Publishing principles: https://update.dsesecurity.com/updates/dse-updates-editorial-methodology/
Usage and citation policy: https://update.dsesecurity.com/usage/
Copyright © 2026 Detection Systems & Engineering. All rights reserved.
