Azure / ng-deploy-azure

Deploy Angular apps to Azure using the Angular CLI
MIT License
79 stars 37 forks source link

Subscription activity is not updated #87

Closed baio closed 4 years ago

baio commented 4 years ago

When you first add deploy with inactive subscription you got You don't have any active subscriptions. Head to https://azure.com/free and sign in. From there you can create a new subscription and then you can come back and try again.

Then activate account (old one)

After this ng add @azure/ng-deploy just stuck to You don't have any active subscriptions. Head to https://azure.com/free and sign in. From there you can create a new subscription and then you can come back and try again.

Though subscription already active.

Had to move to firebase (

doggy8088 commented 4 years ago

I have exact the same issue happened. How can I debug this?

image

I do have lots of active subscriptions in my account.

I can't logout either.

image

Here are the logs:

[error] Error: Project target does not exist.
    at WorkspaceNodeModulesArchitectHost.getBuilderNameForTarget (C:\Projects\demo1\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js:25:19)
    at RunCommand.runSingleTarget (C:\Projects\demo1\node_modules\@angular\cli\models\architect-command.js:174:55)
    at RunCommand.runArchitectTarget (C:\Projects\demo1\node_modules\@angular\cli\models\architect-command.js:217:35)
    at RunCommand.run (C:\Projects\demo1\node_modules\@angular\cli\commands\run-impl.js:14:25)
    at RunCommand.validateAndRun (C:\Projects\demo1\node_modules\@angular\cli\models\command.js:134:39)
    at async Object.runCommand (C:\Projects\demo1\node_modules\@angular\cli\models\command-runner.js:201:24)
    at async default_1 (C:\Projects\demo1\node_modules\@angular\cli\lib\cli\index.js:62:31)

Here is my angular.json:

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "demo1": {
      "projectType": "application",
      "schematics": {},
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            "outputPath": "dist/demo1",
            "index": "src/index.html",
            "main": "src/main.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.app.json",
            "aot": true,
            "assets": [
              "src/favicon.ico",
              "src/assets",
              "src/api"
            ],
            "styles": [
              "src/styles.css"
            ],
            "scripts": []
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "optimization": true,
              "outputHashing": "all",
              "sourceMap": false,
              "extractCss": true,
              "namedChunks": false,
              "extractLicenses": true,
              "vendorChunk": false,
              "buildOptimizer": true,
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "5mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb",
                  "maximumError": "10kb"
                }
              ]
            }
          }
        },
        "serve": {
          "builder": "@angular-devkit/build-angular:dev-server",
          "options": {
            "browserTarget": "demo1:build"
          },
          "configurations": {
            "production": {
              "browserTarget": "demo1:build:production"
            }
          }
        },
        "extract-i18n": {
          "builder": "@angular-devkit/build-angular:extract-i18n",
          "options": {
            "browserTarget": "demo1:build"
          }
        },
        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "options": {
            "main": "src/test.ts",
            "polyfills": "src/polyfills.ts",
            "tsConfig": "tsconfig.spec.json",
            "karmaConfig": "karma.conf.js",
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "src/styles.css"
            ],
            "scripts": []
          }
        },
        "lint": {
          "builder": "@angular-devkit/build-angular:tslint",
          "options": {
            "tsConfig": [
              "tsconfig.app.json",
              "tsconfig.spec.json",
              "e2e/tsconfig.json"
            ],
            "exclude": [
              "**/node_modules/**"
            ]
          }
        },
        "e2e": {
          "builder": "@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "demo1:serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "demo1:serve:production"
            }
          }
        }
      }
    }},
  "defaultProject": "demo1"
}

Here is the ng version info:

Angular CLI: 9.0.1
Node: 12.14.1
OS: win32 x64

Angular: 9.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.1
@angular-devkit/build-angular     0.900.1
@angular-devkit/build-optimizer   0.900.1
@angular-devkit/build-webpack     0.900.1
@angular-devkit/core              9.0.1
@angular-devkit/schematics        9.0.1
@angular/cli                      9.0.1
@ngtools/webpack                  9.0.1
@schematics/angular               9.0.1
@schematics/update                0.900.1
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2
doggy8088 commented 4 years ago

I just found I need to delete %LOCALAPPDATA%\@azure\ng-deploy-nodejs\Config\ng-azure.json file to make logout successfully.

manekinekko commented 4 years ago

Thanks for reporting this issue. However, this issue is a duplicate of an existing issue https://github.com/Azure/ng-deploy-azure/issues/55. Please subscribe to that issue for future updates.