diff --git a/generators/guestbinary/templates/deploy/install.sh b/generators/guestbinary/templates/deploy/install.sh index 80f2c2f..828b6d4 100755 --- a/generators/guestbinary/templates/deploy/install.sh +++ b/generators/guestbinary/templates/deploy/install.sh @@ -1,7 +1,5 @@ #!/bin/bash -azure servicefabric application package copy <%= appPackage %> fabric:ImageStore -azure servicefabric application type register <%= appPackage %> -azure servicefabric application create fabric:/<%= appName %> <%= appTypeName %> 1.0.0 - - +sfctl application upload --path <%= appPackage %> --show-progress +sfctl application provision --application-type-build-path <%= appPackage %> +sfctl application create --app-name fabric:/<%= appName %> --app-type <%= appTypeName %> --app-version 1.0.0 diff --git a/generators/guestbinary/templates/deploy/uninstall.sh b/generators/guestbinary/templates/deploy/uninstall.sh index c2ddca6..f9f532b 100755 --- a/generators/guestbinary/templates/deploy/uninstall.sh +++ b/generators/guestbinary/templates/deploy/uninstall.sh @@ -1,4 +1,5 @@ #!/bin/bash -azure servicefabric application delete fabric:/<%= appName %> -azure servicefabric application type unregister <%= appTypeName %> 1.0.0 +sfctl application delete --application-id <%= appName %> +sfctl application unprovision --application-type-name <%= appTypeName %> --application-type-version 1.0.0 +sfctl store delete --content-path <%= appPackage %> diff --git a/package.json b/package.json index 58ab9fb..8f790bf 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-azuresfguest", - "version": "0.0.0", + "version": "1.0.0", "description": "Azure Service Fabric guest binary app template generator", "homepage": "https://azure.microsoft.com/en-in/services/service-fabric/", "authors": {