{"content":"<div></div>","rawMetadata":{"metadata":{"_op_canonicalUrlPrefix":"https://learn.microsoft.com/pt-br/powershell/","_op_gitContributorInformation":{"author":{"display_name":"Erika Doyle Navara","id":"2170770","name":"erikadoyle","profile_url":"https://github.com/erikadoyle"},"contributors":[{"display_name":"Alex Buck","id":"27705684","name":"alexbuckgit","profile_url":"https://github.com/alexbuckgit"},{"display_name":"Ryan Wike","id":"1577071","name":"rwike77","profile_url":"https://github.com/rwike77"},{"display_name":"iyyappam","id":"20054070","name":"iyyappam","profile_url":"https://github.com/iyyappam"},{"display_name":"Oana Platon","id":"11232790","name":"oanapl","profile_url":"https://github.com/oanapl"},{"display_name":"qinezh","id":"15644078","name":"qinezh","profile_url":"https://github.com/qinezh"}],"update_at":"10/08/2026","updated_at_date_time":"2026-08-10T18:21:54.8871059Z"},"_path":"module/servicefabric/register-servicefabricapplicationtype.json","_rel":"../../","_tocRel":"../service-fabric/toc.json","apiPlatform":"powershell","author":"erikadoyle","brand":"azure","breadcrumb_path":"/powershell/bread/toc.json","canonical_url":"https://learn.microsoft.com/pt-br/powershell/module/servicefabric/register-servicefabricapplicationtype?view=azureservicefabricps","content_git_url":"https://github.com/Azure/azure-docs-powershell-servicefabric/blob/live/Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md","default_moniker":"azureservicefabricps","depot_name":"Azure.azureps-servicefabric","description":"Registra um tipo de aplicativo do Service Fabric.","external help file":"Microsoft.ServiceFabric.Powershell.dll-Help.xml","git_commit_id":"4a318325d948d92b150426d916a46ea2170c7e41","gitcommit":"https://github.com/Azure/azure-docs-powershell-servicefabric/blob/4a318325d948d92b150426d916a46ea2170c7e41/Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md","github_contributors":["alexbuckgit","erikadoyle","rwike77","iyyappam","oanapl","qinezh"],"locale":"pt-br","Module Name":"ServiceFabric","monikers":["azureservicefabricps"],"ms.assetid":"9145CA7E-1FF1-44C0-BB40-452161DCB15A","ms.author":"edoyle","ms.date":"05/07/2019","ms.devlang":"powershell","ms.manager":"gwallace","ms.service":"azure-service-fabric","ms.topic":"reference","online version":"","open_to_public_contributors":false,"original_content_git_url":"https://github.com/Azure/azure-docs-powershell-servicefabric/blob/live/Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md","original_content_git_url_template":"{repo}/blob/{branch}/Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md","PlatyPS schema version":"2.0.0","products":["https://authoring-docs-microsoft.poolparty.biz/devrel/e23899b2-c37a-45de-abc2-b8ae68bc8d1b","https://authoring-docs-microsoft.poolparty.biz/devrel/8bce367e-2e90-4b56-9ed5-5e4e9f3a2dc3"],"searchScope":["Azure"],"showPowerShellPicker":"true","site_name":"Docs","title":"Register-ServiceFabricApplicationType","uhfHeaderId":"Azure.yml","updated_at":"2026-08-10 06:21 PM","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/servicefabric/register-servicefabricapplicationtype","monikerGroup":"211ed502c73b0cca8ae5b56c0993186a","name":"Register-ServiceFabricApplicationType","schemaType":"PowershellCmdlet","summary":"<p>Registra um tipo de aplicativo do Service Fabric.</p>\n","uid":"ServiceFabric.Register-ServiceFabricApplicationType"}]},"_xrefmap":{"ServiceFabric":{"href":"./","monikerGroup":"211ed502c73b0cca8ae5b56c0993186a","name":"ServiceFabric","schemaType":"PowershellModule","uid":"ServiceFabric"},"ServiceFabric.Register-ServiceFabricApplicationType":{"href":"register-servicefabricapplicationtype","monikerGroup":"211ed502c73b0cca8ae5b56c0993186a","name":"Register-ServiceFabricApplicationType","schemaType":"PowershellCmdlet","summary":"<p>Registra um tipo de aplicativo do Service Fabric.</p>\n","uid":"ServiceFabric.Register-ServiceFabricApplicationType"}},"description":"<p>O cmdlet</c0> <c0>Register-ServiceFabricApplicationType registra um tipo de aplicativo do Service Fabric. Leia mais sobre <a href=\"https://learn.microsoft.com/azure/service-fabric/service-fabric-deploy-remove-applications\">implantação de aplicativo do Service Fabric</a>.</p>\n<p>O pacote de aplicativos pode existir em um local relativo no repositório de imagens ou pode ser um arquivo <code>sfpkg</code> carregado anteriormente em um local externo.</p>\n<p>Ao usar o caminho relativo do repositório, o pacote de aplicativos deve existir no repositório de imagens. O pacote pode ser copiado para o repositório de imagens com <a href=\"copy-servicefabricapplicationpackage\"></a>Copy-ServiceFabricApplicationPackage.</p>\n<p>Ao usar um arquivo <code>sfpkg</code> de um repositório externo, o provisionamento deve fornecer o URI de download para onde o <code>sfpkg</code> foi carregado anteriormente, bem como as informações de tipo de aplicativo.\nO arquivo <code>sfpkg</code> é um zip que contém o pacote inicial do aplicativo e tem a extensão \".sfpkg\".\nDentro do zip, o pacote do aplicativo pode ser compactado ou descompactado. A compactação do pacote de aplicativos dentro do zip é feita em pacotes de código, pacote e dados.</p>\n<p>Para criar um <code>sfpkg</code>, comece com uma pasta que contenha o pacote de aplicativo original. Se necessário, compacte o pacote com <a href=\"copy-servicefabricapplicationpackage\"></a> Copy-ServiceFabricApplicationPackage com comutadores -CompressPackage e -SkipCopy.\nEm seguida, use um utilitário para fechar a pasta com a extensão \".sfpkg\". Por exemplo, use <a href=\"https://msdn.microsoft.com/library/hh485721(v=vs.110).aspx\"></a> ZipFile.CreateFromDirectory na pasta do pacote de aplicativos.</p>\n<p>Depois de registrar um tipo de aplicativo, você pode usar o cmdlet <a href=\"new-servicefabricapplication\">New-ServiceFabricApplication</a> para criar uma instância do aplicativo. Use o cmdlet <a href=\"start-servicefabricapplicationupgrade\">Start-ServiceFabricApplicationUpgrade</a> para atualizar um aplicativo existente.</p>\n<p>Quando o tipo de aplicativo com a versão especificada não for mais necessário, você poderá cancelá-lo usando <a href=\"unregister-servicefabricapplicationtype\">cmdlet Unregister-ServiceFabricApplicationType</a>.</p>\n<p>Para gerenciar clusters do Service Fabric, inicie o Windows PowerShell usando a opção Executar como administrador.\nAntes de executar qualquer operação em um cluster do Service Fabric, estabeleça uma conexão com o cluster usando o cmdlet <a href=\"connect-servicefabriccluster\">Connect-ServiceFabricCluster</a>.</p>\n","examples":[{"code":"PS C:\\> Copy-ServiceFabricApplicationPackage -ApplicationPackagePath \"c:\\work\\PersistentToDoListService\" -ImageStoreConnectionString \"file:C:\\SfDevCluster\\Data\\ImageStoreShare\" -ApplicationPackagePathInImageStore \"PersistentToDoListService\"\nPS C:\\> Register-ServiceFabricApplicationType -ApplicationPathInImageStore \"PersistentToDoListService\"","description":"<p>\n              <a href=\"copy-servicefabricapplicationpackage\">Copy-ServiceFabricApplicationPackage</a> copia o pacote de aplicativos encontrado na pasta \"c:\\work\\PersistentToDoListService\" para o repositório de imagens. O pacote é copiado no caminho relativo \"PersistentToDoListService\" no repositório de imagens.</p>\n<p>\n              <a href=\"register-servicefabricapplicationtype\">comando Register-ServiceFabricApplicationType</a> registra o tipo de aplicativo encontrado no caminho relativo \"PersistentToDoListService\".</p>\n","summary":"","title":"Exemplo 1: registrar um tipo de aplicativo com o caminho relativo do repositório de imagens"},{"code":"PS C:\\> Copy-ServiceFabricApplicationPackage -ApplicationPackagePath \"c:\\work\\PersistentToDoListService\" -ImageStoreConnectionString \"fabric:ImageStore\" -ApplicationPackagePathInImageStore \"PersistentToDoListService\" -CompressPackage\nPS C:\\> Register-ServiceFabricApplicationType -ApplicationPathInImageStore \"PersistentToDoListService\" -Async\nPS C:\\> Get-ServiceFabricApplicationType","description":"<p>\n              <a href=\"copy-servicefabricapplicationpackage\">Copy-ServiceFabricApplicationPackage</a> copia o pacote de aplicativos encontrado na pasta \"c:\\work\\PersistentToDoListService\" para o repositório de imagens. O pacote do aplicativo é copiado no caminho relativo \"PersistentToDoListService\" no repositório de imagens. O cmdlet usa compactação para reduzir o tamanho do pacote.</p>\n<p>\n              <a href=\"register-servicefabricapplicationtype\">comando Register-ServiceFabricApplicationType</a> registra o tipo de aplicativo encontrado no caminho relativo \"PersistentToDoListService\". O registro é feito de forma assíncrona e retorna assim que o comando é aceito pelo cluster.</p>\n<p>\n              <a href=\"get-servicefabricapplicationtype\">Get-ServiceFabricApplicationType</a> obtém os tipos de aplicativo registrados no cluster. Cada tipo de aplicativo inclui o status de registro. O cmdlet pode ser usado para determinar quando o registro é concluído.</p>\n","summary":"","title":"Exemplo 2: registrar um tipo de aplicativo com o caminho relativo do repositório de imagens assíncrono"},{"code":"PS C:\\> Copy-ServiceFabricApplicationPackage -ApplicationPackagePath \"c:\\work\\PersistentToDoListService\" -ImageStoreConnectionString \"fabric:ImageStore\" -ApplicationPackagePathInImageStore \"PersistentToDoListService\" -CompressPackage -TimeoutSec 2700\nPS C:\\> Register-ServiceFabricApplicationType -ApplicationPathInImageStore \"PersistentToDoListService\" -TimeoutSec 2700","description":"<p>\n              <a href=\"copy-servicefabricapplicationpackage\">Copy-ServiceFabricApplicationPackage</a> copia o pacote de aplicativos encontrado na pasta \"c:\\work\\PersistentToDoListService\" para o repositório de imagens, no local relativo do repositório de imagens \"PersistentToDoListService\". Como o pacote inicial é muito grande, o comando compacta-o e inclui um tempo limite maior para permitir tempo suficiente para cópia.</p>\n<p>\n              <a href=\"register-servicefabricapplicationtype\">comando Register-ServiceFabricApplicationType</a> registra o tipo de aplicativo encontrado no caminho relativo \"PersistentToDoListService\". O comando inclui um tempo limite maior para permitir que o trabalho seja concluído mesmo se o pacote de aplicativos for grande.</p>\n","summary":"","title":"Exemplo 3: registrar um tipo de aplicativo para um pacote de aplicativo grande com o caminho relativo do repositório de imagens"},{"code":"PS C:\\> Register-ServiceFabricApplicationType -ApplicationPackageDownloadUri \"https://sftestresources.blob.core.windows.net:443/sfpkgholder/MyAppPackage.sfpkg\" -ApplicationTypeName MyApp -ApplicationTypeVersion V1 -TimeoutSec 2700","description":"<p>Registra o pacote de aplicativos encontrado no URI especificado. O pacote do aplicativo deve ter sido carregado anteriormente nesse local e deve permitir o acesso DE LEITURA.\nComo o pacote pode ser grande, o comando especifica um tempo limite de provisionamento grande.</p>\n","summary":"","title":"Exemplo 4: registrar um tipo de aplicativo de um repositório externo"},{"code":"PS C:\\> Register-ServiceFabricApplicationType -ApplicationPackageDownloadUri \"https://sftestresources.blob.core.windows.net:443/sfpkgholder/MyAppPackage.sfpkg\" -ApplicationTypeName MyApp -ApplicationTypeVersion V1 -Async\nPS C:\\> Get-ServiceFabricApplicationType -ApplicationTypeName MyApp -ApplicationTypeVersion V1","description":"<p>Registra o pacote de aplicativos encontrado no URI especificado. O pacote do aplicativo deve ter sido carregado anteriormente nesse local e deve permitir o acesso DE LEITURA.\nComo -Async é especificado, o comando retorna assim que o cluster o aceita.\n\n              <a href=\"get-servicefabricapplicationtype\">Get-ServiceFabricApplicationType</a> obtém os tipos de aplicativo registrados no cluster que correspondem ao filtro. Cada tipo de aplicativo inclui o status de registro. O cmdlet pode ser usado para acompanhar o progresso do registro e determinar quando o registro é concluído.</p>\n","summary":"","title":"Exemplo 5: registrar um tipo de aplicativo de um repositório externo assíncrono"},{"code":"PS C:\\> Copy-ServiceFabricApplicationPackage -ApplicationPackagePath \"c:\\work\\PersistentToDoListService\"\n\nPS C:\\> Register-ServiceFabricApplicationType -ApplicationPathInImageStore \"PersistentToDoListService\" -ApplicationPackageCleanupPolicy Automatic\n\n[Copy-ServiceFabricApplicationPackage](./Copy-ServiceFabricApplicationPackage.yml) copies the application package found in the \"c:\\work\\PersistentToDoListService\" folder to the image store. The package is copied at the relative path \"PersistentToDoListService\" in image store.\n\n[Register-ServiceFabricApplicationType](./Register-ServiceFabricApplicationType.yml) command registers the application type found in the relative path \"PersistentToDoListService\" and deletes the application package \"PersistentToDoListService\" in the image store after successfully registering the application type. Deleting the application package from the image store after [Register-ServiceFabricApplicationType](./Register-ServiceFabricApplicationType.yml) command is recommended because it removes the temporary package as soon as it's not needed, which ensures that disk space is not consumed unnecessarily.","description":"","summary":"","title":"Exemplo 6: registrar um tipo de aplicativo com o caminho relativo do repositório de imagens e a limpeza automática do pacote"}],"inputs":[{"description":"","name":"<span class=\"no-loc xref\">None</span>\n"}],"links":[{"href":"connect-servicefabriccluster","text":"Connect-ServiceFabricCluster"},{"href":"copy-servicefabricapplicationpackage","text":"Copy-ServiceFabricApplicationPackage"},{"href":"get-servicefabricclusterconnection","text":"Get-ServiceFabricClusterConnection"},{"href":"get-servicefabricapplicationtype","text":"Get-ServiceFabricApplicationType"},{"href":"unregister-servicefabricapplicationtype","text":"Unregister-ServiceFabricApplicationType"},{"href":"new-servicefabricapplication","text":"New-ServiceFabricApplication"},{"href":"start-servicefabricapplicationupgrade","text":"Start-ServiceFabricApplicationUpgrade"},{"href":"remove-servicefabricapplicationpackage","text":"Remove-ServiceFabricApplicationPackage"}],"module":"ServiceFabric","name":"Register-ServiceFabricApplicationType","notes":"","outputs":[{"description":"","name":"<span class=\"no-loc xref\">System.Object</span>\n"}],"parameters":[{"aliases":"","defaultValue":"Default","description":"<p>Determina a política de limpeza do pacote de aplicativos usado para registrar o tipo de aplicativo. Se não estiverem limpos, os pacotes de aplicativos consumirão espaço em disco e poderão causar falhas. Esse parâmetro especifica como gerenciar o pacote de aplicativos depois de registrar com êxito o tipo de aplicativo (provisionamento bem-sucedido).</p>\n<p>Quando definido como <code>Automatic</code>, o runtime do Service Fabric determina quando executar a limpeza do pacote do aplicativo. A implementação atual do runtime exclui o pacote do aplicativo depois de registrar com êxito o tipo de aplicativo. Se o registro falhar, o pacote do aplicativo não será excluído do repositório de imagens.</p>\n<p>Quando definido como <code>Manual</code>, o pacote do aplicativo não é excluído do repositório de imagens e os usuários precisam chamar explicitamente <a href=\"remove-servicefabricapplicationpackage\">cmdlet Remove-ServiceFabricApplicationPackage</a> para removê-lo do repositório de imagens.</p>\n<p>Um cluster do Service Fabric é configurado com uma política de limpeza. Para usar a política do cluster, especifique <code>Default</code> opção. A configuração do cluster <a href=\"https://learn.microsoft.com/azure/service-fabric/service-fabric-cluster-fabric-settings\">CleanupApplicationPackageOnProvisionSuccess</a> em <code>Management</code> seção determina como a limpeza deve ocorrer. Se definido como true, os pacotes de aplicativos serão excluídos automaticamente pelo runtime do service fabric após o provisionamento bem-sucedido. Se definido como false, o pacote do aplicativo não será excluído do repositório de imagens. O valor padrão dessa configuração de cluster foi definido como false até v6.4, mas há planos para defini-lo como verdadeiro para versões futuras.</p>\n","name":"ApplicationPackageCleanupPolicy","parameterValueGroup":"Invalid, Default, Automatic, Manual","position":"Named","type":"<span class=\"no-loc xref\">ApplicationPackageCleanupPolicy</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Representa o caminho para o pacote de aplicativos <code>sfpkg</code> de onde o pacote de aplicativos pode ser baixado usando protocolos HTTP ou HTTPS. O pacote deve ter sido carregado anteriormente para esse local externo. O URI deve permitir o acesso DE LEITURA para que o Service Fabric possa baixar o arquivo.\nO arquivo <code>sfpkg</code> é um zip que contém o pacote inicial do aplicativo. Dentro do zip, o pacote do aplicativo pode ser compactado ou descompactado. A compactação do pacote de aplicativos dentro do zip é feita em pacotes de código, pacote e dados. Essa compactação pode ser obtida usando <a href=\"copy-servicefabricapplicationpackage\"></a> Copy-ServiceFabricApplicationPackage com switch -CompressPackage.\nO arquivo <code>sfpkg</code> deve ter a extensão \".sfpkg\".</p>\n","isRequired":true,"name":"ApplicationPackageDownloadUri","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">Uri</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Especifica o caminho relativo do pacote de tipo de aplicativo no repositório de imagens. Esse caminho foi especificado pelo cmdlet <a href=\"copy-servicefabricapplicationpackage\">Copy-ServiceFabricApplicationPackage</a> quando o pacote de aplicativos foi copiado para o repositório de imagens.</p>\n","isRequired":true,"name":"ApplicationPathInImageStore","parameterValueGroup":"","position":"0","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Especifica o nome do tipo de aplicativo, como ele é definido no manifesto do aplicativo. O nome do tipo de aplicativo e a versão do tipo de aplicativo identificam exclusivamente o tipo de aplicativo.\nIsso é necessário ao provisionar um <code>sfpkg</code> de um repositório externo.</p>\n","isRequired":true,"name":"ApplicationTypeName","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Especifica a versão do tipo de aplicativo, como ela foi definida no manifesto do aplicativo. O nome do tipo de aplicativo e a versão do tipo de aplicativo identificam exclusivamente o tipo de aplicativo.\nIsso é necessário ao provisionar um arquivo de pacote de aplicativo <code>sfpkg</code> de um repositório externo.</p>\n","isRequired":true,"name":"ApplicationTypeVersion","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">String</span>\n"},{"aliases":"","defaultValue":"False","description":"<p>O comando retorna assim que a solicitação de registro é aceita pelo cluster. Use o comando <a href=\"get-servicefabricapplicationtype\">Get-ServiceFabricApplicationType</a> para consultar o status da solicitação de registro. Usar essa opção evita a necessidade de fornecer grandes valores de -TimeoutSec ao registrar grandes pacotes de aplicativos.</p>\n","name":"Async","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">SwitchParameter</span>\n"},{"aliases":"","defaultValue":"None","description":"<p>Especifica o período de tempo limite, em segundos, para a operação.</p>\n","name":"TimeoutSec","parameterValueGroup":"","position":"Named","type":"<span class=\"no-loc xref\">Int32</span>\n"}],"schema":"PowershellCmdlet","summary":"<p>Registra um tipo de aplicativo do Service Fabric.</p>\n","syntaxes":["Register-ServiceFabricApplicationType [-ApplicationPathInImageStore] <String>\n [-ApplicationPackageCleanupPolicy <ApplicationPackageCleanupPolicy>] [-Async] [-TimeoutSec <Int32>]\n [<CommonParameters>]","Register-ServiceFabricApplicationType [-ApplicationPackageDownloadUri] <Uri> -ApplicationTypeName <String>\n -ApplicationTypeVersion <String> [-Async] [-TimeoutSec <Int32>] [<CommonParameters>]"],"uid":"ServiceFabric.Register-ServiceFabricApplicationType","hideEdit":true,"ms.translationtype":"MT","ms.contentlocale":"pt-br","loc_version":"2024-11-01T06:51:51.0719426Z","loc_source_id":"Github-70665156#live","loc_file_id":"Github-70665156.live.Azure.azureps-servicefabric.Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md","xrefs":[{"href":"https://learn.microsoft.com/powershell/module/servicefabric/register-servicefabricapplicationtype","monikerGroup":"211ed502c73b0cca8ae5b56c0993186a","name":"Register-ServiceFabricApplicationType","schemaType":"PowershellCmdlet","summary":"<p>Registra um tipo de aplicativo do Service Fabric.</p>\n","uid":"ServiceFabric.Register-ServiceFabricApplicationType"}],"canonical_url":"https://learn.microsoft.com/pt-br/powershell/module/servicefabric/register-servicefabricapplicationtype?view=azureservicefabricps","_op_canonicalUrl":"https://learn.microsoft.com/pt-br/powershell/module/servicefabric/register-servicefabricapplicationtype?view=azureservicefabricps"},"pageMetadata":"<meta name=\"description\" content=\"<p>O cmdlet</c0> <c0>Register-ServiceFabricApplicationType registra um tipo de aplicativo do Service Fabric. Leia mais sobre <a href=&quot;https://learn.microsoft.com/azure/service-fabric/service-fabric-deploy-remove-applications&quot;>implantação de aplicativo do Service Fabric</a>.</p>\n<p>O pacote de aplicativos pode existir em um local relativo no repositório de imagens ou pode ser um arquivo <code>sfpkg</code> carregado anteriormente em um local externo.</p>\n<p>Ao usar o caminho relativo do repositório, o pacote de aplicativos deve existir no repositório de imagens. O pacote pode ser copiado para o repositório de imagens com <a href=&quot;copy-servicefabricapplicationpackage&quot;></a>Copy-ServiceFabricApplicationPackage.</p>\n<p>Ao usar um arquivo <code>sfpkg</code> de um repositório externo, o provisionamento deve fornecer o URI de download para onde o <code>sfpkg</code> foi carregado anteriormente, bem como as informações de tipo de aplicativo.\nO arquivo <code>sfpkg</code> é um zip que contém o pacote inicial do aplicativo e tem a extensão &quot;.sfpkg&quot;.\nDentro do zip, o pacote do aplicativo pode ser compactado ou descompactado. A compactação do pacote de aplicativos dentro do zip é feita em pacotes de código, pacote e dados.</p>\n<p>Para criar um <code>sfpkg</code>, comece com uma pasta que contenha o pacote de aplicativo original. Se necessário, compacte o pacote com <a href=&quot;copy-servicefabricapplicationpackage&quot;></a> Copy-ServiceFabricApplicationPackage com comutadores -CompressPackage e -SkipCopy.\nEm seguida, use um utilitário para fechar a pasta com a extensão &quot;.sfpkg&quot;. Por exemplo, use <a href=&quot;https://msdn.microsoft.com/library/hh485721(v=vs.110).aspx&quot;></a> ZipFile.CreateFromDirectory na pasta do pacote de aplicativos.</p>\n<p>Depois de registrar um tipo de aplicativo, você pode usar o cmdlet <a href=&quot;new-servicefabricapplication&quot;>New-ServiceFabricApplication</a> para criar uma instância do aplicativo. Use o cmdlet <a href=&quot;start-servicefabricapplicationupgrade&quot;>Start-ServiceFabricApplicationUpgrade</a> para atualizar um aplicativo existente.</p>\n<p>Quando o tipo de aplicativo com a versão especificada não for mais necessário, você poderá cancelá-lo usando <a href=&quot;unregister-servicefabricapplicationtype&quot;>cmdlet Unregister-ServiceFabricApplicationType</a>.</p>\n<p>Para gerenciar clusters do Service Fabric, inicie o Windows PowerShell usando a opção Executar como administrador.\nAntes de executar qualquer operação em um cluster do Service Fabric, estabeleça uma conexão com o cluster usando o cmdlet <a href=&quot;connect-servicefabriccluster&quot;>Connect-ServiceFabricCluster</a>.</p>\n\" />\r\n<meta name=\"hideEdit\" content=\"true\" />\r\n<meta name=\"loc_file_id\" content=\"Github-70665156.live.Azure.azureps-servicefabric.Service-Fabric-cmdlets/ServiceFabric/Register-ServiceFabricApplicationType.md\" />\r\n<meta name=\"loc_source_id\" content=\"Github-70665156#live\" />\r\n<meta name=\"loc_version\" content=\"2024-11-01T06:51:51.0719426Z\" />\r\n<meta name=\"module\" content=\"ServiceFabric\" />\r\n<meta name=\"ms.contentlocale\" content=\"pt-br\" />\r\n<meta name=\"ms.translationtype\" content=\"MT\" />\r\n<meta name=\"name\" content=\"Register-ServiceFabricApplicationType\" />\r\n<meta name=\"notes\" content=\"\" />\r\n<meta name=\"schema\" content=\"PowershellCmdlet\" />\r\n<meta name=\"summary\" content=\"<p>Registra um tipo de aplicativo do Service Fabric.</p>\n\" />\r\n<meta name=\"syntaxes\" content=\"Register-ServiceFabricApplicationType [-ApplicationPathInImageStore] <String>\n [-ApplicationPackageCleanupPolicy <ApplicationPackageCleanupPolicy>] [-Async] [-TimeoutSec <Int32>]\n [<CommonParameters>]\" />\r\n<meta name=\"syntaxes\" content=\"Register-ServiceFabricApplicationType [-ApplicationPackageDownloadUri] <Uri> -ApplicationTypeName <String>\n -ApplicationTypeVersion <String> [-Async] [-TimeoutSec <Int32>] [<CommonParameters>]\" />\r\n<meta name=\"uid\" content=\"ServiceFabric.Register-ServiceFabricApplicationType\" />\r\n","themesRelativePathToOutputRoot":"_themes/"}