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

Deployment error - SubnetNotFound #584

Closed
Gordonby opened this issue May 22, 2023 · 0 comments · Fixed by #585
Closed

Deployment error - SubnetNotFound #584

Gordonby opened this issue May 22, 2023 · 0 comments · Fixed by #585
Assignees
Labels
bug Something isn't working

Comments

@Gordonby
Copy link
Collaborator

Deploying from main (not a release) results in this error.

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/REDACTED/resourceGroups/innerloop/providers/Microsoft.Resources/deployments/main","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":
[{"code":"ResourceDeploymentFailure","target":"/subscriptions/REDACTED/resourceGroups/innerloop/providers/Microsoft.Resources/deployments/aksconstruction","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"DeploymentFailed","target":"/subscriptions/REDACTED/resourceGroups/innerloop/providers/Microsoft.Resources/deployments/aksconstruction","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":
[{"code":"BadRequest","target":"/subscriptions/REDACTED/resourceGroups/innerloop/providers/Microsoft.Resources/deployments/aksconstruction","message":"{\r\n  
\"code\": \"SubnetNotFound\",\r\n  \"message\": \"Could not find subnet aks-pods-sn in vnet vnet-superapp from resource group innerloop of subscription REDACTED.\",\r\n  \"subcode\": \"\"\r\n}"}]}]}]}}

This is the bicep used to repro

module aksconst 'aks-construction/bicep/main.bicep' = {
  name: 'aksconstruction'
  params: {
    location: location
    resourceName: nameseed
    enable_aad: true
    enableAzureRBAC: true
    registries_sku: 'Standard'
    omsagent: true
    retentionInDays: 30
    agentCount: 2
    agentVMSize: 'Standard_D2ds_v4'
    osDiskType: 'Managed'
    AksPaidSkuForSLA: true
    networkPolicy: 'azure'
    networkPluginMode: 'Overlay'
    azurepolicy: 'audit'
    acrPushRolePrincipalId: signedinuser
    adminPrincipalId: signedinuser
    AksDisableLocalAccounts: true
    custom_vnet: true
    upgradeChannel: 'stable'
    oidcIssuer: true
    keyVaultAksCSI: true
  }
}
@Gordonby Gordonby added the bug Something isn't working label May 22, 2023
@Gordonby Gordonby self-assigned this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant