Skip to content

Anhopki/add mobile type #41345

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

Draft
wants to merge 50 commits into
base: release/azure-communication-phone-numbers-1.3.0b2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e09ac31
Updating development status and test resources (#41230)
jovinson-ms May 21, 2025
41b7f17
[AutoRelease] t2-resource-2025-05-20-85922(can only be merged by SDK …
azure-sdk May 21, 2025
c11ef30
[SDK generation pipeline] Support `apiVersion` for generation from ty…
msyyc May 21, 2025
d75b9ac
[AutoRelease] t2-storage-2025-05-15-05401(can only be merged by SDK o…
azure-sdk May 21, 2025
19a92d2
Feature/azure ai agents/1.1.0b1 (#41234)
howieleung May 21, 2025
03c75bc
Updating test resource script path (#41248)
jovinson-ms May 21, 2025
19bd600
Update Redteaming agent to go through FDP (#41146)
luigiw May 21, 2025
92fbbd8
fix command job environment to support multiple data type (#41055)
pdhotems May 22, 2025
ac25d45
Skip deployment validation for local deployment when endpoint is invo…
pdhotems May 22, 2025
504316d
Sync eng/common directory with azure-sdk-tools for PR 10286 (#41255)
azure-sdk May 22, 2025
363a9c1
[AutoRelease] t2-kubernetesconfiguration-extensions-2025-05-15-97581(…
azure-sdk May 22, 2025
07a3b92
[AutoRelease] t2-kubernetesconfiguration-extensiontypes-2025-05-15-59…
azure-sdk May 22, 2025
94c63f2
[AutoRelease] t2-kubernetesconfiguration-fluxconfigurations-2025-05-1…
azure-sdk May 22, 2025
67e66d7
Only convert to json if response content is of json type (#41265)
azure-sdk May 22, 2025
4b8fa56
Configurations: 'specification/onlineexperimentation/OnlineExperimen…
azure-sdk May 22, 2025
422fe4a
Adding `AttackStrategy.MultiTurn` and `AttackStrategy.Crescendo` (#40…
slister1001 May 22, 2025
9dcf425
add mobile
andrewjhopkins May 22, 2025
1163ea4
[Core] Update aiohttp transport timeout errors (#41227)
annatisch May 22, 2025
85603e0
[AutoRelease] t2-network-2025-05-19-97876(can only be merged by SDK o…
azure-sdk May 23, 2025
cc62a57
Codeql fixes [azure-ai-ml] (#39536)
PratibhaShrivastav18 May 23, 2025
7a4ee24
Users/bambriz/feedrangehotfix0 (#41270)
bambriz May 23, 2025
6559ece
Sync eng/common directory with azure-sdk-tools for PR 10733 (#41281)
azure-sdk May 23, 2025
03c1d87
[Cosmos] fix flaky tests (#41278)
simorenoh May 23, 2025
79f19bf
Sync eng/common directory with azure-sdk-tools for PR 10736 (#41285)
azure-sdk May 24, 2025
fa3d585
add sequence diagram file (#41290)
PratibhaShrivastav18 May 26, 2025
8d6ed76
add diagram to readme (#41293)
PratibhaShrivastav18 May 27, 2025
a1946d4
Enable Request Level Excluded Locations to Metadata API calls (#40905)
allenkim0129 May 27, 2025
e459f14
Added User Agent Suffix (#40904)
andrewmathew1 May 27, 2025
c42abf7
Search doc fixes (#41315)
xiangyan99 May 27, 2025
c91ab59
Use image.yml in docindex pipeline (#41267)
danieljurek May 27, 2025
7ae29c2
Fix pip module invocation in sdk_package.py (#41310)
Copilot May 27, 2025
e479c2d
Add common npm publishing template (#41312)
azure-sdk May 27, 2025
27d295a
Users/singankit/rogue evaluator fix (#41317)
singankit May 28, 2025
39b25e1
Update Event Processor to condition login (#41321)
azure-sdk May 28, 2025
5a3a3d0
Add the comment about deprecation of hub-based projects. (#41314)
nick863 May 28, 2025
e760add
Some doc fixes in file datalake (#41320)
xiangyan99 May 28, 2025
a3c2812
Fix identity doc issues (#41324)
xiangyan99 May 28, 2025
dcac933
Added k8s resource attribute logic. Old tests pass. Need new tests (#…
jeremydvoss May 28, 2025
8d2a46a
Add diagnostics for AKS (#40988)
jeremydvoss May 28, 2025
91b5017
Request activity (#41013)
bambriz May 28, 2025
2443a64
FInal PR for 1.8 release (#41330)
nagkumar91 May 28, 2025
fee7a16
use randomization seed for jailbreak prompts (#41334)
slister1001 May 29, 2025
74a6c28
Update APIView Endpoint to use API COntrollers (#41344)
azure-sdk May 29, 2025
d5f959f
do not show unknown for custom evaluators (#41335)
slister1001 May 29, 2025
acd7e5b
ADV_Conversation fix for adversarial simulator (#41339)
nagkumar91 May 29, 2025
cfe5043
Merge branch 'main' into anhopki/add-mobile-type
andrewjhopkins May 29, 2025
26ef7c8
use 2025-06-01 instead
andrewjhopkins May 29, 2025
b0aa0cc
Merge branch 'release/azure-communication-phone-numbers-1.3.0b2' into…
andrewjhopkins May 29, 2025
fc6f7fa
make default 2025-06-01
andrewjhopkins May 29, 2025
64bb0f4
Merge branch 'anhopki/add-mobile-type' of github.com:andrewjhopkins/a…
andrewjhopkins May 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@
/eng/pipelines/templates/jobs/tests-nightly-python.yml @lmazuel @mccoyp
/eng/pipelines/aggregate-reports.yml @lmazuel @mccoyp @YalinLi0312 @kristapratico
/eng/common/pipelines/codeowners-linter.yml @lmazuel @mccoyp
/eng/pipelines/docindex.yml @danieljurek @scbedd @weshaggard @benbp

# Add approvers for typespec-python emitter version updates
/eng/emitter-package.json @mccoyp @catalinaperalta @kristapratico @iscai-msft
Expand Down
68 changes: 5 additions & 63 deletions .github/workflows/event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ jobs:
contents: read
name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login
runs-on: ubuntu-latest
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
steps:
- name: 'Az CLI login'
uses: azure/login@v2
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
client-id: a6dd2dfe-7352-41a7-9020-05301c3bca1a
tenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
allow-no-subscriptions: true

- name: 'Run Azure CLI commands'
if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }}
run: |
LABEL_SERVICE_API_KEY=$(az keyvault secret show \
--vault-name issue-labeler \
Expand Down Expand Up @@ -101,62 +102,3 @@ jobs:
with:
name: event
path: ${{ github.event_path }}

event-handler:
permissions:
issues: write
pull-requests: write
name: Handle ${{ github.event_name }} ${{ github.event.action }} event
runs-on: ubuntu-latest
if: ${{ github.event_name != 'issues' || github.event.action != 'opened' }}
steps:
# To run github-event-processor built from source, for testing purposes, uncomment everything
# in between the Start/End-Build From Source comments and comment everything in between the
# Start/End-Install comments
# Start-Install
- name: Install GitHub Event Processor
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20250314.4
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
# End-Install

# Testing checkout of sources from the Azure/azure-sdk-tools repository
# The ref: is the SHA from the pull request in that repository or the
# refs/pull/<PRNumber>/merge for the latest on any given PR. If the repository
# is a fork eg. <User>/azure-sdk-tools then the repository down below will
# need to point to that fork
# Start-Build
# - name: Checkout tools repo for GitHub Event Processor sources
# uses: actions/checkout@v3
# with:
# repository: Azure/azure-sdk-tools
# path: azure-sdk-tools
# ref: <refs/pull/<PRNumber>/merge> or <sha>

# - name: Build and install GitHubEventProcessor from sources
# run: |
# dotnet pack
# dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor
# shell: bash
# working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor
# End-Build

- name: Process Action Event
run: |
github-event-processor ${{ github.event_name }} ${{ github.event_path }}
shell: bash
env:
# This is a temporary secret generated by github
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Archive github event data
uses: actions/upload-artifact@v4
if: always()
with:
name: event
path: ${{ github.event_path }}
2 changes: 1 addition & 1 deletion eng/common/mcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The script will install the latest version of the azsdk cli executable from [too

## Authoring an MCP server

MCP server code should be placed in [azure-sdk-tools/tools/mcp/dotnet](https://github.com/Azure/azure-sdk-tools/tree/main/tools/mcp/dotnet).
Azure SDK MCP server code is in [azure-sdk-tools/tools/azsdk-cli/Azure.Sdk.Tools.Cli](https://github.com/Azure/azure-sdk-tools/tree/main/tools/azsdk-cli/Azure.Sdk.Tools.Cli).

Azure SDK MCP servers should support [stdio and sse transports](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse).

Expand Down
77 changes: 77 additions & 0 deletions eng/common/pipelines/templates/jobs/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
parameters:
Tag: 'latest'
ArtifactName: 'packages'
DependsOn: []
Environment: 'package-publish'
Registry: 'https://registry.npmjs.org/'

jobs:
- deployment: PublishPackage_${{ parameters.ArtifactName }}
displayName: 'Publish ${{ parameters.ArtifactName }} to ${{ parameters.Registry }}'
environment: ${{ parameters.Environment }}
dependsOn: ${{ parameters.DependsOn }}
variables:
- name: ArtifactPath
value: $(Pipeline.Workspace)/${{ parameters.ArtifactName }}

templateContext:
type: releaseJob
isProduction: ${{ eq(parameters.Registry, 'https://registry.npmjs.org/') }}
inputs:
- input: pipelineArtifact
artifactName: ${{ parameters.ArtifactName }}
itemPattern: '**/*.tgz'
targetPath: $(ArtifactPath)

pool:
name: azsdk-pool
image: ubuntu-24.04
os: linux

strategy:
runOnce:
deploy:
steps:
- pwsh: |
foreach ($package in (dir $(ArtifactPath) *.tgz -Recurse)) {
Write-Host "Publishing $package to ${{ parameters.Registry }} with tag ${{ parameters.Tag }}"
}
displayName: 'Display packages to be published'

- ${{ if eq(parameters.Registry, 'https://registry.npmjs.org/') }}:
- task: EsrpRelease@9
displayName: 'Publish ${{ parameters.ArtifactName }} via ESRP'
inputs:
ConnectedServiceName: 'Azure SDK PME Managed Identity'
ClientId: '5f81938c-2544-4f1f-9251-dd9de5b8a81b'
DomainTenantId: '975f013f-7f24-47e8-a7d3-abc4752bf346'
Usemanagedidentity: true
KeyVaultName: 'kv-azuresdk-codesign'
SignCertName: 'azure-sdk-esrp-release-certificate'
Intent: 'PackageDistribution'
ContentType: 'npm'
FolderLocation: $(ArtifactPath)
Owners: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }}
Approvers: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }}
ServiceEndpointUrl: 'https://api.esrp.microsoft.com'
MainPublisher: 'ESRPRELPACMANTEST'
productstate: ${{ parameters.Tag }}

- ${{ else }}:
- template: /eng/common/pipelines/templates/steps/create-authenticated-npmrc.yml
parameters:
npmrcPath: $(ArtifactPath)/.npmrc
registryUrl: ${{ parameters.Registry }}

- pwsh: |
foreach ($package in (dir $(ArtifactPath) *.tgz -Recurse)) {
Write-Host "npm publish $package --verbose --access public --tag ${{ parameters.Tag }} --registry ${{ parameters.Registry }}"
npm publish $package --verbose --access public --tag ${{ parameters.Tag }} --registry ${{ parameters.Registry }}
if ($LASTEXITCODE -ne 0) {
Write-Error "Failed to publish $package to ${{ parameters.Registry }}"
exit $LASTEXITCODE
}
}
displayName: 'Publish ${{ parameters.ArtifactName }}'
workingDirectory: $(ArtifactPath)

Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ jobs:
$internalVariableGroups = '$(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations) $(Secrets_for_Resource_Provisioner) $(AzureSDK_CocoaPods_Release_Pipeline_Secrets)'
}
"go" {
$generatePublicCIPipeline = 'false'
$internalVariableGroups = '$(Release_Secrets_for_GitHub) $(APIReview_AutoCreate_Configurations) $(Secrets_for_Resource_Provisioner)'
$generateUnifiedWeekly = 'true'
}
Expand Down
4 changes: 2 additions & 2 deletions eng/common/pipelines/templates/steps/detect-api-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ parameters:

steps:
- pwsh: |
$apiChangeDetectRequestUrl = "https://apiview.dev/PullRequest/DetectApiChanges"
$apiChangeDetectRequestUrl = "https://apiview.dev/api/PullRequests/CreateAPIRevisionIfAPIHasChanges"
echo "##vso[task.setvariable variable=ApiChangeDetectRequestUrl]$apiChangeDetectRequestUrl"
displayName: "Set API change detect request URL"
condition: and(${{ parameters.Condition}}, eq(variables['ApiChangeDetectRequestUrl'], ''))
Expand All @@ -24,5 +24,5 @@ steps:
-ArtifactName ${{ parameters.ArtifactName }}
-DevopsProject $(System.TeamProject)
pwsh: true
displayName: Detect API changes
displayName: Create APIView if API has changes
condition: and(${{ parameters.Condition }}, succeededOrFailed(), eq(variables['Build.Reason'],'PullRequest'))
12 changes: 11 additions & 1 deletion eng/common/scripts/Detect-Api-Changes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,21 @@ function Submit-Request($filePath, $packageName)
}
$uri = [System.UriBuilder]$APIViewUri
$uri.query = $query.toString()

$correlationId = [System.Guid]::NewGuid().ToString()
$headers = @{
"x-correlation-id" = $correlationId
}
LogInfo "Request URI: $($uri.Uri.OriginalString)"
LogInfo "Correlation ID: $correlationId"
try
{
$Response = Invoke-WebRequest -Method 'GET' -Uri $uri.Uri -MaximumRetryCount 3
$Response = Invoke-WebRequest -Method 'GET' -Uri $uri.Uri -Headers $headers -MaximumRetryCount 3
$StatusCode = $Response.StatusCode
if ($Response.Headers['Content-Type'] -like 'application/json*') {
$responseContent = $Response.Content | ConvertFrom-Json | ConvertTo-Json -Depth 10
LogSuccess $responseContent
}
}
catch
{
Expand Down
30 changes: 22 additions & 8 deletions eng/common/scripts/Helpers/ApiView-Helpers.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,16 @@ function Set-ApiViewCommentForPR {
$apiviewEndpoint = "$APIViewHost/api/pullrequests?pullRequestNumber=$PrNumber&repoName=$repoFullName&commitSHA=$HeadCommitish"
LogDebug "Get APIView information for PR using endpoint: $apiviewEndpoint"

$correlationId = [System.Guid]::NewGuid().ToString()
$headers = @{
"x-correlation-id" = $correlationId
}
LogInfo "Correlation ID: $correlationId"

$commentText = @()
$commentText += "## API Change Check"
try {
$response = Invoke-WebRequest -Uri $apiviewEndpoint -Method Get -MaximumRetryCount 3
$response = Invoke-WebRequest -Uri $apiviewEndpoint -Method Get -Headers $headers -MaximumRetryCount 3
LogInfo "OperationId: $($response.Headers['X-Operation-Id'])"
if ($response.StatusCode -ne 200) {
LogInfo "API changes are not detected in this pull request."
Expand Down Expand Up @@ -235,7 +241,7 @@ function Set-ApiViewCommentForPR {
# Helper function used to create API review requests for Spec generation SDKs pipelines
function Create-API-Review {
param (
[string]$apiviewEndpoint = "https://apiview.dev/PullRequest/DetectAPIChanges",
[string]$apiviewEndpoint = "https://apiview.dev/api/PullRequests/CreateAPIRevisionIfAPIHasChanges",
[string]$specGenSDKArtifactPath,
[string]$apiviewArtifactName,
[string]$buildId,
Expand All @@ -261,7 +267,6 @@ function Create-API-Review {
$correlationId = [System.Guid]::NewGuid().ToString()

$headers = @{
"Content-Type" = "application/json"
"x-correlation-id" = $correlationId
}

Expand All @@ -271,11 +276,20 @@ function Create-API-Review {
try
{
$response = Invoke-WebRequest -Method 'GET' -Uri $requestUri.Uri -Headers $headers -MaximumRetryCount 3
if ($response.StatusCode -eq 201) {
LogSuccess "Status Code: $($response.StatusCode)`nAPI review request created successfully.`n$($response.Content)"
}
elseif ($response.StatusCode -eq 208) {
LogSuccess "Status Code: $($response.StatusCode)`nThere is no API change compared with the previous version."
if ($response.StatusCode -eq 201 -or $response.StatusCode -eq 208) {
if ($response.StatusCode -eq 201) {
LogSuccess "Status Code: $($response.StatusCode)`nAPI review request created successfully"
}
elseif ($response.StatusCode -eq 208) {
LogSuccess "Status Code: $($response.StatusCode)`nThere is no API change compared with the previous version."
}
if ($response.Headers['Content-Type'] -like 'application/json*') {
$responseContent = $response.Content | ConvertFrom-Json | ConvertTo-Json -Depth 10
LogSuccess "Response:`n$($responseContent)"
}
else {
LogSuccess "Response: $($response.Content)"
}
}
else {
LogError "Failed to create API review request. $($response)"
Expand Down
5 changes: 3 additions & 2 deletions eng/pipelines/docindex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ parameters:

variables:
- template: /eng/pipelines/templates/variables/globals.yml
- template: /eng/pipelines/templates/variables/image.yml
jobs:
- template: /eng/common/pipelines/templates/jobs/docindex.yml

- job: UpdateDocsMsBuildConfig
pool:
name: azsdk-pool-mms-ubuntu-2004-general
vmImage: Ubuntu20.04
name: $(LINUXPOOL)
demands: $(LinuxImageDemand)
variables:
DocRepoLocation: $(Pipeline.Workspace)/docs
DocRepoOwner: MicrosoftDocs
Expand Down
2 changes: 2 additions & 0 deletions eng/pipelines/templates/variables/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ variables:
- name: MACOS
value: macOS

- name: LinuxImageDemand
value: ImageOverride -equals $(LINUXVMIMAGE)
13 changes: 13 additions & 0 deletions sdk/ai/azure-ai-agents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@


# Release History

## 1.1.0b1 (2025-05-20)

### Features Added

- API version is changed to 2025-05-15-preview.
- Add FabricTool, SharepointTool, and BingCustomSearchTool classes along with samples.

### Bugs Fixed

- Adding instrumentation for create_thread_and_run

## 1.0.0 (2025-05-15)

### Features Added
Expand Down
30 changes: 30 additions & 0 deletions sdk/ai/azure-ai-agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ To report an issue with the client library, or request additional features, plea
- [Function call](#create-agent-with-function-call)
- [Azure Function Call](#create-agent-with-azure-function-call)
- [OpenAPI](#create-agent-with-openapi)
- [Fabric data](#create-an-agent-with-fabric)
- [Create thread](#create-thread) with
- [Tool resource](#create-thread-with-tool-resource)
- [Create message](#create-message) with:
Expand Down Expand Up @@ -666,6 +667,35 @@ with agents_client:
<!-- END SNIPPET -->


### Create an Agent with Fabric

To enable your Agent to answer queries using Fabric data, use `FabricTool` along with a connection to the Fabric resource.

Here is an example:

<!-- SNIPPET:sample_agents_fabric.create_agent_with_fabric_tool -->

```python
conn_id = os.environ["FABRIC_CONNECTION_ID"]

print(conn_id)

# Initialize an Agent Fabric tool and add the connection id
fabric = FabricTool(connection_id=conn_id)

# Create an Agent with the Fabric tool and process an Agent run
with agents_client:
agent = agents_client.create_agent(
model=os.environ["MODEL_DEPLOYMENT_NAME"],
name="my-agent",
instructions="You are a helpful agent",
tools=fabric.definitions,
)
```

<!-- END SNIPPET -->


### Create Thread

For each session or conversation, a thread is required. Here is an example:
Expand Down
Loading
Loading