Skip to content

[App Service] az functionapp create: Add DAPR support for Centauri apps - #27589

Merged
yanzhudd merged 8 commits into
Azure:devfrom
kamperiadis:centauriDapr
Dec 15, 2023
Merged

[App Service] az functionapp create: Add DAPR support for Centauri apps#27589
yanzhudd merged 8 commits into
Azure:devfrom
kamperiadis:centauriDapr

Conversation

@kamperiadis

Copy link
Copy Markdown
Contributor

Related command
az functionapp create
az functionapp config container set

Description
We want to support DAPR for Azure Functions on container app environments.

Testing Guide

  1. Create the container app environment az containerapp env create
  2. Create function app in container app environment and configure DAPR 'az functionapp create -g {} -n {} -s {} --environment {} --dapr-app-id daprappid --dapr-app-port 800 --dhmrs 4 --dhrbs 50 --dapr-log-level debug --enable-dapr true --functions-version 4`
  3. Update DAPR configuration for existing function app in container app environment az functionapp config container set -g {} -n {} --dapr-app-id daprappid1 --dapr-app-port 80 --dal --dhmrs 6 --dhrbs 60 --dapr-log-level warn --enabled-dapr false

This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Oct 12, 2023

Copy link
Copy Markdown
️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.11
️✔️3.9
️✔️ams
️✔️latest
️✔️3.11
️✔️3.9
️✔️apim
️✔️latest
️✔️3.11
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.11
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️aro
️✔️latest
️✔️3.11
️✔️3.9
️✔️backup
️✔️latest
️✔️3.11
️✔️3.9
️✔️batch
️✔️latest
️✔️3.11
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.11
️✔️3.9
️✔️billing
️✔️latest
️✔️3.11
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.11
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.11
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.11
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️config
️✔️latest
️✔️3.11
️✔️3.9
️✔️configure
️✔️latest
️✔️3.11
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.11
️✔️3.9
️✔️container
️✔️latest
️✔️3.11
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.11
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.11
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️dla
️✔️latest
️✔️3.11
️✔️3.9
️✔️dls
️✔️latest
️✔️3.11
️✔️3.9
️✔️dms
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.11
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.11
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.11
️✔️3.9
️✔️find
️✔️latest
️✔️3.11
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.11
️✔️3.9
️✔️identity
️✔️latest
️✔️3.11
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.11
️✔️3.9
️✔️lab
️✔️latest
️✔️3.11
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.11
️✔️3.9
️✔️maps
️✔️latest
️✔️3.11
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.11
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.11
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.11
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.11
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.11
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.11
️✔️3.9
️✔️profile
️✔️latest
️✔️3.11
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.11
️✔️3.9
️✔️redis
️✔️latest
️✔️3.11
️✔️3.9
️✔️relay
️✔️latest
️✔️3.11
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️role
️✔️latest
️✔️3.11
️✔️3.9
️✔️search
️✔️latest
️✔️3.11
️✔️3.9
️✔️security
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.11
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.11
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.11
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.11
️✔️3.9
️✔️sql
️✔️latest
️✔️3.11
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.11
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.11
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9
️✔️util
️✔️latest
️✔️3.11
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.11
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.11
️✔️3.9
️✔️latest
️✔️3.11
️✔️3.9

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Oct 12, 2023

Copy link
Copy Markdown
⚠️AzureCLI-BreakingChangeTest
⚠️appservice
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_app_id
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_app_port
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_enable_api_logging
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_http_max_request_size
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_http_read_buffer_size
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter dapr_log_level
⚠️ 1006 - ParaAdd functionapp config container set cmd functionapp config container set added parameter enable_dapr
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_app_id
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_app_port
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_enable_api_logging
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_http_max_request_size
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_http_read_buffer_size
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter dapr_log_level
⚠️ 1006 - ParaAdd functionapp create cmd functionapp create added parameter enable_dapr

@yonzhan

yonzhan commented Oct 12, 2023

Copy link
Copy Markdown
Collaborator

AppService

@kamperiadis

Copy link
Copy Markdown
Contributor Author

This PR requires updating the SDK version

@zhoxing-ms

Copy link
Copy Markdown
Contributor

Could you please resolve these CI issues?

Comment thread src/azure-cli/azure/cli/command_modules/appservice/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/appservice/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/appservice/_params.py Outdated
Comment thread src/azure-cli/azure/cli/command_modules/appservice/_params.py Outdated
@zhoxing-ms

zhoxing-ms commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

@kamperiadis Please note that we are launching the release for this sprint this week. Please resolve all comments and conflicts by Tomorrow, otherwise the release of this PR will have to be postponed to the next sprint (on 12-05)

@zhoxing-ms zhoxing-ms changed the title [AppService] az functionapp create: Add DAPR support for Centauri apps [App Service] az functionapp create: Add DAPR support for Centauri apps Nov 7, 2023
@zhoxing-ms

Copy link
Copy Markdown
Contributor

@kamperiadis Could you please resolve these CI issues?

@kamperiadis

Copy link
Copy Markdown
Contributor Author

@zhoxing-ms These tests are failing because it requires this PR to be merged first in order to use the new API version. Can you please review that other PR? Thank you.

@yanzhudd

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd

Copy link
Copy Markdown
Contributor

@zhoxing-ms These tests are failing because it requires this PR to be merged first in order to use the new API version. Can you please review that other PR? Thank you.

That PR has been merged.
Please fix this CI failed items.

JMESPathCheck('linuxFxVersion', 'PowerShell|7.2')])


class FunctionappDapr(LiveScenarioTest):

@kamperiadis kamperiadis Dec 13, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: had to keep this test in live mode because it would fail otherwise as it would somehow not find 'operationresults' polling matches in the recording but would always succeed in live mode.

@kamperiadis kamperiadis Dec 13, 2023

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

image

@arroyc arroyc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

functionapp_name
))

time.sleep(1200)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is this 1200 just be on safer side that the functionapp config command will be finished by then?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, otherwise, we get a 409 error since the previous operation is not done

@khkh-ms khkh-ms 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.

LGTM

@yanzhudd
yanzhudd merged commit e9d19fc into Azure:dev Dec 15, 2023
MaxHorstmann pushed a commit to MaxHorstmann/azure-cli that referenced this pull request Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot ContainerApp Functions az functionapp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants