Skip to content

[SJAD] compose: azd add support for storage accounts (blob service)#4730

Closed
JeffreyCA wants to merge 181 commits into
Azure:mainfrom
JeffreyCA:jeffreyca/sjad/storage-add
Closed

[SJAD] compose: azd add support for storage accounts (blob service)#4730
JeffreyCA wants to merge 181 commits into
Azure:mainfrom
JeffreyCA:jeffreyca/sjad/storage-add

Conversation

@JeffreyCA

@JeffreyCA JeffreyCA commented Jan 24, 2025

Copy link
Copy Markdown
Contributor

Closes #4716

This PR builds on top of #4473, adding azd add support for storage accounts (blob service).
These changes permit only one storage account resource and one storage container, but open to loosening these restrictions.

image
image
image

rujche and others added 30 commits September 6, 2024 13:55
Support adding MySQL when run `azd init`
Fix typo by changing "DbMysql" to "DbMySql"
…or like this: "argetTypeNotSupported: Target resource type MICROSOFT.DBFORMYSQL/FLEXIBLESERVERS is not supported.".
2. Delete '1>&2' used for debug.
3. Add 'az tag create' to fix the problem about tag been deleted when creating service connector.
Use managed-identity instead of username and password
2. Update log about "failed to read spring application properties".
3. Fix bug about can not find frontend app and backend app at the same time.
4. Add service connector from aca to postgresql.
Use passwordless to connect to PostgreSQL in Azure Container Apps
haoozhang and others added 14 commits December 31, 2024 10:44
…ble project (#103)

* pre-check if it's a runnable project

* when parent detection, add module check

* fix UT

* fix UT

* fix UT

* fix comments, and update the module check recursively

* make pom artifact id is not same as the dir name

* small fix

* fix UT

* small fix

* clear mvn wrapper content

* deprecate maven build hook, run mvn clean package before adding default dockerfile

* remove unnecessary mvn wrapper files

* remove unused func

* fix UT and remove currentPomDir

* introduce modulePoms

* remove unused func, and refactor

---------

Co-authored-by: haozhang <haozhan@microsoft.com>
* fix the sjad azd add cannot work bug
Co-authored-by: haozhang <haozhan@microsoft.com>
* add uts for app_init, detect_confirm, infra_confirm, and scaffold
return errors.New("name cannot contain consecutive hyphens")
}

err := names.ValidateLabelName(name)

@JeffreyCA JeffreyCA Jan 24, 2025

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.

I noticed ValidateLabelName uses a regex that checks for a minimum string length of 2 - is that intentional? I couldn't find in the RFC 1123 spec that it had to have a min length of 2.

var rfc1123LabelRegex = regexp.MustCompile(`^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`)
...
if !rfc1123LabelRegex.MatchString(name) {
    return errors.New("name must contain only lower-cased alphanumeric characters or '-', i.e. a-z, 0-9, or '-'")
}

@JeffreyCA JeffreyCA changed the title compose: azd add support for storage accounts compose: azd add support for storage accounts (blob service) Jan 25, 2025
return fmt.Errorf("in azure.yaml, (%s) uses (%s), but (%s) doesn't",
userResourceName, usedResourceName, usedResourceName)
}
console.Message(ctx, fmt.Sprintf("\nInformation about environment variables:\n"+

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.

There's some duplication between this and add_preview.go, which also prints out the environment variables

@JeffreyCA JeffreyCA changed the title compose: azd add support for storage accounts (blob service) [SJAD] compose: azd add support for storage accounts (blob service) Feb 5, 2025
@JeffreyCA JeffreyCA closed this Feb 7, 2025
@JeffreyCA
JeffreyCA deleted the jeffreyca/sjad/storage-add branch February 24, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

compose: azd add support for Storage Accounts

4 participants