I have tried installing the Azure and AZ cmdlet via the command with AllowClobber and that successfully installed. I am running PowerShell as administrator and have connected my Azure account by signing in. However, when running the command "Get-AzurePublishSettingFile" the following error appears:
Get-AzurePublishSettingFile : The term 'Get-AzurePublishSettingFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
Get-AzurePublishSettingFile
+ CategoryInfo : ObjectNotFound: (Get-AzurePublishSettingFile:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Make sure you have installed the ASM PowerShell module Azure, and I notice you missed an s in your command, it should be Get-AzurePublishSettingsFile, not Get-AzurePublishSettingFile.
Reference - https://learn.microsoft.com/en-us/powershell/module/servicemanagement/azure.service/get-azurepublishsettingsfile?view=azuresmps-4.0.0
Related
i'm getting the below error while registering the IoT Device via Powershell Command
Register-IoTDevice : The term 'Register-IoTDevice' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:11
$device = Register-IoTDevice #deviceParams
~~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (Register-IoTDevice:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException
npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
npx create-react-app myapp
+ CategoryInfo : ObjectNotFound: (npx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
**Create React App not showing error message with ErrorBoundary
npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
npx create-react-app myapp
+ CategoryInfo : ObjectNotFound: (npx:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
**
I'm trying to set access policy in azure key vault by following below msdn docs
https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy-powershell
I followed the steps like installed AzureAd in the powershell and connected with azure. But when I run the next steps I'm facing the issue like
Get-AzADServicePrincipal : The term 'Get-AzADServicePrincipal' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-AzADServicePrincipal -SearchString PI
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AzADServicePrincipal:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Not sure what are the steps I'm missing.
Try running the install again with -AllowClobber.
Install-Module -Name Az -AllowClobber
The command Get-AzADServicePrincipal is in the module Az.Resources. It does not a command of AzureAD module. For more details, please refer to here.
Regarding the issue, please refer to the following steps
Assign your account to Azure AD role
Script
Connect-AzAccount
Get-AzADServicePrincipal
I am able to run the docker image and container works fine in local as expected.
After pushing the docker image to Azure Container Registry, I've tried to run through Azure Container Instance and throwing below error. Whereas the PS file is located in the WORKDIR and its working in local. Would be great if someone can help.
Dockerfile
WORKDIR c:/inetpub/wwwroot
ENTRYPOINT powershell .\InitializeContainer
Error:
.\InitializeContainer : The term '.\InitializeContainer' is not recognized as
the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ .\InitializeContainer
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\InitializeContainer:String) [
], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How should we seed data in asp.net preview web applications. I tried to use
Enable-Migrations
command but it gave me the following error:
Enable-Migrations : The term 'Enable-Migrations' is not recognized as
the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify
that the path is correct and try again. At line:1 char:1
+ Enable-Migrations
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException