Skip to content

Add FirstPartyServiceTag cmdlets - #29970

Open
karthikka4820 wants to merge 3 commits into
Azure:release-network-2025-09-01from
karthikka4820:addCommandletsFirstPartyServiceTagsResource
Open

Add FirstPartyServiceTag cmdlets#29970
karthikka4820 wants to merge 3 commits into
Azure:release-network-2025-09-01from
karthikka4820:addCommandletsFirstPartyServiceTagsResource

Conversation

@karthikka4820

@karthikka4820 karthikka4820 commented Aug 7, 2026

Copy link
Copy Markdown

Co-authored-by: Copilot <[REDACTED:email_address]>

Description

Adds PS support for Microsoft.Network/FirstPartyServiceTag

  1. Adds CRUD cmdlets for  Microsoft.Network/firstPartyServiceTags :  New/Get/Set/Remove-AzFirstPartyServiceTag .
  2. Includes pipeline, resource ID, wildcard, paging, tags,  ShouldProcess , help, and scenario test support.
  3. Also adds optional  FirstPartyServiceTagId  support to  New-AzPublicIpTag  for associating Public IP resources with a First Party Service Tag.

Corresponding work item - https://msazure.visualstudio.com/One/_workitems/edit/39167658

Corresponding swagger PR - Azure/azure-rest-api-specs#44870

Design doc for the feature - https://microsoft.sharepoint.com/:w:/r/teams/RnmInfraDevs/_layouts/15/Doc.aspx?sourcedoc=%7B0CAC56B2-C2AB-4E9A-88B8-891EB8A1C799%7D&file=RBAC%20for%20FPU%20Tagged%20VIPs.docx&action=default&mobileredirect=true&share=cQqyVqwMq8KaToi4iR64oceZEgUCbTPM_9leNnR_uFrTKKKVCw

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Add CRUD cmdlets, help, scenario coverage, and optional public IP tag association support for Microsoft.Network/firstPartyServiceTags.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 62776278-8af6-44c1-8b89-928aa652a67c
@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution karthikka4820! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds First Party Service Tag management to Az.Network and enables Public IP tag associations.

Changes:

  • Adds CRUD cmdlets, models, help, and tests.
  • Updates the Network SDK to API version 2025-09-01.
  • Adds FirstPartyServiceTagId support to Public IP tags.

Reviewed changes

Copilot reviewed 17 out of 28 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Network/Network/PublicIpAddress/NewAzurePublicIpTagCommand.cs Adds service-tag association input.
src/Network/Network/Models/PSFirstPartyServiceTag.cs Adds the PowerShell resource model.
src/Network/Network/help/Set-AzFirstPartyServiceTag.md Documents update usage.
src/Network/Network/help/Remove-AzFirstPartyServiceTag.md Documents removal usage.
src/Network/Network/help/New-AzFirstPartyServiceTag.md Documents creation usage.
src/Network/Network/help/Get-AzFirstPartyServiceTag.md Documents retrieval and listing.
src/Network/Network/Generated/Models/PSPublicIpTag.cs Exposes the associated resource ID.
src/Network/Network/FirstPartyServiceTag/SetFirstPartyServiceTagCommand.cs Implements update behavior.
src/Network/Network/FirstPartyServiceTag/RemoveFirstPartyServiceTagCommand.cs Implements deletion behavior.
src/Network/Network/FirstPartyServiceTag/NewFirstPartyServiceTagCommand.cs Implements creation behavior.
src/Network/Network/FirstPartyServiceTag/GetFirstPartyServiceTagCommand.cs Implements retrieval, filtering, and paging.
src/Network/Network/FirstPartyServiceTag/FirstPartyServiceTagParameterSetNames.cs Defines parameter-set names.
src/Network/Network/FirstPartyServiceTag/FirstPartyServiceTagBaseCmdlet.cs Provides shared client and model conversion logic.
src/Network/Network/ChangeLog.md Records the user-facing additions.
src/Network/Network/Az.Network.psd1 Exports the four cmdlets.
src/Network/Network.Test/ScenarioTests/FirstPartyServiceTagTests.ps1 Adds the CRUD scenario.
src/Network/Network.Test/ScenarioTests/FirstPartyServiceTagTests.cs Registers the scenario test.
src/Network/Network.Management.Sdk/README.md Updates SDK generation inputs.
src/Network/Network.Management.Sdk/Generated/PublicIPPrefixesOperations.cs Updates the API version.
src/Network/Network.Management.Sdk/Generated/PublicIPAddressesOperations.cs Updates the API version.
src/Network/Network.Management.Sdk/Generated/NetworkManagementClient.cs Registers the new SDK operations.
src/Network/Network.Management.Sdk/Generated/Models/IpTag.cs Adds the association property.
src/Network/Network.Management.Sdk/Generated/Models/FirstPartyServiceTagPropertiesFormat.cs Defines service-tag properties.
src/Network/Network.Management.Sdk/Generated/Models/FirstPartyServiceTag.cs Defines the SDK resource model.
src/Network/Network.Management.Sdk/Generated/INetworkManagementClient.cs Exposes the operations interface.
src/Network/Network.Management.Sdk/Generated/IFirstPartyServiceTagsOperations.cs Defines the SDK operation contract.
src/Network/Network.Management.Sdk/Generated/FirstPartyServiceTagsOperationsExtensions.cs Adds synchronous and asynchronous helpers.
src/Network/Network.Management.Sdk/Generated/FirstPartyServiceTagsOperations.cs Implements REST operations and paging.

Comment thread src/Network/Network/PublicIpAddress/NewAzurePublicIpTagCommand.cs
{
}

[Fact(Skip = "Resource requires first party service tag access")]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Added runnable mocked tests covering create, get, update, delete, wildcard filtering, paging, pipeline input, and  PassThru . The live canary scenario was also expanded for resource-ID and wildcard coverage; recording is pending subscription feature registration.

Comment thread src/Network/Network/PublicIpAddress/NewAzurePublicIpTagCommand.cs
@azure-client-tools-agent

Copy link
Copy Markdown

Automated sensitive-information remediation ran on this pull request.

  • Detected categories: email address
  • Replaced with typed [REDACTED:category] placeholders in: PR description
  • Could not edit: file changes on a fork branch
  • Comment/review owners notified because Agent Assist cannot edit another user's text: none

If a credential was exposed, rotate or revoke it immediately. Detected values are never copied into this comment.

✅ Keep the redaction · ❌ Dispute the redaction

GitHub only supports a fixed reaction set, so 👍 represents ✅ and 👎 represents ❌. The bot-created reactions are only poll choices.


Posted by agent-assist (autonomous bug-fix pipeline).

@azure-client-tools-agent azure-client-tools-agent Bot added the azure-client-tools-agent Pull request commented on or reviewed by Azure Client Tools Agent label Aug 7, 2026
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 3 pipeline(s).

Add runnable mocked coverage for cmdlet behavior and public IP tag mapping, expand the canary scenario for future recording, and document FirstPartyServiceTagId in New-AzPublicIpTag help.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 62776278-8af6-44c1-8b89-928aa652a67c
Add the canonical Learn online-version URLs to all FirstPartyServiceTag reference help files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 62776278-8af6-44c1-8b89-928aa652a67c
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 3 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 21 out of 32 changed files in this pull request and generated no new comments.

Suppressed comments (1)

src/Network/Network.Management.Sdk/README.md:38

  • This generation recipe now points every Network input at 2025-09-01 and uses clear-output-folder: true, but the checked-in output was only advanced for the public-IP and new service-tag operation groups; for example, Generated/ApplicationGatewaysOperations.cs still hard-codes 2025-07-01. Running the documented AutoRest command therefore no longer reproduces the committed SDK and will rewrite many unrelated operation groups. Commit the complete regeneration, or configure the actual mixed input versions used to produce these files.
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/applicationGateway.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/azureWebCategory.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/common.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/expressRoute.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/firewall.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/firewallPolicy.json
  - https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/network/resource-manager/Microsoft.Network/Network/stable/2025-09-01/firstPartyServiceTag.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azure-client-tools-agent Pull request commented on or reviewed by Azure Client Tools Agent customer-reported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants