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

[Issue] #4622

Open
1 task
soni811 opened this issue Dec 11, 2024 · 2 comments
Open
1 task

[Issue] #4622

soni811 opened this issue Dec 11, 2024 · 2 comments
Labels
customer-reported identify a customer issue question

Comments

@soni811
Copy link

soni811 commented Dec 11, 2024

Output from azd version
Run azd version and copy and paste the output here:

Describe the bug
Description of issue you're seeing...

To Reproduce
Steps to reproduce the behavior...

Expected behavior
A clear and concise description of what you expected to happen.

Environment
Information on your environment:
* Language name and version
* IDE and version : [e.g. Visual Studio 16.3]

Additional context
Add any other context about the problem here.

@soni811
Copy link
Author

soni811 commented Dec 11, 2024

@minlength(1)
param environmentName string = ''

param snowAppId string = ''
param appServicePlanName string
param resourceGroupName string
param apiServiceName string
param keyVaultServiceName string
param appServiceSkuName string // Set in main.parameters.json

var abbrs = loadJsonContent('abbreviations.json')
var resourceToken = tolower(uniqueString(subscription().id, environmentName))
var tags = {
'azd-service-name': 'api'
'Env': 'Dev'
'fin_snowappid': snowAppId
}

// Create a resource group
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: resourceGroupName
location: location
tags: tags
}

// Deploy the chatgum-api
module chatgmapi 'core/host/appservice.bicep' = {
name: 'web'
scope: resourceGroup
params: {
name: empty(apiServiceName) ? apiServiceName : '${abbrs.websitesAppService}'
location: location
tags: tags
runtimeName: 'python'
runtimeVersion: '3.12'
appCommandLine: 'python3 -m gunicorn main:app'
scmDoBuildDuringDeployment: true
managedIdentity: true
use32BitWorkerProcess: appServiceSkuName == 'F1'
alwaysOn: appServiceSkuName != 'F1'
appSettings: {
AZURE_ENV_NAME: environmentName
AZURE_LOCATION: 'westus'
AZURE_RESOURCE_GROUP: resourceGroupName
AZURE_KEY_VAULT_NAME: keyVaultServiceName
DISABLE_SSL_VERIFY: 'True'
APP_LOG_LEVEL: 'INFO'
}
}
}

// Create an App Service Plan
module appServicePlan 'core/host/appserviceplan.bicep' = {
name: 'appserviceplan'
scope: resourceGroup
params: {
name: appServicePlanName
location: location
sku: {
name: appServiceSkuName
capacity: 1
}
}
}

using for this i am face this issue how to best ways to solve this

@ellismg
Copy link
Member

ellismg commented Dec 11, 2024

Sorry, @soni811 - I'm having trouble understanding the problem you are facing here. I see the bicep code you have here for deploying some python code to App Service, but I'm not sure what error you're hitting or what azd command you are running when you hit it. Could you provide some more details on what you're trying to accomplish here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported identify a customer issue question
Projects
None yet
Development

No branches or pull requests

2 participants