azure: Tolerate missing resource group when creating the cluster

This commit is contained in:
Ciprian Hacman 2024-04-07 15:24:10 +03:00
parent 0b2f67a524
commit cb25daafe5
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ func (s *Subnet) Find(c *fi.CloudupContext) (*Subnet, error) {
if err != nil {
var azErr *azcore.ResponseError
if errors.As(err, &azErr) {
if azErr.ErrorCode == "ResourceNotFound" {
if azErr.ErrorCode == "ResourceNotFound" || azErr.ErrorCode == "ResourceGroupNotFound" {
return nil, nil
} else {
return nil, azErr